Skip to content

Commit 566e9cc

Browse files
committed
lib name use placebo
1 parent d3cd197 commit 566e9cc

5 files changed

Lines changed: 44 additions & 7 deletions

File tree

.github/workflows/build all libs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ on:
4545
- lcms2
4646
- shaderc
4747
- moltenvk
48-
- libplacebo
48+
- placebo
4949
- dvdread
5050
- dvdnav
5151
- bluray
@@ -145,12 +145,12 @@ jobs:
145145
fi
146146
fi
147147
148-
if [[ "$lib_name" == "libplacebo" ]]; then
148+
if [[ "$lib_name" == "placebo" ]]; then
149149
if [[ "$platform" == "android" ]]; then
150-
echo "Skip libplacebo for android"
150+
echo "Skip placebo for android"
151151
return
152152
elif [[ "$platform" == "all" ]]; then
153-
echo "Skip libplacebo for android"
153+
echo "Skip placebo for android"
154154
platform='apple'
155155
fi
156156
fi
@@ -183,7 +183,7 @@ jobs:
183183
"lcms2"
184184
"shaderc"
185185
"moltenvk"
186-
"libplacebo"
186+
"placebo"
187187
"ijkffmpeg"
188188
"fftutorial"
189189
"ffmpeg4"

.github/workflows/build one lib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ on:
6565
- freetype
6666
- fribidi
6767
- lcms2
68-
- libplacebo
68+
- placebo
6969
- moltenvk
7070
- openssl3
7171
- openssl

.github/workflows/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ case $LIB_NAME in
191191
shaderc)
192192
echo "shaderc has no external dependencies, it fetches its own dependencies via git-sync-deps"
193193
;;
194-
libplacebo)
194+
placebo)
195195
if [[ $PLAT == all ]];then
196196
./main.sh install -l 'lcms2' -p ios
197197
./main.sh install -l 'lcms2' -p tvos

configs/libs/placebo.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#! /usr/bin/env bash
2+
#
3+
# Copyright (C) 2021 Matt Reach<qianlongxu@gmail.com>
4+
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
export LIB_NAME='placebo'
19+
export LIPO_LIBS="libplacebo"
20+
export LIB_DEPENDS_BIN="meson ninja"
21+
# placebo depends on lcms2 and shaderc (for SPIRV), vulkan backend uses MoltenVK
22+
export LIB_DEPENDS='lcms2 shaderc moltenvk'
23+
export GIT_LOCAL_REPO=extra/libplacebo
24+
export GIT_COMMIT=v7.349.0
25+
export REPO_DIR=libplacebo
26+
export GIT_REPO_VERSION=v7.349.0
27+
28+
# you can export GIT_LIBPLACEB0_UPSTREAM=git@xx:yy/libplacebo.git use your mirror
29+
if [[ "$GIT_LIBPLACEB0_UPSTREAM" != "" ]] ;then
30+
export GIT_UPSTREAM="$GIT_LIBPLACEB0_UPSTREAM"
31+
else
32+
export GIT_UPSTREAM=https://github.com/haasn/libplacebo.git
33+
fi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ echo "----------------------"
2727
cd $MR_BUILD_SOURCE
2828
git submodule update --init --recursive
2929

30+
# Fix Python 3.14 compatibility issue in utils_gen.py
31+
# ET.parse() returns ElementTree, need to call .getroot() to get Element
32+
sed -i '' 's/registry = VkXML(ET.parse(xmlfile))/registry = VkXML(ET.parse(xmlfile).getroot())/g' src/vulkan/utils_gen.py
33+
3034
cd "$THIS_DIR"
3135

3236
echo "----------------------"

0 commit comments

Comments
 (0)