Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
bdcad6f2
Verified
Commit
bdcad6f2
authored
4 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Update mesa to use meson
parent
6c3a3980
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/mesa/recipe.sh
+51
-22
51 additions, 22 deletions
recipes/mesa/recipe.sh
with
51 additions
and
22 deletions
recipes/mesa/recipe.sh
+
51
−
22
View file @
bdcad6f2
...
...
@@ -17,27 +17,57 @@ function recipe_build {
sysroot
=
"
$(
realpath
../sysroot
)
"
export
CFLAGS
=
"-I
$sysroot
/include -DHAVE_PTHREAD=1"
export
CPPFLAGS
=
"-I
$sysroot
/include -DHAVE_PTHREAD=1"
export
LDFLAGS
=
"-L
$sysroot
/lib --static"
export
LDFLAGS
=
"-L
$sysroot
/lib --static
$(
"
${
TARGET
}
-llvm-config"
--libfiles
all
)
"
#export LLVM_CONFIG="x86_64-unknown-redox-llvm-config"
NOCONFIGURE
=
1 ./autogen.sh
./configure
\
--build
=
${
BUILD
}
\
--host
=
"
${
HOST
}
"
\
--prefix
=
/
\
--disable-dri
\
--disable-dri3
\
--disable-driglx-direct
\
--disable-egl
\
--disable-glx
\
--disable-gbm
\
--disable-llvm-shared-libs
\
--disable-shared
\
--enable-llvm
\
--enable-gallium-osmesa
\
--enable-static
\
--with-gallium-drivers
=
swrast
\
--with-platforms
=
surfaceless
"
$REDOX_MAKE
"
V
=
1
-j
"
$(
$NPROC
)
"
# TODO: Fix this annoying shite
echo
"[binaries]"
>
cross_file.txt
echo
"c = '
${
CC
}
'"
>>
cross_file.txt
echo
"cpp = '
${
CXX
}
'"
>>
cross_file.txt
echo
"ar = '
${
AR
}
'"
>>
cross_file.txt
echo
"strip = '
${
STRIP
}
'"
>>
cross_file.txt
echo
"pkgconfig = '
${
PKG_CONFIG
}
'"
>>
cross_file.txt
echo
"llvm-config = '
${
TARGET
}
-llvm-config'"
>>
cross_file.txt
echo
"[host_machine]"
>>
cross_file.txt
echo
"system = 'redox'"
>>
cross_file.txt
echo
"cpu_family = 'x86_64'"
>>
cross_file.txt
echo
"cpu = 'x86_64'"
>>
cross_file.txt
echo
"endian = 'little'"
>>
cross_file.txt
echo
"[paths]"
>>
cross_file.txt
echo
"prefix = '/'"
>>
cross_file.txt
echo
"libdir = 'lib'"
>>
cross_file.txt
echo
"bindir = 'bin'"
>>
cross_file.txt
unset
AR
unset
AS
unset
CC
unset
CXX
unset
LD
unset
NM
unset
OBJCOPY
unset
OBJDUMP
unset
PKG_CONFIG
unset
PKG_CONFIG_PATH
unset
RANLIB
unset
READELF
unset
STRIP
meson
.
_build
\
--cross-file
cross_file.txt
\
--buildtype
release
\
--strip
\
-Ddefault_library
=
static
\
-Dglx
=
disabled
\
-Dllvm
=
enabled
\
-Dosmesa
=
gallium
\
-Dplatforms
=
\
-Dshader-cache
=
disabled
\
-Dshared-llvm
=
disabled
\
-Dshared-glapi
=
disabled
ninja
-C
_build
-v
skip
=
1
}
...
...
@@ -52,9 +82,8 @@ function recipe_clean {
}
function
recipe_stage
{
#export LLVM_CONFIG="x86_64-unknown-redox-llvm-config"
dest
=
"
$(
realpath
$1
)
"
"
$REDOX_MAKE
"
DESTDIR
=
"
$dest
"
install
DESTDIR
=
"
$dest
"
ninja
-C
_build
install
rm
-f
"
$dest
/lib/"
*
.la
skip
=
1
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment