Skip to content

Commit

Permalink
[cocotron] Export -llog for modules
Browse files Browse the repository at this point in the history
Cocotron now uses __android_log_write in NSLog implementation

Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
  • Loading branch information
dmsck committed Sep 6, 2015
1 parent 2e0ecde commit 37ba5f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions sources/objc/cocotron/0.1.0/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LOCAL_SRC_FILES := frameworks/$(TARGET_ARCH_ABI)/$(1).framework/Versions/Current
LOCAL_EXPORT_CFLAGS := -F$(LOCAL_PATH)/frameworks/$(TARGET_ARCH_ABI) -framework $(1)
sinclude $(LOCAL_PATH)/frameworks/$(TARGET_ARCH_ABI)/$(1).framework/deps.mk
LOCAL_SHARED_LIBRARIES += objc2rt_shared
LOCAL_EXPORT_LDLIBS := -llog
include $(PREBUILT_SHARED_LIBRARY)
endif
endef
Expand Down
3 changes: 2 additions & 1 deletion tests/device/crystax-test-objc-cocotron/common.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CTESTS := \
assert \
string \
base \
nslog \
string \

CFLAGS := -UNDEBUG
7 changes: 7 additions & 0 deletions tests/device/crystax-test-objc-cocotron/jni/test-nslog.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#import <Foundation/Foundation.h>

int main()
{
NSLog(@"AAAAAAAAAAAAAAAAA: %@", [NSString stringWithUTF8String:"IJHUYGKLJAHS"]);
return 0;
}

0 comments on commit 37ba5f8

Please sign in to comment.