mirror of https://github.com/gabime/spdlog.git
Add Android examples.
parent
72a6fd65da
commit
96267654e6
@ -0,0 +1,15 @@
|
|||||||
|
# Setup a project
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_MODULE := example
|
||||||
|
LOCAL_SRC_FILES := example.cpp
|
||||||
|
LOCAL_CPPFLAGS += -Wall -Wshadow -Wextra -pedantic -std=c++11 -fPIE -pie
|
||||||
|
LOCAL_LDFLAGS += -fPIE -pie
|
||||||
|
|
||||||
|
# Add exception support and set path for spdlog's headers
|
||||||
|
LOCAL_CPPFLAGS += -fexceptions -I../include
|
||||||
|
# Use android's log library
|
||||||
|
LOCAL_LDFLAGS += -llog
|
||||||
|
|
||||||
|
include $(BUILD_EXECUTABLE)
|
@ -0,0 +1,2 @@
|
|||||||
|
# Exceptions are used in spdlog. Link to an exception-ready C++ runtime.
|
||||||
|
APP_STL = gnustl_static
|
@ -0,0 +1 @@
|
|||||||
|
../example.cpp
|
Loading…
Reference in New Issue