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
859ba461
Verified
Commit
859ba461
authored
1 year ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
cairodemo: convert to toml
parent
561204cb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/demos/cairodemo/recipe.sh
+0
-34
0 additions, 34 deletions
recipes/demos/cairodemo/recipe.sh
recipes/demos/cairodemo/recipe.toml
+27
-0
27 additions, 0 deletions
recipes/demos/cairodemo/recipe.toml
with
27 additions
and
34 deletions
recipes/demos/cairodemo/recipe.sh
deleted
100755 → 0
+
0
−
34
View file @
561204cb
BUILD_DEPENDS
=(
cairo expat fontconfig freetype2 liborbital libpng pixman zlib
)
function
recipe_version
{
printf
"1.0.0"
skip
=
1
}
function
recipe_prepare
{
rm
-rf
source
mkdir source
cp
cairodemo.c
source
}
function
recipe_build
{
sysroot
=
"
$(
realpath
../sysroot
)
"
export
LDFLAGS
=
"-L
$sysroot
/lib"
export
CPPFLAGS
=
"-I
$sysroot
/include"
set
-x
"
${
CXX
}
"
$(
"
${
PKG_CONFIG
}
"
--cflags
cairo
)
cairodemo.c
-o
cairodemo
-static
$(
"
${
PKG_CONFIG
}
"
--libs
cairo
)
-lorbital
set
+x
skip
=
1
}
function
recipe_clean
{
"
$REDOX_MAKE
"
clean
skip
=
1
}
function
recipe_stage
{
dest
=
"
$(
realpath
$1
)
"
mkdir
-pv
"
$dest
/bin"
cp
-v
"cairodemo"
"
$dest
/bin/cairodemo"
skip
=
1
}
This diff is collapsed.
Click to expand it.
recipes/demos/cairodemo/recipe.toml
0 → 100755
+
27
−
0
View file @
859ba461
# source is part of cookbook
[build]
dependencies
=
[
"cairo"
,
"expat"
,
"fontconfig"
,
"freetype2"
,
"liborbital"
,
"libpng"
,
"pixman"
,
"zlib"
,
]
template
=
"custom"
script
=
"""
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib"
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include"
"${CXX}"
\
$("${PKG_CONFIG}" --cflags cairo)
\
"${COOKBOOK_RECIPE}/cairodemo.c"
\
-o cairodemo
\
-static
\
$("${PKG_CONFIG}" --libs cairo)
\
-lorbital
mkdir -pv "${COOKBOOK_STAGE}/bin"
cp -v "cairodemo" "${COOKBOOK_STAGE}/bin/cairodemo"
"""
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