Skip to content

Commit 2e1840e

Browse files
committed
compile websockets without ssl support
1 parent b47fc59 commit 2e1840e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build/ios/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fi
121121

122122
BUILDDIR="${COCOSROOT}/build-ios-${PLATFORM}/${ARCH}"
123123

124-
PREFIX="${COCOSROOT}/install-ios-${PLATFORM}/${ARCH}"
124+
PREFIX="${COCOSROOT}/contrib/install-ios-${PLATFORM}/${ARCH}"
125125

126126
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
127127

@@ -196,10 +196,12 @@ else
196196
export ASCPP="xcrun as"
197197
fi
198198

199+
200+
199201
../bootstrap ${OPTIONS} \
200202
--build=x86_64-apple-darwin14 \
201203
--host=${TARGET} \
202-
--prefix=${COCOSROOT}/contrib/${TARGET}-${ARCH} > ${out}
204+
--prefix=${PREFIX} > ${out}
203205

204206
echo "EXTRA_CFLAGS += ${EXTRA_CFLAGS}" >> config.mak
205207
echo "EXTRA_LDFLAGS += ${EXTRA_LDFLAGS}" >> config.mak

contrib/src/openssl/rules.mak

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ ifeq ($(IOS_ARCH),i386)
3030
OPENSSL_CONFIG_VARS="BSD-generic32"
3131
endif
3232

33+
ifeq ($(IOS_ARCH),arm64)
34+
OPENSSL_CONFIG_VARS="BSD-generic64"
35+
endif
3336

3437
$(TARBALLS)/openssl-$(OPENSSL_VERSION).tar.gz:
3538
$(call download,$(OPENSSL_URL))

contrib/src/websockets/rules.mak

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ endif
1818

1919
DEPS_websockets = zlib $(DEPS_zlib)
2020

21-
DEPS_websockets = openssl $(DEPS_openssl)
22-
23-
.websockets: websockets .zlib .openssl toolchain.cmake
24-
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(EX_ECFLAGS)" $(CMAKE) -DCMAKE_BUILD_TYPE=Release
21+
.websockets: websockets .zlib toolchain.cmake
22+
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(EX_ECFLAGS)" $(CMAKE) -DCMAKE_BUILD_TYPE=Release -DLWS_WITH_SSL=0
2523
cd $< && $(MAKE) install
2624
touch $@

0 commit comments

Comments
 (0)