1 # Copyright (C) 2015 Intel Corporation 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 include $(CLEAR_VARS) 18 19 LOCAL_MODULE := libmraa 20 LOCAL_CFLAGS += -Wno-unused-parameter -DX86PLAT=1 21 LOCAL_SHARED_LIBRARIES := libcutils libutils libdl libc 22 LOCAL_SRC_FILES := \ 23 src/mraa.c \ 24 src/gpio/gpio.c \ 25 src/i2c/i2c.c \ 26 src/pwm/pwm.c \ 27 src/spi/spi.c \ 28 src/aio/aio.c \ 29 src/uart/uart.c \ 30 src/x86/x86.c \ 31 src/iio/iio.c \ 32 src/x86/intel_galileo_rev_d.c \ 33 src/x86/intel_galileo_rev_g.c \ 34 src/x86/intel_edison_fab_c.c \ 35 src/x86/intel_de3815.c \ 36 src/x86/intel_nuc5.c \ 37 src/x86/intel_sofia_3gr.c \ 38 src/x86/intel_minnow_byt_compatible.c 39 40 # glob.c pulled in from NetBSD project (BSD 3-clause License) 41 LOCAL_SRC_FILES += \ 42 src/glob/glob.c 43 44 LOCAL_C_INCLUDES := \ 45 $(LOCAL_PATH)/include \ 46 $(LOCAL_PATH)/include/linux \ 47 $(LOCAL_PATH)/include/x86 \ 48 $(LOCAL_PATH)/api \ 49 $(LOCAL_PATH)/api/mraa \ 50 $(LOCAL_PATH)/src/glob 51 52 LOCAL_EXPORT_C_INCLUDE_DIRS := \ 53 $(LOCAL_PATH)/api \ 54 $(LOCAL_PATH)/api/mraa 55 56 LOCAL_MODULE_TAGS := optional 57 58 include $(BUILD_SHARED_LIBRARY) 59 60