Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Game Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Game Development
Game Library
Commits
de0771bf
Commit
de0771bf
authored
3 years ago
by
Joseph Walton-Rivers
Browse files
Options
Downloads
Patches
Plain Diff
cleanup demo build script
parent
9bee6df1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+23
-2
23 additions, 2 deletions
build.sh
with
23 additions
and
2 deletions
build.sh
+
23
−
2
View file @
de0771bf
#! /bin/bash
CACHE
=
/tmp/fggl/
LOG
=
$CACHE
/demo.log
EXE
=
"../build/demo/FgglDemo"
if
[[
!
-d
"build/"
]]
then
mkdir
build
...
...
@@ -10,13 +14,30 @@ sudo dnf install -y wayland-devel libxkbcommon-devel wayland-protocols-devel ext
sudo
dnf
install
-y
glew-devel glm-devel
# if doing shader development, disable the cache to make sure changes take affect
rm
-rf
/tmp/fggl/
rm
-rf
$CACHE
#
# build step
#
pushd
build
cmake ..
make
popd
#
# additional stuff
#
# gamemoderun
if
[
-x
"
$(
command
-v
gamemoderun
)
"
]
;
then
EXE
=
"gamemoderun
$EXE
"
fi
# mangohud
if
[
-x
"
$(
command
-v
mangohud
)
"
]
;
then
EXE
=
"mangohud --dlsym
$EXE
"
fi
pushd
demo
../build/demo/FgglDemo
>
/tmp/fggl.log 2>&1 &
$EXE
../build/demo/FgglDemo
>
/tmp/fggl.log 2>&1 &
popd
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