File tree Expand file tree Collapse file tree 5 files changed +41
-3
lines changed Expand file tree Collapse file tree 5 files changed +41
-3
lines changed 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 @@ -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
+ GAFPLYER_GITURL :=
[email protected] :andyque/Cocos2dxGAFPlayer.git
4
+
5
+ ifdef HAVE_MACOSX
6
+ PKGS += gafplyer
7
+ endif
8
+
9
+ $(TARBALLS ) /gafplyer-git.tar.xz :
10
+ $(call download_git,$(GAFPLYER_GITURL ) ,addCMakeSupport)
11
+
12
+
13
+ .sum-gafplyer : gafplyer-git.tar.xz
14
+ $(warning $@ not implemented)
15
+ touch $@
16
+
17
+ gafplyer : gafplyer-git.tar.xz .sum-gafplyer
18
+ $(UNPACK )
19
+ $(MOVE )
20
+
21
+ ifdef HAVE_TIZEN
22
+ EX_ECFLAGS = -fPIC
23
+ endif
24
+
25
+ ifdef HAVE_MACOSX
26
+ EX_ECFLAGS = -DMACOSX_DEPLOYMENT_TARGET=10.7
27
+ endif
28
+
29
+ .gafplyer : gafplyer toolchain.cmake
30
+ cd $< /Library && $(HOSTVARS ) CFLAGS=" $( CFLAGS) $( EX_ECFLAGS) " ${CMAKE}
31
+ cd $< /Library && $(MAKE ) VERBOSE=1 install
32
+ 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
You can’t perform that action at this time.
0 commit comments