File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 5
5
path = sdl2
6
6
url = https://github.com/spurious/SDL-mirror.git
7
7
branch = release-2.0.8
8
+ [submodule "libjpeg-turbo "]
9
+ path = libjpeg-turbo
10
+ url = https://github.com/openstf/android-libjpeg-turbo.git
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ target_link_libraries(hl log)
25
25
26
26
# FMT
27
27
28
+ add_custom_target (turbojpeg ${ANDROID_NDK} /ndk-build APP_ABI=armeabi-v7a WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /libjpeg-turbo)
29
+
28
30
file (GLOB fmt hashlink/libs/fmt/*.c)
29
31
file (GLOB png hashlink/include /png/*.c)
30
32
file (GLOB zlib hashlink/include /zlib/*.c)
@@ -41,11 +43,16 @@ add_library(fmt.hdll STATIC
41
43
${mikkt}
42
44
)
43
45
46
+ add_dependencies (fmt.hdll turbojpeg)
47
+
48
+ file (GLOB tj_include libjpeg-turbo/jni/vendor/libjpeg-turbo/libjpeg-turbo-*)
49
+
44
50
target_include_directories (fmt.hdll PRIVATE
45
51
hashlink/include /png
46
52
hashlink/include /mikktspace
47
53
hashlink/include /vorbis
48
54
hashlink/include /zlib
55
+ ${tj_include}
49
56
)
50
57
51
58
# SDL
You can’t perform that action at this time.
0 commit comments