lib: Splitting up configfile.cc to contain Unix and Windows support in separate sourc...
[barry.git] / android / jni / BarryTool.mk
blobf424a29b0e596122353058d015507e792e4c6325
1 # BarryTool.mk
2 # This file is used to build a single Barry tool. It takes the following parameters:
3 # TOOL - The name of the tool to make
4 # LOCAL_PATH - Path to the JNI directory
6 include $(CLEAR_VARS)
8 LOCAL_SRC_FILES := barry_root/tools/$(TOOL).cc \
9 barry_root/tools/util.cc
11 LOCAL_CFLAGS += -DLOCALEDIR=\"\"
13 LOCAL_CPP_EXTENSION := .cc
15 LOCAL_STATIC_LIBRARIES += libbarry
17 LOCAL_SHARED_LIBRARIES += libiconv libusb1.0
19 LOCAL_LDLIBS := -lz
21 LOCAL_MODULE := $(TOOL)
23 include $(BUILD_EXECUTABLE)