[go: nahoru, domu]

Android.mk revision d02edcbb40d476b6d3b5ae279a6ccef786be8848
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
1904f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_CFLAGS := -std=c99 -fvisibility=hidden -fstrict-aliasing
2004f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_CFLAGS += -DLOG_TAG=\"vulkan\"
2104f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_CFLAGS += -Weverything -Werror -Wno-padded -Wno-undef
2204f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_CPPFLAGS := -std=c++1y \
2304f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	-Wno-c++98-compat-pedantic \
2404f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	-Wno-exit-time-destructors \
2504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	-Wno-c99-extensions
2604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
2704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_C_INCLUDES := \
2804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	frameworks/native/vulkan/include
2904f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3004f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_SRC_FILES := \
3104f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	entry.cpp \
3204f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	get_proc_addr.cpp \
3304f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	loader.cpp
3404f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
3504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_SHARED_LIBRARIES := libhardware liblog
3704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_MODULE := libvulkan
3904f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hallinclude $(BUILD_SHARED_LIBRARY)
40