Skip to content

Commit 31c17c3

Browse files
committed
add gas-preprocessor.pl to the build system
1 parent a38834c commit 31c17c3

File tree

5 files changed

+1047
-12
lines changed

5 files changed

+1047
-12
lines changed

build_ios.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ fi
8080
info "Building cocos2d-x third party libraries for iOS"
8181

8282
if [ "$PLATFORM" = "Simulator" ]; then
83-
TARGET="${ARCH}-apple-darwin14"
83+
TARGET="${ARCH}-apple-darwin11"
8484
OPTIM="-O3 -g"
8585
else
86-
TARGET="arm-apple-darwin14"
86+
TARGET="arm-apple-darwin11"
8787
OPTIM="-O3 -g"
8888
fi
8989

@@ -116,7 +116,7 @@ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
116116
# info "Building tools"
117117
# spushd "${COCOSROOT}/contrib/ios"
118118
# ./bootstrap
119-
# make
119+
# make
120120
# spopd
121121

122122
info "Building contrib for iOS in '${COCOSROOT}/contrib/iPhone${PLATFORM}-${ARCH}'"
@@ -179,18 +179,20 @@ cd "${COCOSROOT}/contrib/iPhone${PLATFORM}-${ARCH}"
179179

180180
## FIXME: do we need to replace Apple's gas?
181181
if [ "$PLATFORM" = "OS" ]; then
182-
# export AS="gas-preprocessor.pl ${CC}"
183-
# export ASCPP="gas-preprocessor.pl ${CC}"
184-
# export CCAS="gas-preprocessor.pl ${CC}"
182+
export AS="gas-preprocessor.pl ${CC}"
183+
export ASCPP="gas-preprocessor.pl ${CC}"
184+
export CCAS="gas-preprocessor.pl ${CC}"
185185
if [ "$ARCH" = "arm64" ]; then
186186
export GASPP_FIX_XCODE5=1
187187
fi
188188
else
189189
export ASCPP="xcrun as"
190190
fi
191191

192-
../bootstrap --build=x86_64-apple-darwin14 --host=${TARGET} --prefix=${COCOSROOT}/contrib/${TARGET}-${ARCH} \
192+
# # FIXME: add more convenient
193+
../bootstrap --build=x86_64-apple-darwin11 --host=${TARGET} --prefix=${COCOSROOT}/contrib/${TARGET}-${ARCH} \
193194
--disable-lua \
195+
--disable-freetype2 \
194196
--enable-png > ${out}
195197

196198
echo "EXTRA_CFLAGS += ${EXTRA_CFLAGS}" >> config.mak

contrib/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ case "${OS}" in
240240
add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
241241
else
242242
check_ios_sdk
243-
add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_NEON" "HAVE_ARMV7A"
243+
add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_ARMV7A" "HAVE_NEON"
244244
fi
245245
;;
246246
*bsd*)

contrib/src/main.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TOPDST ?= ..
1313
SRC := $(TOPSRC)/src
1414
TARBALLS := $(TOPSRC)/tarballs
1515

16-
PATH :=$(abspath ../../extras/tools/build/bin):$(PATH)
16+
PATH :=$(abspath ../../extras/tools/bin):$(PATH)
1717
export PATH
1818

1919
PKGS_ALL := $(patsubst $(SRC)/%/rules.mak,%,$(wildcard $(SRC)/*/rules.mak))
@@ -129,7 +129,7 @@ ifdef HAVE_IOS
129129
CC=xcrun clang
130130
CXX=xcrun clang++
131131
ifdef HAVE_NEON
132-
AS=perl $(abspath ../../extras/tools/build/bin/gas-preprocessor.pl) $(CC)
132+
AS=perl $(abspath ../../extras/tools/bin/gas-preprocessor.pl) $(CC)
133133
CCAS=gas-preprocessor.pl $(CC) -c
134134
else
135135
CCAS=$(CC) -c

contrib/src/png/rules.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ PKGS_FOUND += png
88
endif
99

1010
$(TARBALLS)/libpng-$(PNG_VERSION).tar.xz:
11-
libpng16..a $(call download,$(PNG_URL))
12-
11+
$(call download,$(PNG_URL))
12+
1313
.sum-png: libpng-$(PNG_VERSION).tar.xz
1414

1515
png: libpng-$(PNG_VERSION).tar.xz .sum-png

0 commit comments

Comments
 (0)