blob: f284e865878a4d83b80b4f3729d35677f9bc79ad [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001#
2# Copyright 2006 The Android Open Source Project
3#
4# Android Asset Packaging Tool
5#
6
7LOCAL_PATH:= $(call my-dir)
8include $(CLEAR_VARS)
9
10LOCAL_SRC_FILES := \
11 file_utils.cpp \
12 localize.cpp \
13 merge_res_and_xliff.cpp \
14 res_check.cpp \
15 xmb.cpp \
16 Configuration.cpp \
17 Perforce.cpp \
18 SourcePos.cpp \
19 Values.cpp \
20 ValuesFile.cpp \
21 XLIFFFile.cpp \
22 XMLHandler.cpp
23
24LOCAL_C_INCLUDES := \
25 external/expat/lib \
26 build/libs/host/include
27
28LOCAL_CFLAGS += -g -O0
29
30LOCAL_STATIC_LIBRARIES := \
31 libexpat \
32 libhost \
33 libutils \
34 libcutils
35
36ifeq ($(HOST_OS),linux)
hmepasb7ffaf62009-01-21 07:41:00 -080037LOCAL_LDLIBS += -lrt -lpthread
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080038endif
39
40
41LOCAL_MODULE := localize
42
43ifeq (a,a)
44 LOCAL_CFLAGS += -DLOCALIZE_WITH_TESTS
45 LOCAL_SRC_FILES += \
46 test.cpp \
47 localize_test.cpp \
48 merge_res_and_xliff_test.cpp \
49 Perforce_test.cpp \
50 ValuesFile_test.cpp \
51 XLIFFFile_test.cpp \
52 XMLHandler_test.cpp
53endif
54
55include $(BUILD_HOST_EXECUTABLE)