11ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# 21ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# Copyright © 2015 NVIDIA Corporation 31ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# 41ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# Permission is hereby granted, free of charge, to any person obtaining a 51ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# copy of this software and associated documentation files (the "Software"), 61ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# to deal in the Software without restriction, including without limitation 71ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# the rights to use, copy, modify, merge, publish, distribute, sublicense, 81ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# and/or sell copies of the Software, and to permit persons to whom the 91ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# Software is furnished to do so, subject to the following conditions: 101ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# 111ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# The above copyright notice and this permission notice (including the next 121ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# paragraph) shall be included in all copies or substantial portions of the 131ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# Software. 141ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# 151ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 161ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 171ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 181ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 191ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 201ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 211ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# IN THE SOFTWARE. 221ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# 231ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding 241ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry RedingLOCAL_PATH := $(call my-dir) 251ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding 261ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Redinginclude $(CLEAR_VARS) 271ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Redinginclude $(LOCAL_PATH)/Makefile.sources 281ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding 291ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry RedingLOCAL_MODULE := libdrm_util 301ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry RedingLOCAL_MODULE_TAGS := optional 311ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding 321ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry RedingLOCAL_SHARED_LIBRARIES := libdrm 331ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding 34cfe84dc58885ca7b75ec113f95b1c7b6873381b5Dan WillemsenLOCAL_SRC_FILES := $(filter-out %.h,$(UTIL_FILES)) 351ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding 361ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding# avoid name clashes by requiring users to include util/*.h 371ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry RedingLOCAL_EXPORT_C_INCLUDE_DIRS := $(dir $(LOCAL_PATH)) 381ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Reding 391ec3c44bdd38051d870f64d0b2cc7dbd59760386Thierry Redinginclude $(BUILD_STATIC_LIBRARY) 40