packaging: also support rpmbuild from Tizen:2.3
[contrib/mraa.git] / Android.mk
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/x86/intel_galileo_rev_d.c \
32     src/x86/intel_galileo_rev_g.c \
33     src/x86/intel_edison_fab_c.c  \
34     src/x86/intel_de3815.c \
35     src/x86/intel_nuc5.c \
36     src/x86/intel_minnow_byt_compatible.c
37
38 # glob.c pulled in from NetBSD project (BSD 3-clause License)
39 LOCAL_SRC_FILES += \
40     src/glob/glob.c
41
42 LOCAL_C_INCLUDES := \
43     $(LOCAL_PATH)/include \
44     $(LOCAL_PATH)/include/linux \
45     $(LOCAL_PATH)/include/x86 \
46     $(LOCAL_PATH)/api \
47     $(LOCAL_PATH)/api/mraa \
48     $(LOCAL_PATH)/src/glob
49
50 LOCAL_EXPORT_C_INCLUDE_DIRS := \
51     $(LOCAL_PATH)/api \
52     $(LOCAL_PATH)/api/mraa
53
54 LOCAL_MODULE_TAGS := optional
55
56 include $(BUILD_SHARED_LIBRARY)
57