Repository navigation
Replies: 1 comment
|
No — there's no install target, and copying a binary to bgfx builds with GENie rather than CMake or autotools, and the makefile only has targets for generating and building projects. Nothing writes to a prefix, so there's nothing that would place an example in The bigger obstacle is that the examples resolve their assets relative to the working directory, not to the binary. GENie sets that up per project ( function exampleProjectDefaults()
debugdir (path.join(BGFX_DIR, "examples/runtime"))so an example expects to be launched with If you want to launch them from anywhere, the working approach is a wrapper rather than a copy: #!/bin/sh
cd /path/to/bgfx/examples/runtime && exec /path/to/.build/linux64_gcc/bin/example-01-cubesRelease "$@"Drop that in |
No — there's no install target, and copying a binary to
/usr/binwouldn't be enough anyway.bgfx builds with GENie rather than CMake or autotools, and the makefile only has targets for generating and building projects. Nothing writes to a prefix, so there's nothing that would place an example in
/usr/bin.The bigger obstacle is that the examples resolve their assets relative to the working directory, not to the binary. GENie sets that up per project (
scripts/genie.lua):so an example expects to be launched with
examples/runtimeas its cwd, and that's where the shaders, textures and meshes it loads live. …