| The Android Open Source Project | 46c012c | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | # Copyright 2007 The Android Open Source Project |
| 2 | # |
| 3 | # Copies files into the directory structure described by a manifest |
| 4 | |
| Joe Onorato | 54fba42 | 2010-06-10 18:34:55 -0700 | [diff] [blame] | 5 | # This tool is prebuilt if we're doing an app-only build. |
| Ying Wang | c7cf53e | 2014-03-07 15:55:14 -0800 | [diff] [blame] | 6 | ifeq ($(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)),) |
| Joe Onorato | 54fba42 | 2010-06-10 18:34:55 -0700 | [diff] [blame] | 7 | |
| The Android Open Source Project | 46c012c | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 8 | LOCAL_PATH:= $(call my-dir) |
| 9 | include $(CLEAR_VARS) |
| 10 | |
| Christopher Wiley | e0146cf | 2015-08-24 15:06:58 -0700 | [diff] [blame] | 11 | LOCAL_CLANG_CFLAGS := -Wall -Werror |
| 12 | # Tragically, the code is riddled with unused parameters. |
| 13 | LOCAL_CLANG_CFLAGS += -Wno-unused-parameter |
| 14 | # yacc dumps a lot of code *just in case*. |
| 15 | LOCAL_CLANG_CFLAGS += -Wno-unused-function |
| 16 | LOCAL_CLANG_CFLAGS += -Wno-unneeded-internal-declaration |
| 17 | # yacc is a tool from a more civilized age. |
| 18 | LOCAL_CLANG_CFLAGS += -Wno-deprecated-register |
| 19 | # yacc also has a habit of using char* over const char*. |
| 20 | LOCAL_CLANG_CFLAGS += -Wno-writable-strings |
| 21 | |
| The Android Open Source Project | 46c012c | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 22 | LOCAL_SRC_FILES := \ |
| Christopher Wiley | 89e3586 | 2015-08-30 10:57:07 -0700 | [diff] [blame] | 23 | 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 Project | 46c012c | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 35 | |
| The Android Open Source Project | 46c012c | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 36 | LOCAL_MODULE := aidl |
| Dan Willemsen | 2c1c505 | 2015-08-19 11:13:56 -0700 | [diff] [blame] | 37 | LOCAL_MODULE_HOST_OS := darwin linux windows |
| The Android Open Source Project | 46c012c | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 38 | |
| 39 | include $(BUILD_HOST_EXECUTABLE) |
| 40 | |
| Casey Dahlin | d8cc509 | 2015-08-28 15:46:48 -0700 | [diff] [blame] | 41 | # Unit tests |
| 42 | include $(CLEAR_VARS) |
| 43 | LOCAL_MODULE := aidl_unittests |
| 44 | LOCAL_CFLAGS := -g -DUNIT_TEST |
| 45 | LOCAL_SRC_FILES := tests/test.cpp |
| 46 | LOCAL_STATIC_LIBRARIES := libgmock_host libgtest_host libBionicGtestMain |
| 47 | LOCAL_LDLIBS := -lrt |
| 48 | include $(BUILD_HOST_NATIVE_TEST) |
| 49 | |
| Ying Wang | c7cf53e | 2014-03-07 15:55:14 -0800 | [diff] [blame] | 50 | endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK |