Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Commit 8048e1d

Browse files
committed
Push original code
0 parents  commit 8048e1d

File tree

1,400 files changed

+540037
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,400 files changed

+540037
-0
lines changed

.hgignore

+155
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
syntax:glob
2+
aclocal.m4
3+
autom4te*
4+
config.cache
5+
config.log
6+
config.status
7+
libtool
8+
Makefile
9+
Makefile.rules
10+
sdl2-config
11+
sdl2-config.cmake
12+
sdl2.pc
13+
SDL2.spec
14+
build
15+
gen
16+
Build
17+
18+
# for CMake
19+
CMakeFiles/
20+
CMakeCache.txt
21+
cmake_install.cmake
22+
cmake_uninstall.cmake
23+
SDL2ConfigVersion.cmake
24+
*.a
25+
*.la
26+
*.so
27+
*.so.*
28+
.ninja_*
29+
*.ninja
30+
31+
# for CLion
32+
.idea
33+
cmake-build-*
34+
35+
# for Xcode
36+
*.orig
37+
*.swp
38+
*.tmp
39+
*.rej
40+
*~
41+
*.o
42+
*.mode1*
43+
*.perspective*
44+
*.pbxuser
45+
(^|/)build($|/)
46+
.DS_Store
47+
xcuserdata
48+
*.xcworkspace
49+
50+
# for Visual C++
51+
Debug
52+
Release
53+
*.user
54+
*.ncb
55+
*.suo
56+
*.sdf
57+
VisualC/tests/loopwave/sample.wav
58+
VisualC/tests/testautomation/CompareSurfaces0001_Reference.bmp
59+
VisualC/tests/testautomation/CompareSurfaces0001_TestOutput.bmp
60+
VisualC/tests/testgamecontroller/axis.bmp
61+
VisualC/tests/testgamecontroller/button.bmp
62+
VisualC/tests/testgamecontroller/controllermap.bmp
63+
VisualC/tests/testoverlay2/moose.dat
64+
VisualC/tests/testrendertarget/icon.bmp
65+
VisualC/tests/testrendertarget/sample.bmp
66+
VisualC/tests/testscale/icon.bmp
67+
VisualC/tests/testscale/sample.bmp
68+
VisualC/tests/testsprite2/icon.bmp
69+
VisualC/visualtest/icon.bmp
70+
VisualC/visualtest/testquit.actions
71+
VisualC/visualtest/testquit.config
72+
VisualC/visualtest/testquit.exe
73+
VisualC/visualtest/testquit.parameters
74+
VisualC/visualtest/testsprite2.exe
75+
VisualC/visualtest/testsprite2_sample.actions
76+
VisualC/visualtest/testsprite2_sample.config
77+
VisualC/visualtest/testsprite2_sample.parameters
78+
79+
# for Android
80+
android-project/local.properties
81+
82+
test/aclocal.m4
83+
test/autom4te*
84+
test/config.cache
85+
test/config.log
86+
test/config.status
87+
test/Makefile
88+
test/SDL2.dll
89+
test/checkkeys
90+
test/controllermap
91+
test/loopwave
92+
test/loopwavequeue
93+
test/testatomic
94+
test/testaudiocapture
95+
test/testaudiohotplug
96+
test/testaudioinfo
97+
test/testautomation
98+
test/testbounds
99+
test/testcustomcursor
100+
test/testdisplayinfo
101+
test/testdraw2
102+
test/testdrawchessboard
103+
test/testdropfile
104+
test/testerror
105+
test/testfile
106+
test/testfilesystem
107+
test/testgamecontroller
108+
test/testgesture
109+
test/testgl2
110+
test/testgles
111+
test/testgles2
112+
test/testhaptic
113+
test/testhittesting
114+
test/testhotplug
115+
test/testiconv
116+
test/testime
117+
test/testintersections
118+
test/testjoystick
119+
test/testkeys
120+
test/testloadso
121+
test/testlock
122+
test/testmessage
123+
test/testmultiaudio
124+
test/testnative
125+
test/testoverlay2
126+
test/testplatform
127+
test/testpower
128+
test/testqsort
129+
test/testrelative
130+
test/testrendercopyex
131+
test/testrendertarget
132+
test/testresample
133+
test/testrumble
134+
test/testscale
135+
test/testsem
136+
test/testsensor
137+
test/testshader
138+
test/testshape
139+
test/testsprite2
140+
test/testspriteminimal
141+
test/teststreaming
142+
test/testthread
143+
test/testtimer
144+
test/testver
145+
test/testviewport
146+
test/testvulkan
147+
test/testwm2
148+
test/testyuv
149+
test/torturethread
150+
test/*.exe
151+
test/*,e1f
152+
test/*,ff8
153+
test/*.dSYM
154+
buildbot
155+
test/buildbot

.hgtags

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
0afe0e38e02cf2048e93582f01c52fbb91d3c7bb release-1.2.7
2+
230b156829ed13b31134d96f689c917981f57b84 release-1.2.5
3+
27cab50ec9c746e886ce0f3fdaa0b0cdc55a594f release-1.2.11
4+
2fe3fbd2bff50165b3cad33bf40d70b3bb3c9fd0 release-1.2.3
5+
3c052d3bcc76c899dfd4846be76243a78e8c7180 release-1.2.4
6+
3c5eed71a3320962551af3b3dfbee0c99fcf0086 release-1.2.10
7+
4867f7f7dd3426d1dbbeef48b3f3b3aa19590cc4 release-1.2.12
8+
6e28dae59e3baf4447c83e833a8d2ac912536f5b release-1.2.1
9+
7c2589fb8d4df54c6faabd3faebd0c0e73f67879 release-1.2.13
10+
86de11faf082881ad9b73a1a1d78733ca07f8db8 release-1.2.6
11+
bb051fa871aa0b53ea57df56a446cec3bb85924c release-1.2.2
12+
cfcb2e1c36ebe9809577adf768b0ec53e8768af9 release-1.2.8
13+
e044e7c70a50a2f54d14ee20d0933e904e5853b6 release-1.2.9
14+
f14cf9d71233934811774f941d0de121d5f96ccf release-1.2.14
15+
39c22a953456f6c9e2c8993c8ff973824104102a pre-touch-removal
16+
ccf5fbfa2afabab429ad911308f362201a94d810 macosx_10_4_supported
17+
d6a8fa507a45d9de7258e51585eab3e45c415149 release-2.0.0
18+
a8bd63b33636715f2cf6e7d36ab7201acbd478fe release-2.0.1
19+
a8bd63b33636715f2cf6e7d36ab7201acbd478fe release-2.0.1
20+
715a01415ac9305b9f8ec72b99fcf8cc9dd64dde release-2.0.1
21+
715a01415ac9305b9f8ec72b99fcf8cc9dd64dde release-2.0.1
22+
9ec71e56071cc80eda6691a3f8719ed5395dfcfb release-2.0.1
23+
9ec71e56071cc80eda6691a3f8719ed5395dfcfb release-2.0.1
24+
0000000000000000000000000000000000000000 release-2.0.1
25+
0000000000000000000000000000000000000000 release-2.0.1
26+
b9663c77f5c95ebf05f3c18e80619caae8ae1460 release-2.0.1
27+
be2102f000d0d2d9bab75e9703a1d503d0f6bb33 release-2.0.2
28+
f285b9487756ff681f76c85644222c03a7bfa1c7 release-2.0.3
29+
f285b9487756ff681f76c85644222c03a7bfa1c7 release-2.0.3
30+
704a0bfecf754e4e1383f83c7d5118b00cae26ea release-2.0.3
31+
e12c387305129c847b3928a123300b113782fe3f release-2.0.4
32+
007dfe83abf81b1ff5df40186f65e8e64987b825 release-2.0.5
33+
8df7a59b55283aa09889522369a2b32674c048de release-2.0.6
34+
2088cd828335797d73d151e3288d899f77204862 release-2.0.7
35+
f1084c419f33610cf274e309a8b2798d2ae665c7 release-2.0.8
36+
8feb5da6f2fb75703bde2c06813375af984a57f0 release-2.0.9
37+
bc90ce38f1e27ace54b83bebf987993002504f7f release-2.0.10
38+
78d0bb6f3b8f9b8f2a76cb357a407bc7ace57234 release-2.0.12

Android.mk

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
LOCAL_PATH := $(call my-dir)
2+
3+
###########################
4+
#
5+
# SDL shared library
6+
#
7+
###########################
8+
9+
include $(CLEAR_VARS)
10+
11+
LOCAL_MODULE := SDL2
12+
13+
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
14+
15+
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
16+
17+
LOCAL_SRC_FILES := \
18+
$(subst $(LOCAL_PATH)/,, \
19+
$(wildcard $(LOCAL_PATH)/src/*.c) \
20+
$(wildcard $(LOCAL_PATH)/src/audio/*.c) \
21+
$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
22+
$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
23+
$(wildcard $(LOCAL_PATH)/src/audio/openslES/*.c) \
24+
$(LOCAL_PATH)/src/atomic/SDL_atomic.c.arm \
25+
$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \
26+
$(wildcard $(LOCAL_PATH)/src/core/android/*.c) \
27+
$(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \
28+
$(wildcard $(LOCAL_PATH)/src/dynapi/*.c) \
29+
$(wildcard $(LOCAL_PATH)/src/events/*.c) \
30+
$(wildcard $(LOCAL_PATH)/src/file/*.c) \
31+
$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
32+
$(wildcard $(LOCAL_PATH)/src/haptic/android/*.c) \
33+
$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
34+
$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
35+
$(wildcard $(LOCAL_PATH)/src/joystick/hidapi/*.c) \
36+
$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
37+
$(wildcard $(LOCAL_PATH)/src/power/*.c) \
38+
$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
39+
$(wildcard $(LOCAL_PATH)/src/filesystem/android/*.c) \
40+
$(wildcard $(LOCAL_PATH)/src/sensor/*.c) \
41+
$(wildcard $(LOCAL_PATH)/src/sensor/android/*.c) \
42+
$(wildcard $(LOCAL_PATH)/src/render/*.c) \
43+
$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \
44+
$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
45+
$(wildcard $(LOCAL_PATH)/src/thread/*.c) \
46+
$(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \
47+
$(wildcard $(LOCAL_PATH)/src/timer/*.c) \
48+
$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
49+
$(wildcard $(LOCAL_PATH)/src/video/*.c) \
50+
$(wildcard $(LOCAL_PATH)/src/video/android/*.c) \
51+
$(wildcard $(LOCAL_PATH)/src/video/yuv2rgb/*.c) \
52+
$(wildcard $(LOCAL_PATH)/src/test/*.c))
53+
54+
LOCAL_SHARED_LIBRARIES := hidapi
55+
56+
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
57+
LOCAL_CFLAGS += \
58+
-Wall -Wextra \
59+
-Wdocumentation \
60+
-Wdocumentation-unknown-command \
61+
-Wmissing-prototypes \
62+
-Wunreachable-code-break \
63+
-Wunneeded-internal-declaration \
64+
-Wmissing-variable-declarations \
65+
-Wfloat-conversion \
66+
-Wshorten-64-to-32 \
67+
-Wunreachable-code-return \
68+
-Wshift-sign-overflow \
69+
-Wstrict-prototypes \
70+
-Wkeyword-macro \
71+
72+
73+
# Warnings we haven't fixed (yet)
74+
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-sign-compare
75+
76+
77+
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
78+
79+
ifeq ($(NDK_DEBUG),1)
80+
cmd-strip :=
81+
endif
82+
83+
LOCAL_STATIC_LIBRARIES := cpufeatures
84+
85+
include $(BUILD_SHARED_LIBRARY)
86+
87+
###########################
88+
#
89+
# SDL static library
90+
#
91+
###########################
92+
93+
LOCAL_MODULE := SDL2_static
94+
95+
LOCAL_MODULE_FILENAME := libSDL2
96+
97+
LOCAL_LDLIBS :=
98+
LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
99+
100+
include $(BUILD_STATIC_LIBRARY)
101+
102+
###########################
103+
#
104+
# SDL main static library
105+
#
106+
###########################
107+
108+
include $(CLEAR_VARS)
109+
110+
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
111+
112+
LOCAL_MODULE := SDL2_main
113+
114+
LOCAL_MODULE_FILENAME := libSDL2main
115+
116+
include $(BUILD_STATIC_LIBRARY)
117+
118+
###########################
119+
#
120+
# hidapi library
121+
#
122+
###########################
123+
124+
include $(CLEAR_VARS)
125+
126+
LOCAL_CPPFLAGS += -std=c++11
127+
128+
LOCAL_SRC_FILES := src/hidapi/android/hid.cpp
129+
130+
LOCAL_MODULE := libhidapi
131+
LOCAL_LDLIBS := -llog
132+
133+
include $(BUILD_SHARED_LIBRARY)
134+
135+
$(call import-module,android/cpufeatures)
136+

BUGS.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
Bugs are now managed in the SDL bug tracker, here:
3+
4+
https://bugzilla.libsdl.org/
5+
6+
You may report bugs there, and search to see if a given issue has already
7+
been reported, discussed, and maybe even fixed.
8+
9+
10+
You may also find help at the SDL forums/mailing list:
11+
12+
https://discourse.libsdl.org/
13+
14+
Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
15+
bugs discussed on the mailing list may be forgotten or missed.
16+

0 commit comments

Comments
 (0)