You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
38 lines
1.5 KiB
#!/bin/sh
|
|
# Copyright 2019 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
echo "To be run in the vulkan-cereal repo root directory."
|
|
echo "Note: This needs to be in an AOSP checkout to generate guest encoder files."
|
|
|
|
REPO_DIR=`pwd`
|
|
VULKAN_REGISTRY_XML_DIR=$REPO_DIR/protocols/vulkan/xml
|
|
VULKAN_SRC_DIR=$REPO_DIR/stream-servers/vulkan
|
|
CEREAL_OUTPUT_DIR=$VULKAN_SRC_DIR/cereal
|
|
|
|
export VK_CEREAL_GUEST_ENCODER_DIR=$REPO_DIR/../goldfish-opengl/system/vulkan_enc
|
|
export VK_CEREAL_GUEST_HAL_DIR=$REPO_DIR/../goldfish-opengl/system/vulkan
|
|
export VK_CEREAL_HOST_DECODER_DIR=$REPO_DIR/stream-servers/vulkan
|
|
export VK_CEREAL_HOST_PROTO_DIR=$REPO_DIR/stream-servers/vulkan/cereal/proto
|
|
export VK_CEREAL_HOST_INCLUDE_DIR=$REPO_DIR/include
|
|
export VK_CEREAL_BASELIB_PREFIX=base
|
|
export VK_CEREAL_BASELIB_LINKNAME=gfxstream-base
|
|
|
|
mkdir -p $CEREAL_OUTPUT_DIR
|
|
|
|
python3 $VULKAN_REGISTRY_XML_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o $CEREAL_OUTPUT_DIR
|
|
|
|
echo "Done generating Vulkan driver."
|
|
|