Skip to content

Commit

Permalink
Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/ThirdParty-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Weller committed Jul 11, 2023
2 parents de2e954 + 167de21 commit a5142b9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions makeMesa
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Build script for mesa and offscreen mesa (osmesa)
#
#------------------------------------------------------------------------------
mesaPACKAGE=mesa-20.3.5
mesaPACKAGE=mesa-22.2.5
offscreen=false

#------------------------------------------------------------------------------
Expand Down Expand Up @@ -111,18 +111,18 @@ prefixDIR=$installBASE/$mesaDIR
options="\
-Dprefix=$prefixDIR \
-Dgallium-drivers=swrast \
-Dllvm=true \
-Dllvm=enabled \
-Ddri-drivers=[] \
-Dvulkan-drivers=[] \
-Dgbm=false \
-Degl=false"
-Dgbm=disabled \
-Degl=disabled"
if ! $offscreen
then
options="$options \
-Dglx=gallium-xlib"
$WM_PROJECT_DIR/bin/tools/foamVersionCompare ${mesaPACKAGE#mesa-*} lt 22 \
&& options="$options -Dglx=gallium-xlib" \
|| options="$options -Dglx=xlib"
else
options="$options \
-Dosmesa=gallium"
options="$options -Dosmesa=gallium"
fi

# Build mesa
Expand Down Expand Up @@ -168,7 +168,7 @@ Execute ParaView with mesa libraries by running:
Mesa_DIR=\$WM_THIRD_PARTY_DIR/platforms/\$WM_ARCH\$WM_COMPILER/$mesaDIR
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$(echo \$Mesa_DIR/lib*) paraview
LD_PRELOAD=\$(echo \$Mesa_DIR/lib*)/libGL.so paraview
USAGE

Expand Down

0 comments on commit a5142b9

Please sign in to comment.