1d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# Copyright 2015 The Android Open Source Project
2d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall#
3d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# Licensed under the Apache License, Version 2.0 (the "License");
4d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# you may not use this file except in compliance with the License.
5d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# You may obtain a copy of the License at
6d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall#
7d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall#      http://www.apache.org/licenses/LICENSE-2.0
8d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall#
9d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# Unless required by applicable law or agreed to in writing, software
10d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# distributed under the License is distributed on an "AS IS" BASIS,
11d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# See the License for the specific language governing permissions and
13d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# limitations under the License.
14d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall
1504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_PATH:= $(call my-dir)
1604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hallinclude $(CLEAR_VARS)
1704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
1804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_CLANG := true
19715b86ac7d0853131b375ff786c87d8d87a762a1Jesse HallLOCAL_CFLAGS := -std=c99 -fvisibility=hidden -fstrict-aliasing \
20715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-DLOG_TAG=\"vknulldrv\" \
21715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-Weverything -Werror \
222077ce0c0d7ca716c408826449314ac799eda650Jesse Hall	-Wno-padded \
232077ce0c0d7ca716c408826449314ac799eda650Jesse Hall	-Wno-undef \
242077ce0c0d7ca716c408826449314ac799eda650Jesse Hall	-Wno-zero-length-array
25715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall#LOCAL_CFLAGS += -DLOG_NDEBUG=0
2604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_CPPFLAGS := -std=c++1y \
2704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	-Wno-c++98-compat-pedantic \
2804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	-Wno-c99-extensions
2904f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3004f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_C_INCLUDES := \
3104f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	frameworks/native/vulkan/include
3204f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3304f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_SRC_FILES := \
3404f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	null_driver.cpp \
3504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	null_driver_gen.cpp
3604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_SHARED_LIBRARIES := liblog
3804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3955cb98da0d4aab8ed9d7698371f263d1e5c58eaeJesse Hall# Real drivers would set this to vulkan.$(TARGET_BOARD_PLATFORM)
4055cb98da0d4aab8ed9d7698371f263d1e5c58eaeJesse HallLOCAL_MODULE := vulkan.default
4104f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_PROPRIETARY_MODULE := true
4204f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_MODULE_RELATIVE_PATH := hw
4304f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_MODULE_TAGS := optional
4404f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
4504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hallinclude $(BUILD_SHARED_LIBRARY)
46