Home | History | Annotate | Download | only in dbus-binding-generator
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 libdbusBindingGenCFlags := -Wall -Werror
     18 
     19 include $(CLEAR_VARS)
     20 LOCAL_MODULE := libdbus-binding-gen-host
     21 LOCAL_CFLAGS := $(libdbusBindingGenCFlags)
     22 LOCAL_CPP_EXTENSION := .cc
     23 # Hack these includes, because we're not actually linking the libraries.
     24 LOCAL_C_INCLUDES := \
     25     $(LOCAL_PATH) \
     26     $(TOP)/external/dbus \
     27     $(TOP)/external/gtest/include
     28 LOCAL_SHARED_LIBRARIES := libbrillo libchrome
     29 LOCAL_STATIC_LIBRARIES := libexpat
     30 LOCAL_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
     39 include $(BUILD_HOST_STATIC_LIBRARY)
     40 
     41 
     42 include $(CLEAR_VARS)
     43 LOCAL_MODULE := dbus-binding-generator
     44 LOCAL_CFLAGS := $(libdbusBindingGenCFlags)
     45 LOCAL_CPP_EXTENSION := .cc
     46 LOCAL_C_INCLUDES := $(LOCAL_PATH) $(TOP)/external/gtest/include
     47 LOCAL_SHARED_LIBRARIES := libbrillo libchrome
     48 LOCAL_SRC_FILES := chromeos-dbus-bindings/generate_chromeos_dbus_bindings.cc
     49 LOCAL_STATIC_LIBRARIES := libdbus-binding-gen-host libexpat
     50 include $(BUILD_HOST_EXECUTABLE)
     51 
     52 
     53 include $(CLEAR_VARS)
     54 LOCAL_MODULE := dbus-binding-generator-tests
     55 LOCAL_CFLAGS := $(libdbusBindingGenCFlags)
     56 LOCAL_CPP_EXTENSION := .cc
     57 LOCAL_C_INCLUDES := \
     58     $(LOCAL_PATH) \
     59     $(TOP)/external/dbus
     60 LOCAL_SHARED_LIBRARIES := libbrillo libchrome
     61 LOCAL_STATIC_LIBRARIES := libdbus-binding-gen-host libgmock_host libexpat
     62 LOCAL_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
     73 include $(BUILD_HOST_NATIVE_TEST)
     74