Skip to content

Commit

Permalink
Fix issue #1015
Browse files Browse the repository at this point in the history
Make 'cocotron' default Objective-C backend

Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
  • Loading branch information
dmsck committed Aug 28, 2015
1 parent 94fb51f commit 19bd0a0
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/core/add-application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ endif
$(call ndk_log,Using APP_LIBCRYSTAX: $(APP_LIBCRYSTAX))

ifndef APP_OBJC
APP_OBJC := $(DEFAULT_LIBOBJC)_shared
APP_OBJC := $(DEFAULT_LIBOBJC)$(if $(filter gnuobjc,$(DEFAULT_LIBOBJC)),_shared)
else
APP_OBJC := $(strip $(APP_OBJC))
$(call ndk-objc-check,$(APP_OBJC))
Expand Down
2 changes: 1 addition & 1 deletion build/core/defaults.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DEFAULT_CXX_STANDARD := gnu++11
DEFAULT_LIBSTDCXX := gnustl
DEFAULT_LIBOBJC := gnuobjc
DEFAULT_LIBOBJC := cocotron
File renamed without changes.
2 changes: 2 additions & 0 deletions tests/device/crystax-test-gnuobjc_shared/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APP_ABI := all
APP_OBJC := gnuobjc_shared
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int main()
const char *plib = "libgnuobjc_shared.so";

if (!dlopen(plib, RTLD_NOW)) {
char *err = dlerror();
const char *err = dlerror();
printf("dlopen(\"%s\") FAILED: %s\n", plib, err);
return 1;
}
Expand Down
1 change: 1 addition & 0 deletions tests/device/crystax-test-objc-blocks/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
APP_ABI := all
APP_OBJC := none
4 changes: 0 additions & 4 deletions tests/device/crystax-test-objc-blocks/properties.json

This file was deleted.

3 changes: 1 addition & 2 deletions tests/device/crystax-test-objc-cocotron/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
APP_ABI := armeabi-v7a armeabi-v7a-hard mips x86 x86_64
APP_OBJC := cocotron
APP_ABI := all
1 change: 0 additions & 1 deletion tests/device/crystax-test-objc/jni/Application.mk

This file was deleted.

0 comments on commit 19bd0a0

Please sign in to comment.