Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 3e6c313

Browse files
Fix Android project compilation - revtestexternal has not to be compiled in a release
1 parent 4628550 commit 3e6c313

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

revtestexternal/Android.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
LOCAL_PATH := $(call my-dir)
22

3+
# only build if run from the revtestexternal/build-android.sh script
4+
ifeq ($(NAME),revtestexternal)
5+
36
include $(CLEAR_VARS)
47

58
TARGET_PLATFORM=android-8
@@ -31,3 +34,5 @@ LOCAL_LDFLAGS += \
3134
-Wl,-u,MCExternalFinalize
3235

3336
include $(BUILD_SHARED_LIBRARY)
37+
38+
endif

revtestexternal/build-android.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NAME=revtestexternal
1+
export NAME=revtestexternal
22
WORKSPACE=`cd ..; pwd`
33
PROJECT=$WORKSPACE/$NAME
44

@@ -22,6 +22,9 @@ DSTROOT=$SRCROOT/_build/android/$MODE/$NAME
2222
JAVAC=$JAVA_SDK/bin/javac
2323
JAR=$JAVA_SDK/bin/jar
2424

25+
echo "Building LCIDL for mac..."
26+
sdks/Xcode_5_1/usr/bin/xcodebuild -project lcidlc/lcidlc.xcodeproj -configuration $MAC_MODE
27+
2528
echo "Building external stubs…"
2629
mkdir -p "$PROJECT/derived_src"
2730
echo "$PROJECT/../_build/mac/$MAC_MODE/lcidlc"

0 commit comments

Comments
 (0)