blob: f18b0828113936e2a2a79bff85d129f12d61fbf8 [file] [log] [blame]
The Android Open Source Project46c012c2008-10-21 07:00:00 -07001# Copyright 2007 The Android Open Source Project
2#
3# Copies files into the directory structure described by a manifest
4
Joe Onorato54fba422010-06-10 18:34:55 -07005# This tool is prebuilt if we're doing an app-only build.
Ying Wangc7cf53e2014-03-07 15:55:14 -08006ifeq ($(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)),)
Joe Onorato54fba422010-06-10 18:34:55 -07007
The Android Open Source Project46c012c2008-10-21 07:00:00 -07008LOCAL_PATH:= $(call my-dir)
9include $(CLEAR_VARS)
10
Christopher Wileye0146cf2015-08-24 15:06:58 -070011LOCAL_CLANG_CFLAGS := -Wall -Werror
12# Tragically, the code is riddled with unused parameters.
13LOCAL_CLANG_CFLAGS += -Wno-unused-parameter
14# yacc dumps a lot of code *just in case*.
15LOCAL_CLANG_CFLAGS += -Wno-unused-function
16LOCAL_CLANG_CFLAGS += -Wno-unneeded-internal-declaration
17# yacc is a tool from a more civilized age.
18LOCAL_CLANG_CFLAGS += -Wno-deprecated-register
19# yacc also has a habit of using char* over const char*.
20LOCAL_CLANG_CFLAGS += -Wno-writable-strings
21
The Android Open Source Project46c012c2008-10-21 07:00:00 -070022LOCAL_SRC_FILES := \
Christopher Wiley89e35862015-08-30 10:57:07 -070023 AST.cpp \
24 Type.cpp \
25 aidl.cpp \
26 aidl_language.cpp \
27 aidl_language_l.l \
28 aidl_language_y.y \
29 generate_java.cpp \
30 generate_java_binder.cpp \
31 generate_java_rpc.cpp \
32 main.cpp \
33 options.cpp \
34 search_path.cpp \
The Android Open Source Project46c012c2008-10-21 07:00:00 -070035
The Android Open Source Project46c012c2008-10-21 07:00:00 -070036LOCAL_MODULE := aidl
Dan Willemsen2c1c5052015-08-19 11:13:56 -070037LOCAL_MODULE_HOST_OS := darwin linux windows
The Android Open Source Project46c012c2008-10-21 07:00:00 -070038
39include $(BUILD_HOST_EXECUTABLE)
40
Casey Dahlind8cc5092015-08-28 15:46:48 -070041# Unit tests
42include $(CLEAR_VARS)
43LOCAL_MODULE := aidl_unittests
44LOCAL_CFLAGS := -g -DUNIT_TEST
45LOCAL_SRC_FILES := tests/test.cpp
46LOCAL_STATIC_LIBRARIES := libgmock_host libgtest_host libBionicGtestMain
47LOCAL_LDLIBS := -lrt
48include $(BUILD_HOST_NATIVE_TEST)
49
Ying Wangc7cf53e2014-03-07 15:55:14 -080050endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK