Skip to content

Commit

Permalink
Copying Android.mk and Application.mk from anode
Browse files Browse the repository at this point in the history
Start off with the sample anode makefiles
  • Loading branch information
skabbes committed Feb 3, 2012
1 parent da4665a commit ec50ba3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -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

3 changes: 3 additions & 0 deletions Application.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
APP_PROJECT_PATH :=.
APP_BUILD_SCRIPT :=$(APP_PROJECT_PATH)/Android.mk
APP_PLATFORM := android-9

0 comments on commit ec50ba3

Please sign in to comment.