xref: /libpciaccess/Android.mk (revision c3121829)
159d0176aSChad Versace#
259d0176aSChad Versace# Copyright © 2011 Intel Corporation
359d0176aSChad Versace#
459d0176aSChad Versace# Permission is hereby granted, free of charge, to any person obtaining a
559d0176aSChad Versace# copy of this software and associated documentation files (the "Software"),
659d0176aSChad Versace# to deal in the Software without restriction, including without limitation
759d0176aSChad Versace# on the rights to use, copy, modify, merge, publish, distribute, sub
859d0176aSChad Versace# license, and/or sell copies of the Software, and to permit persons to whom
959d0176aSChad Versace# the Software is furnished to do so, subject to the following conditions:
1059d0176aSChad Versace#
1159d0176aSChad Versace# The above copyright notice and this permission notice (including the next
1259d0176aSChad Versace# paragraph) shall be included in all copies or substantial portions of the
1359d0176aSChad Versace# Software.
1459d0176aSChad Versace#
1559d0176aSChad Versace# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1659d0176aSChad Versace# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1759d0176aSChad Versace# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
1859d0176aSChad Versace# IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1959d0176aSChad Versace# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2059d0176aSChad Versace# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2159d0176aSChad Versace# DEALINGS IN THE SOFTWARE.
2259d0176aSChad Versace#
2359d0176aSChad Versace
2459d0176aSChad Versaceifndef BOARD_LIBPCIACCESS_HWDATA
25bae2b3b6SAndrew Boie    BOARD_LIBPCIACCESS_HWDATA := external/hwids
2659d0176aSChad Versaceendif
2759d0176aSChad Versace
2859d0176aSChad VersaceLOCAL_PATH := $(call my-dir)
2959d0176aSChad Versaceinclude $(CLEAR_VARS)
3059d0176aSChad Versace
3159d0176aSChad VersaceLOCAL_MODULE := libpciaccess
32841abb40SMingwei ShiLOCAL_PROPRIETARY_MODULE := true
3359d0176aSChad VersaceLOCAL_MODULE_TAGS := optional
3459d0176aSChad Versace
3543e7a630SChad VersaceLOCAL_CFLAGS := \
3659d0176aSChad Versace    -DHAVE_INTTYPES_H \
3759d0176aSChad Versace    -DHAVE_STDINT_H \
3859d0176aSChad Versace    -DHAVE_STRINGS_H \
3959d0176aSChad Versace    -DHAVE_STRING_H \
40f9fcdff7SArmin Reese    -Dlinux \
4143e7a630SChad Versace    -DPCIIDS_PATH=\"$(BOARD_LIBPCIACCESS_HWDATA)\"
4259d0176aSChad Versace
43*c3121829SYong YaoLOCAL_CFLAGS += -Wno-error
4459d0176aSChad VersaceLOCAL_C_INCLUDES := \
4559d0176aSChad Versace	$(LOCAL_PATH)/include
4659d0176aSChad Versace
4759d0176aSChad VersaceLOCAL_SRC_FILES := \
4859d0176aSChad Versace	src/common_bridge.c \
4959d0176aSChad Versace	src/common_capability.c \
5059d0176aSChad Versace	src/common_device_name.c \
5159d0176aSChad Versace	src/common_init.c \
5259d0176aSChad Versace	src/common_interface.c \
5359d0176aSChad Versace	src/common_io.c \
5459d0176aSChad Versace	src/common_iterator.c \
5559d0176aSChad Versace	src/common_map.c \
5659d0176aSChad Versace	src/common_vgaarb.c \
5759d0176aSChad Versace	src/linux_devmem.c \
5859d0176aSChad Versace	src/linux_sysfs.c
5959d0176aSChad Versace
6015eb6fd1STvrtko UrsulinLOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)/include
6115eb6fd1STvrtko Ursulin
6259d0176aSChad Versaceinclude $(BUILD_SHARED_LIBRARY)
6359d0176aSChad Versace
64