File tree Expand file tree Collapse file tree 4 files changed +25
-14
lines changed Expand file tree Collapse file tree 4 files changed +25
-14
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ cfg_armv7_toolchain_bin="${ANDROID_NDK}/toolchains/arm-linux-androideabi-${cfg_d
29
29
30
30
# build arches and build libraries
31
31
cfg_all_supported_arches =(" arm" " armv7" " x86" " arm64" )
32
- cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" )
32
+ cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " gafplayer " )
33
33
cfg_default_arches_all =(" arm" " armv7" " x86" " arm64" )
34
- cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" )
34
+ cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " gafplayer " )
35
35
36
36
37
37
# whether build fat library, use lipo -S create
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ cfg_armv7s_host_machine="arm-apple-darwin"
14
14
cfg_arm64_host_machine =" arm-apple-darwin"
15
15
16
16
cfg_all_supported_arches =(" armv7" " armv7s" " i386" " arm64" " x86_64" )
17
- cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" )
17
+ cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " gafplayer " )
18
18
cfg_default_arches_all =(" armv7" " armv7s" " i386" " arm64" " x86_64" )
19
- cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" )
19
+ cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " gafplayer " )
20
20
21
21
22
22
cfg_build_fat_library =yes
Original file line number Diff line number Diff line change 1
1
# gafplayer
2
2
3
- GAFPLYER_GITURL :=
[email protected] :andyque/Cocos2dxGAFPlayer.git
3
+ GAFPLAYER_GITURL :=
[email protected] :andyque/Cocos2dxGAFPlayer.git
4
4
5
- ifdef HAVE_MACOSX
6
- PKGS += gafplyer
7
- endif
5
+ PKGS += gafplayer
8
6
9
- $(TARBALLS ) /gafplyer -git.tar.xz :
10
- $(call download_git,$(GAFPLYER_GITURL ) ,addCMakeSupport)
7
+ $(TARBALLS ) /gafplayer -git.tar.xz :
8
+ $(call download_git,$(GAFPLAYER_GITURL ) ,addCMakeSupport)
11
9
12
10
13
- .sum-gafplyer : gafplyer -git.tar.xz
11
+ .sum-gafplayer : gafplayer -git.tar.xz
14
12
$(warning $@ not implemented)
15
13
touch $@
16
14
17
- gafplyer : gafplyer -git.tar.xz .sum-gafplyer
15
+ gafplayer : gafplayer -git.tar.xz .sum-gafplayer
18
16
$(UNPACK )
19
17
$(MOVE )
20
18
24
22
25
23
ifdef HAVE_MACOSX
26
24
EX_ECFLAGS = -DMACOSX_DEPLOYMENT_TARGET=10.7
25
+ CMAKE_DEFINE =MACOX
26
+ endif
27
+
28
+ ifdef HAVE_IOS
29
+ CMAKE_DEFINE =IOS
27
30
endif
28
31
29
- .gafplyer : gafplyer toolchain.cmake
30
- cd $< /Library && $(HOSTVARS ) CFLAGS=" $( CFLAGS) $( EX_ECFLAGS) " ${CMAKE}
32
+ ifdef HAVE_ANDROID
33
+ CMAKE_DEFINE =ANDROID
34
+ endif
35
+
36
+
37
+
38
+ .gafplayer : gafplayer toolchain.cmake
39
+ cd $< /Library && $(HOSTVARS ) CFLAGS=" $( CFLAGS) $( EX_ECFLAGS) " ${CMAKE} -D${CMAKE_DEFINE} =1
31
40
cd $< /Library && $(MAKE ) VERBOSE=1 install
32
41
touch $@
Original file line number Diff line number Diff line change @@ -419,6 +419,8 @@ ifdef HAVE_ANDROID
419
419
echo "set(CMAKE_SYSTEM_NAME Linux)" >> $@
420
420
echo "set(CMAKE_CXX_SYSROOT_FLAG \"\")" >> $@
421
421
echo "set(CMAKE_C_SYSROOT_FLAG \"\")" >> $@
422
+ echo "include_directories($(ANDROID_NDK)/sources/android/support/include \
423
+ $(ANDROID_NDK)/sources/cxx-stl/llvm-libc++/libcxx/include)" >> $@
422
424
endif
423
425
ifdef HAVE_TIZEN
424
426
echo "set(CMAKE_SYSTEM_NAME Linux)" >> $@
You can’t perform that action at this time.
0 commit comments