From ec50ba3875a2822a2bba6eab75b4f8a53dcfdc7d Mon Sep 17 00:00:00 2001 From: Steven Kabbes Date: Thu, 2 Feb 2012 16:12:25 -0800 Subject: [PATCH] Copying Android.mk and Application.mk from anode Start off with the sample anode makefiles --- Android.mk | 42 ++++++++++++++++++++++++++++++++++++++++++ Application.mk | 3 +++ 2 files changed, 45 insertions(+) create mode 100644 Android.mk create mode 100644 Application.mk diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..f7fd48e --- /dev/null +++ b/Android.mk @@ -0,0 +1,42 @@ +# Set up the following environment variables +# NODE_ROOT: location of the node root directory (for include files) +# ANODE_ROOT: location of the anode root directory (for the libjninode binary) + +# Variable definitions for Android applications +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) + +# Modify this line to configure to the module name. +LOCAL_MODULE := hello + +# Add any additional defines or compiler flags. +# Do not delete these existing flags as these are required +# for the included node header files. +LOCAL_CFLAGS := \ + -D__POSIX__ \ + -DBUILDING_NODE_EXTENSION \ + -include sys/select.h + +LOCAL_CPPFLAGS := + +# Add any additional required directories for the include path. +# Do not delete these existing directories as these are required +# for the included node header files. +LOCAL_C_INCLUDES := $(NODE_ROOT)/src \ + $(NODE_ROOT)/deps/v8/include \ + $(NODE_ROOT)/deps/uv/include + +# Add any additional required shared libraries that the addon depends on. +LOCAL_LDLIBS := \ + $(ANODE_ROOT)/libs/armeabi/libjninode.so + +LOCAL_CPP_EXTENSION := .cc + +LOCAL_SRC_FILES :=\ + src/hello.cc + +LOCAL_STATIC_LIBRARIES := + +# Do not edit this line. +include $(ANODE_ROOT)/sdk/addon/build-node-addon.mk + diff --git a/Application.mk b/Application.mk new file mode 100644 index 0000000..1754092 --- /dev/null +++ b/Application.mk @@ -0,0 +1,3 @@ +APP_PROJECT_PATH :=. +APP_BUILD_SCRIPT :=$(APP_PROJECT_PATH)/Android.mk +APP_PLATFORM := android-9