mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-05 14:42:42 -07:00
readme updates
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
All scripts provided for utilizing the example demos or backends.
|
||||
|
||||
## General
|
||||
## Windows
|
||||
|
||||
### build_sokol_demo.ps1
|
||||
|
||||
@@ -29,7 +29,7 @@ Will wipe the build folder.
|
||||
|
||||
### compile_sokol_shaders.ps1
|
||||
|
||||
Will generate the odin files containing the sokol shader descriptions for the corresponding glsl shaders. Utilized by the sokol backend. Doesn't need to be runned unless modifications are made to the shaders (pre-generated files are commited to this repository).
|
||||
Will generate the odin files containing the sokol shader descriptions for the corresponding glsl shaders. Utilized by the sokol backend. Doesn't need to be run unless modifications are made to the shaders (pre-generated files are commited to this repository).
|
||||
|
||||
## Helpers
|
||||
|
||||
@@ -45,3 +45,21 @@ A few helper functions to utilize powerhsell & github repos as package managemen
|
||||
### odin_compiler_defs.ps1
|
||||
|
||||
Just variable declarations based on flags used with the odin compiler's CLI.
|
||||
|
||||
# Linux
|
||||
|
||||
Essentially equivalent scripts from the PS scripts used on windows were ported to bash. Tested in WSL ubuntu image (so far).
|
||||
|
||||
#### Note on dependency packages
|
||||
|
||||
Some dependencies are cloned directly into a created thirdparty directory.
|
||||
|
||||
[harfbuzz](https://github.com/Ed94/odin_harfbuzz) is configured to pull & build the C++ library, it will use the MSVC toolchain (you can change it to use meson instead of preferred).
|
||||
[freetype](https://github.com/Ed94/odin-freetype) package does not come with linux binaries.
|
||||
[sokol](https://github.com/floooh/sokol) built using `build_sokol_library.ps`.
|
||||
[sokol-tools](https://github.com/floooh/sokol-tools) used by `compile_sokol_shaders.ps1` to compile the glsl files into odin files for the sokol backend.
|
||||
|
||||
Caveats:
|
||||
|
||||
* The Freetype library's binary must be installed by the user ( Ex: `sudo apt install libfreetype6-dev` )
|
||||
* Sokol needs gl, x11, and alsa libs. The `build_sokol_library.sh` script has basic implementation listing which libraries those are for ubuntu.
|
||||
|
@@ -2,10 +2,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Source the misc.sh script
|
||||
source "$(dirname "$0")/helpers/misc.sh"
|
||||
|
||||
# Get the root directory of the git repository
|
||||
path_root=$(git rev-parse --show-toplevel)
|
||||
path_backend="$path_root/backend"
|
||||
path_build="$path_root/build"
|
||||
@@ -16,7 +14,6 @@ path_thirdparty="$path_root/thirdparty"
|
||||
verify_path "$path_build"
|
||||
verify_path "$path_thirdparty"
|
||||
|
||||
# CPU Info
|
||||
path_system_details="$path_build/system_details.ini"
|
||||
if [ -f "$path_system_details" ]; then
|
||||
CoreCount_Physical=$(grep "PhysicalCores" "$path_system_details" | cut -d'=' -f2)
|
||||
@@ -58,7 +55,6 @@ pushd "$path_thirdparty" > /dev/null
|
||||
fi
|
||||
popd > /dev/null
|
||||
|
||||
# Source the odin compiler definitions
|
||||
source "$(dirname "$0")/helpers/odin_compiler_defs.sh"
|
||||
|
||||
pkg_collection_backend="backend=$path_backend"
|
||||
@@ -69,7 +65,6 @@ pushd "$path_build" > /dev/null
|
||||
function build_SokolBackendDemo {
|
||||
echo 'Building VEFontCache: Sokol Backend Demo'
|
||||
|
||||
# Uncomment the following lines if you need to compile shaders
|
||||
compile_shaders="$path_scripts/compile_sokol_shaders.sh"
|
||||
if [ -f "$compile_shaders" ]; then
|
||||
bash "$compile_shaders"
|
||||
|
Reference in New Issue
Block a user