xref: /libpciaccess/Android.mk (revision c3121829)
1#
2# Copyright © 2011 Intel Corporation
3#
4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"),
6# to deal in the Software without restriction, including without limitation
7# on the rights to use, copy, modify, merge, publish, distribute, sub
8# license, and/or sell copies of the Software, and to permit persons to whom
9# the Software is furnished to do so, subject to the following conditions:
10#
11# The above copyright notice and this permission notice (including the next
12# paragraph) shall be included in all copies or substantial portions of the
13# Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
18# IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21# DEALINGS IN THE SOFTWARE.
22#
23
24ifndef BOARD_LIBPCIACCESS_HWDATA
25    BOARD_LIBPCIACCESS_HWDATA := external/hwids
26endif
27
28LOCAL_PATH := $(call my-dir)
29include $(CLEAR_VARS)
30
31LOCAL_MODULE := libpciaccess
32LOCAL_PROPRIETARY_MODULE := true
33LOCAL_MODULE_TAGS := optional
34
35LOCAL_CFLAGS := \
36    -DHAVE_INTTYPES_H \
37    -DHAVE_STDINT_H \
38    -DHAVE_STRINGS_H \
39    -DHAVE_STRING_H \
40    -Dlinux \
41    -DPCIIDS_PATH=\"$(BOARD_LIBPCIACCESS_HWDATA)\"
42
43LOCAL_CFLAGS += -Wno-error
44LOCAL_C_INCLUDES := \
45	$(LOCAL_PATH)/include
46
47LOCAL_SRC_FILES := \
48	src/common_bridge.c \
49	src/common_capability.c \
50	src/common_device_name.c \
51	src/common_init.c \
52	src/common_interface.c \
53	src/common_io.c \
54	src/common_iterator.c \
55	src/common_map.c \
56	src/common_vgaarb.c \
57	src/linux_devmem.c \
58	src/linux_sysfs.c
59
60LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)/include
61
62include $(BUILD_SHARED_LIBRARY)
63
64