1#!/bin/sh 2# Copyright 2019 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16echo "" 17echo "" 18echo "DEPRECATED: Please regenerate the Vulkan codegen using the " 19echo "external/gfxstream-protocols project!" 20echo "" 21echo "" 22 23echo "To be run in the vulkan-cereal repo root directory." 24echo "Note: This needs to be in an AOSP checkout to generate guest encoder files." 25 26REPO_DIR=`pwd` 27VULKAN_REGISTRY_XML_DIR=$REPO_DIR/protocols/vulkan/xml 28VULKAN_SRC_DIR=$REPO_DIR/stream-servers/vulkan 29CEREAL_OUTPUT_DIR=$VULKAN_SRC_DIR/cereal 30 31export VK_CEREAL_GUEST_ENCODER_DIR=$REPO_DIR/../goldfish-opengl/system/vulkan_enc 32export VK_CEREAL_GUEST_HAL_DIR=$REPO_DIR/../goldfish-opengl/system/vulkan 33export VK_CEREAL_HOST_DECODER_DIR=$REPO_DIR/stream-servers/vulkan 34export VK_CEREAL_HOST_PROTO_DIR=$REPO_DIR/stream-servers/vulkan/cereal/proto 35export VK_CEREAL_HOST_INCLUDE_DIR=$REPO_DIR/include 36export VK_CEREAL_BASELIB_PREFIX=base 37export VK_CEREAL_BASELIB_LINKNAME=aemu-base.headers 38export VK_CEREAL_HOST_COMMON_LIB_LINKNAME=aemu-host-common.headers 39 40mkdir -p $CEREAL_OUTPUT_DIR 41 42python3 $VULKAN_REGISTRY_XML_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o $CEREAL_OUTPUT_DIR 43 44echo "Done generating Vulkan driver." 45 46