File tree Expand file tree Collapse file tree 8 files changed +57
-9
lines changed Expand file tree Collapse file tree 8 files changed +57
-9
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 @@ -270,6 +270,9 @@ function set_build_mode_cflags()
270
270
export OPTIM
271
271
}
272
272
273
+ if [ $cfg_platform_name = " mac" ]; then
274
+ export MIN_MACOSX_TARGET=$cfg_min_macosx_deoply_tartget
275
+ fi
273
276
274
277
275
278
# build all the libraries for different arches
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 @@ -17,9 +17,9 @@ cfg_i386_host_machine="i386-linux-gnu"
17
17
18
18
19
19
cfg_all_supported_arches =(" i386" " x86_64" )
20
- cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" )
20
+ cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " gafplayer " )
21
21
cfg_default_arches_all =(" x86_64" )
22
- cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" )
22
+ cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " openssl" " gafplayer " )
23
23
24
24
25
25
cfg_build_fat_library =no
Original file line number Diff line number Diff line change @@ -12,15 +12,17 @@ cfg_build_machine="x86_64-apple-darwin14"
12
12
cfg_x86_64_host_machine =" x86_64-apple-darwin"
13
13
cfg_i386_host_machine =" i386-apple-darwin"
14
14
15
+ cfg_min_macosx_deoply_tartget =10.7
16
+
15
17
# cross compile options
16
18
cfg_is_cross_compile =no
17
19
# cfg_armv7_toolchain_bin=
18
20
19
21
# build arches and build libraries
20
22
cfg_all_supported_arches =(" i386" " x86_64" )
21
- cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " glfw" " openssl" )
23
+ cfg_all_supported_libraries =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " glfw" " openssl" " gafplayer " )
22
24
cfg_default_arches_all =(" x86_64" " i386" )
23
- cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " glfw" " openssl" )
25
+ cfg_default_libraries_all =(" png" " zlib" " lua" " luajit" " websockets" " curl" " freetype" " jpeg" " tiff" " webp" " chipmunk" " glfw" " openssl" " gafplayer " )
24
26
25
27
26
28
# whether build fat library, use lipo -S create
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ webp_header_files=webp
14
14
websockets_header_files =libwebsockets.h
15
15
zlib_header_files =z*.h
16
16
chipmunk_header_files =chipmunk
17
+ gafplayer_header_files =GAFPlayer
17
18
18
19
19
20
# #archive prebuilt name
Original file line number Diff line number Diff line change
1
+ # gafplayer
2
+
3
+ GAFPLAYER_GITURL :=
[email protected] :andyque/Cocos2dxGAFPlayer.git
4
+
5
+ $(TARBALLS ) /gafplayer-git.tar.xz :
6
+ $(call download_git,$(GAFPLAYER_GITURL ) ,addCMakeSupport)
7
+
8
+
9
+ .sum-gafplayer : gafplayer-git.tar.xz
10
+ $(warning $@ not implemented)
11
+ touch $@
12
+
13
+ gafplayer : gafplayer-git.tar.xz .sum-gafplayer
14
+ $(UNPACK )
15
+ $(MOVE )
16
+
17
+ ifdef HAVE_TIZEN
18
+ EX_ECFLAGS = -fPIC
19
+ endif
20
+
21
+ ifdef HAVE_MACOSX
22
+ CMAKE_DEFINE =MACOX
23
+ endif
24
+
25
+ ifdef HAVE_IOS
26
+ CMAKE_DEFINE =IOS
27
+ endif
28
+
29
+ ifdef HAVE_ANDROID
30
+ CMAKE_DEFINE =ANDROID
31
+ endif
32
+
33
+ ifdef HAVE_LINUX
34
+ CMAKE_DEFINE =LINUX
35
+ endif
36
+
37
+ .gafplayer : gafplayer toolchain.cmake
38
+ cd $< /Library && $(HOSTVARS ) CFLAGS=" $( CFLAGS) $( EX_ECFLAGS) " ${CMAKE} -D${CMAKE_DEFINE} =1
39
+ cd $< /Library && $(MAKE ) VERBOSE=1 install
40
+ touch $@
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ CXX := ${HOST}-g++ --sysroot=$(TIZEN_SDK)/platforms/mobile-2.3/rootstraps/mobile
99
99
endif
100
100
101
101
ifdef HAVE_MACOSX
102
- MIN_OSX_VERSION =10.6
102
+ MIN_OSX_VERSION =${MIN_MACOSX_TARGET}
103
103
CC =xcrun cc
104
104
CXX =xcrun c++
105
105
AR =xcrun ar
@@ -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