|
9 | 9 | # You can run the vrclient building alone with : ./proton-tkg.sh build_vrclient
|
10 | 10 | # You can run the lsteamclient building alone with : ./proton-tkg.sh build_lsteamclient
|
11 | 11 | # You can run the steamhelper building alone with : ./proton-tkg.sh build_steamhelper
|
| 12 | +# You can run the mediaconverter building alone with : ./proton-tkg.sh build_mediaconv |
12 | 13 |
|
13 | 14 | set -e
|
14 | 15 |
|
@@ -235,6 +236,27 @@ function build_dxvk {
|
235 | 236 | cd "$_nowhere"
|
236 | 237 | }
|
237 | 238 |
|
| 239 | +function build_mediaconverter { |
| 240 | + |
| 241 | +mkdir -p "$_nowhere/gst/lib64/gstreamer-1.0" |
| 242 | + |
| 243 | + if [ -d "$_nowhere"/Proton/media-converter ]; then |
| 244 | + cd "$_nowhere"/Proton/media-converter |
| 245 | + #mkdir -p "$_nowhere"/Proton/build/mediaconv32 |
| 246 | + mkdir -p "$_nowhere"/Proton/build/mediaconv64 |
| 247 | + #rm -rf "$_nowhere"/Proton/build/mediaconv32/* |
| 248 | + rm -rf "$_nowhere"/Proton/build/mediaconv64/* |
| 249 | + |
| 250 | + #( PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_PATH=/usr/lib32/pkgconfig cargo build --target i686-unknown-linux-gnu --target-dir "$_nowhere"/Proton/build/mediaconv32 --release ) |
| 251 | + ( cargo build --target x86_64-unknown-linux-gnu --target-dir "$_nowhere"/Proton/build/mediaconv64 --release ) |
| 252 | + |
| 253 | + #cp -a "$_nowhere"/Proton/build/mediaconv32/i686-unknown-linux-gnu/release/libprotonmediaconverter.so "$_nowhere"/gst/lib/gstreamer-1.0/ |
| 254 | + cp -a "$_nowhere"/Proton/build/mediaconv64/x86_64-unknown-linux-gnu/release/libprotonmediaconverter.so "$_nowhere"/gst/lib64/gstreamer-1.0/ |
| 255 | + |
| 256 | + cd "$_nowhere" |
| 257 | + fi |
| 258 | +} |
| 259 | + |
238 | 260 | function build_steamhelper {
|
239 | 261 | # disable openvr support for now since we don't support it
|
240 | 262 | if [ "$_proton_branch" = "proton_6.3" ]; then
|
@@ -449,6 +471,8 @@ elif [ "$1" = "build_vkd3d" ]; then
|
449 | 471 | build_vkd3d
|
450 | 472 | elif [ "$1" = "build_dxvk" ]; then
|
451 | 473 | build_dxvk
|
| 474 | +elif [ "$1" = "build_mediaconv" ]; then |
| 475 | + build_mediaconverter |
452 | 476 | elif [ "$1" = "build_steamhelper" ]; then
|
453 | 477 | build_steamhelper
|
454 | 478 | else
|
|
471 | 495 |
|
472 | 496 | echo -e "Proton-tkg - $(date +"%m-%d-%Y %H:%M:%S")" > "$_logdir"/proton-tkg.log
|
473 | 497 |
|
| 498 | + # Build GST/mediaconverter |
| 499 | + build_mediaconverter |
| 500 | + |
474 | 501 | # Now let's build
|
475 | 502 | cd "$_wine_tkg_git_path"
|
476 | 503 | if [ -e "/usr/bin/makepkg" ] && [ "$_nomakepkg" = "false" ]; then
|
@@ -581,6 +608,10 @@ else
|
581 | 608 | # Build steam helper
|
582 | 609 | build_steamhelper
|
583 | 610 |
|
| 611 | + # gst/mediaconverter |
| 612 | + mv "$_nowhere"/gst/lib64/* proton_dist_tmp/lib64/ |
| 613 | + rm -rf "$_nowhere/gst" |
| 614 | + |
584 | 615 | # vkd3d
|
585 | 616 | # Build vkd3d-proton when vkd3dlib is disabled - Requires MinGW-w64-gcc or it won't be built
|
586 | 617 | if [ "$_build_vkd3d" = "true" ]; then
|
|
0 commit comments