Skip to content

Commit 208f3bc

Browse files
committed
Merge branch 'develop-0071-android-r8b-mingw' of https://github.com/falcon4ever/openFrameworks into mergefalcon4
Conflicts: libs/openFrameworksCompiled/project/android/makefile libs/openFrameworksCompiled/project/makefileCommon/Makefile.android
2 parents cd42274 + fe70805 commit 208f3bc

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

libs/openFrameworksCompiled/project/android/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ endif
3333
ifeq ($(ARCH),android)
3434
COMPILER_OPTIMIZATION = -Os
3535
NDK_PLATFORM = android-8
36-
GCC_VERSION = 4.6
36+
GCC_VERSION = 4.4.3
3737
else
3838
ifeq ($(ARCH),armv7l)
3939
COMPILER_OPTIMIZATION = -march=armv7-a -mtune=cortex-a8 -finline-functions -funroll-all-loops -O3 -funsafe-math-optimizations -mfpu=neon -ftree-vectorize -mfloat-abi=softfp

libs/openFrameworksCompiled/project/makefileCommon/Makefile.android

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ AndroidInstall:
151151
fi
152152
if [ -f obj/$(BIN_NAME) ]; then rm obj/$(BIN_NAME); fi
153153
#touch AndroidManifest.xml
154-
$(SDK_ROOT)/tools/android update project --target $(NDK_PLATFORM) --path $(PROJECT_PATH)
154+
if [ "$(shell uname)" = "MINGW32_NT-6.1" ]; then \
155+
cmd //c $(SDK_ROOT)/tools/android.bat update project --target $(NDK_PLATFORM) --path $(PROJECT_PATH); \
156+
else \
157+
$(SDK_ROOT)/tools/android update project --target $(NDK_PLATFORM) --path $(PROJECT_PATH); \
158+
fi
155159
if [ -d bin/classes ]; then rm -r bin/classes; fi
156160
if [ -d bin/res ]; then rm -r bin/res; fi
157161
if [ -f bin/classes.dex ]; then rm bin/classes.dex; fi
@@ -164,7 +168,11 @@ AndroidInstall:
164168
if [ -f bin/$(APPNAME).apk ]; then rm bin/$(APPNAME).apk; fi
165169
if [ -f bin/build.prop ]; then rm bin/build.prop; fi
166170
if [ -f bin/jarlist.cache ]; then rm bin/jarlist.cache; fi
167-
ant debug
171+
if [ "$(shell uname)" = "MINGW32_NT-6.1" ]; then \
172+
$(ANT_BIN)/ant debug; \
173+
else \
174+
ant debug; \
175+
fi
168176
cp bin/OFActivity-debug.apk bin/$(APPNAME).apk
169177
#if [ "$(shell $(SDK_ROOT)/platform-tools/adb get-state)" = "device" ]; then
170178
$(SDK_ROOT)/platform-tools/adb uninstall $(PKGNAME)

libs/openFrameworksCompiled/project/makefileCommon/Makefile.examples

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ifeq ($(findstring Android,$(MAKECMDGOALS)),Android)
2929
ARCH = android
3030
ifeq ($(shell uname),Darwin)
3131
HOST_PLATFORM = darwin-x86
32+
else ifeq ($(shell uname),MINGW32_NT-6.1)
33+
HOST_PLATFORM = windows
3234
else
3335
HOST_PLATFORM = linux-x86
3436
endif

0 commit comments

Comments
 (0)