1# Copyright (C) 2015 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH := $(call my-dir) 16 17libdbusBindingGenCFlags := -Wall -Werror 18 19include $(CLEAR_VARS) 20LOCAL_MODULE := libdbus-binding-gen-host 21LOCAL_CFLAGS := $(libdbusBindingGenCFlags) 22LOCAL_CPP_EXTENSION := .cc 23# Hack these includes, because we're not actually linking the libraries. 24LOCAL_C_INCLUDES := \ 25 $(LOCAL_PATH) \ 26 $(TOP)/external/dbus \ 27 $(TOP)/external/gtest/include 28LOCAL_SHARED_LIBRARIES := libbrillo libchrome 29LOCAL_STATIC_LIBRARIES := libexpat 30LOCAL_SRC_FILES := \ 31 chromeos-dbus-bindings/adaptor_generator.cc \ 32 chromeos-dbus-bindings/dbus_signature.cc \ 33 chromeos-dbus-bindings/header_generator.cc \ 34 chromeos-dbus-bindings/indented_text.cc \ 35 chromeos-dbus-bindings/method_name_generator.cc \ 36 chromeos-dbus-bindings/name_parser.cc \ 37 chromeos-dbus-bindings/proxy_generator.cc \ 38 chromeos-dbus-bindings/xml_interface_parser.cc 39include $(BUILD_HOST_STATIC_LIBRARY) 40 41 42include $(CLEAR_VARS) 43LOCAL_MODULE := dbus-binding-generator 44LOCAL_CFLAGS := $(libdbusBindingGenCFlags) 45LOCAL_CPP_EXTENSION := .cc 46LOCAL_C_INCLUDES := $(LOCAL_PATH) $(TOP)/external/gtest/include 47LOCAL_SHARED_LIBRARIES := libbrillo libchrome 48LOCAL_SRC_FILES := chromeos-dbus-bindings/generate_chromeos_dbus_bindings.cc 49LOCAL_STATIC_LIBRARIES := libdbus-binding-gen-host libexpat 50include $(BUILD_HOST_EXECUTABLE) 51 52 53include $(CLEAR_VARS) 54LOCAL_MODULE := dbus-binding-generator-tests 55LOCAL_CFLAGS := $(libdbusBindingGenCFlags) 56LOCAL_CPP_EXTENSION := .cc 57LOCAL_C_INCLUDES := \ 58 $(LOCAL_PATH) \ 59 $(TOP)/external/dbus 60LOCAL_SHARED_LIBRARIES := libbrillo libchrome 61LOCAL_STATIC_LIBRARIES := libdbus-binding-gen-host libgmock_host libexpat 62LOCAL_SRC_FILES := \ 63 chromeos-dbus-bindings/adaptor_generator_unittest.cc \ 64 chromeos-dbus-bindings/dbus_signature_unittest.cc \ 65 chromeos-dbus-bindings/indented_text_unittest.cc \ 66 chromeos-dbus-bindings/method_name_generator_unittest.cc \ 67 chromeos-dbus-bindings/name_parser_unittest.cc \ 68 chromeos-dbus-bindings/proxy_generator_mock_unittest.cc \ 69 chromeos-dbus-bindings/proxy_generator_unittest.cc \ 70 chromeos-dbus-bindings/test_utils.cc \ 71 chromeos-dbus-bindings/testrunner.cc \ 72 chromeos-dbus-bindings/xml_interface_parser_unittest.cc 73include $(BUILD_HOST_NATIVE_TEST) 74