Skip to content

Commit

Permalink
Update Android.mk for test binary
Browse files Browse the repository at this point in the history
Make Android Studio happy
  • Loading branch information
topjohnwu committed Jan 5, 2021
1 parent 5f2e22a commit 18b86e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,16 @@ include $(BUILD_EXECUTABLE)
endif

ifdef B_TEST
ifneq (,$(wildcard jni/test.cpp))

include $(CLEAR_VARS)
LOCAL_MODULE := test
LOCAL_STATIC_LIBRARIES := libutils
LOCAL_C_INCLUDES := jni/include
LOCAL_SRC_FILES := test.cpp
LOCAL_LDFLAGS := -static
include $(BUILD_EXECUTABLE)

endif
endif

ifdef B_BB
Expand Down

0 comments on commit 18b86e4

Please sign in to comment.