blob: ed371ced009cc03cde425351dfb51264647575be [file] [log] [blame]
Christopher Wiley643ac022015-08-04 09:52:44 -07001# 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)
Christopher Wiley643ac022015-08-04 09:52:44 -070016
17libdbusBindingGenCFlags := -Wno-unused-parameter
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
Alex Vakulenko472163e2015-10-27 11:30:52 -070028LOCAL_SHARED_LIBRARIES := libbrillo-host libchrome-host
Christopher Wiley643ac022015-08-04 09:52:44 -070029LOCAL_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
Alex Vakulenko472163e2015-10-27 11:30:52 -070047LOCAL_SHARED_LIBRARIES := libbrillo-host libchrome-host
Christopher Wiley643ac022015-08-04 09:52:44 -070048LOCAL_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
Alex Vakulenko472163e2015-10-27 11:30:52 -070060LOCAL_SHARED_LIBRARIES := libbrillo-host libchrome-host
Christopher Wiley643ac022015-08-04 09:52:44 -070061LOCAL_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)