From 8125f1680c5e223824cdd6dcb842bb5e6b21592f Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sun, 14 Sep 2025 16:05:30 -0400 Subject: [PATCH] preparing for codebase rewrite --- code/sectr/engine/render.odin | 2 +- code/sectr/font/provider.odin | 2 +- code/sectr/font/render_sokol.odin | 2 +- code/{font => }/vefontcache/LICENSE.md | 0 code/{font => }/vefontcache/LRU.odin | 0 code/{font => }/vefontcache/atlas.odin | 0 code/{font => }/vefontcache/docs/Readme.md | 0 .../vefontcache/docs/guide_architecture.md | 0 .../vefontcache/docs/guide_backend.md | 0 .../vefontcache/docs/original/LICENSE.md | 0 code/{font => }/vefontcache/draw.odin | 0 code/{font => }/vefontcache/kt1cx.odin | 0 code/{font => }/vefontcache/misc.odin | 0 code/{font => }/vefontcache/parser.odin | 0 code/{font => }/vefontcache/pkg_mapping.odin | 0 code/{font => }/vefontcache/profiling.odin | 0 code/{font => }/vefontcache/shaper.odin | 0 code/{font => }/vefontcache/vefontcache.odin | 0 scripts/build.ps1 | 23 +++++++++++-------- 19 files changed, 17 insertions(+), 12 deletions(-) rename code/{font => }/vefontcache/LICENSE.md (100%) rename code/{font => }/vefontcache/LRU.odin (100%) rename code/{font => }/vefontcache/atlas.odin (100%) rename code/{font => }/vefontcache/docs/Readme.md (100%) rename code/{font => }/vefontcache/docs/guide_architecture.md (100%) rename code/{font => }/vefontcache/docs/guide_backend.md (100%) rename code/{font => }/vefontcache/docs/original/LICENSE.md (100%) rename code/{font => }/vefontcache/draw.odin (100%) rename code/{font => }/vefontcache/kt1cx.odin (100%) rename code/{font => }/vefontcache/misc.odin (100%) rename code/{font => }/vefontcache/parser.odin (100%) rename code/{font => }/vefontcache/pkg_mapping.odin (100%) rename code/{font => }/vefontcache/profiling.odin (100%) rename code/{font => }/vefontcache/shaper.odin (100%) rename code/{font => }/vefontcache/vefontcache.odin (100%) diff --git a/code/sectr/engine/render.odin b/code/sectr/engine/render.odin index 7638356..ea737af 100644 --- a/code/sectr/engine/render.odin +++ b/code/sectr/engine/render.odin @@ -4,7 +4,7 @@ import "core:math" import lalg "core:math/linalg" import "core:time" -import ve "codebase:font/VEFontCache" +import ve "codebase:VEFontCache" import sokol_app "thirdparty:sokol/app" import gfx "thirdparty:sokol/gfx" import sokol_glue "thirdparty:sokol/glue" diff --git a/code/sectr/font/provider.odin b/code/sectr/font/provider.odin index 700ba27..efae7c8 100644 --- a/code/sectr/font/provider.odin +++ b/code/sectr/font/provider.odin @@ -2,7 +2,7 @@ package sectr import "core:math" import "core:os" -import ve "codebase:font/VEFontCache" +import ve "codebase:VEFontCache" import sokol_gfx "thirdparty:sokol/gfx" Font_Provider_Use_Freetype :: false diff --git a/code/sectr/font/render_sokol.odin b/code/sectr/font/render_sokol.odin index 7b80823..d5d6041 100644 --- a/code/sectr/font/render_sokol.odin +++ b/code/sectr/font/render_sokol.odin @@ -1,6 +1,6 @@ package sectr -import ve "codebase:font/VEFontCache" +import ve "codebase:VEFontCache" import sokol_gfx "thirdparty:sokol/gfx" import sokol_glue "thirdparty:sokol/glue" diff --git a/code/font/vefontcache/LICENSE.md b/code/vefontcache/LICENSE.md similarity index 100% rename from code/font/vefontcache/LICENSE.md rename to code/vefontcache/LICENSE.md diff --git a/code/font/vefontcache/LRU.odin b/code/vefontcache/LRU.odin similarity index 100% rename from code/font/vefontcache/LRU.odin rename to code/vefontcache/LRU.odin diff --git a/code/font/vefontcache/atlas.odin b/code/vefontcache/atlas.odin similarity index 100% rename from code/font/vefontcache/atlas.odin rename to code/vefontcache/atlas.odin diff --git a/code/font/vefontcache/docs/Readme.md b/code/vefontcache/docs/Readme.md similarity index 100% rename from code/font/vefontcache/docs/Readme.md rename to code/vefontcache/docs/Readme.md diff --git a/code/font/vefontcache/docs/guide_architecture.md b/code/vefontcache/docs/guide_architecture.md similarity index 100% rename from code/font/vefontcache/docs/guide_architecture.md rename to code/vefontcache/docs/guide_architecture.md diff --git a/code/font/vefontcache/docs/guide_backend.md b/code/vefontcache/docs/guide_backend.md similarity index 100% rename from code/font/vefontcache/docs/guide_backend.md rename to code/vefontcache/docs/guide_backend.md diff --git a/code/font/vefontcache/docs/original/LICENSE.md b/code/vefontcache/docs/original/LICENSE.md similarity index 100% rename from code/font/vefontcache/docs/original/LICENSE.md rename to code/vefontcache/docs/original/LICENSE.md diff --git a/code/font/vefontcache/draw.odin b/code/vefontcache/draw.odin similarity index 100% rename from code/font/vefontcache/draw.odin rename to code/vefontcache/draw.odin diff --git a/code/font/vefontcache/kt1cx.odin b/code/vefontcache/kt1cx.odin similarity index 100% rename from code/font/vefontcache/kt1cx.odin rename to code/vefontcache/kt1cx.odin diff --git a/code/font/vefontcache/misc.odin b/code/vefontcache/misc.odin similarity index 100% rename from code/font/vefontcache/misc.odin rename to code/vefontcache/misc.odin diff --git a/code/font/vefontcache/parser.odin b/code/vefontcache/parser.odin similarity index 100% rename from code/font/vefontcache/parser.odin rename to code/vefontcache/parser.odin diff --git a/code/font/vefontcache/pkg_mapping.odin b/code/vefontcache/pkg_mapping.odin similarity index 100% rename from code/font/vefontcache/pkg_mapping.odin rename to code/vefontcache/pkg_mapping.odin diff --git a/code/font/vefontcache/profiling.odin b/code/vefontcache/profiling.odin similarity index 100% rename from code/font/vefontcache/profiling.odin rename to code/vefontcache/profiling.odin diff --git a/code/font/vefontcache/shaper.odin b/code/vefontcache/shaper.odin similarity index 100% rename from code/font/vefontcache/shaper.odin rename to code/vefontcache/shaper.odin diff --git a/code/font/vefontcache/vefontcache.odin b/code/vefontcache/vefontcache.odin similarity index 100% rename from code/font/vefontcache/vefontcache.odin rename to code/vefontcache/vefontcache.odin diff --git a/scripts/build.ps1 b/scripts/build.ps1 index ac6099f..5512436 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -109,6 +109,8 @@ $flag_vet_semicolon = '-vet-semicolon' $flag_vet_shadow_vars = '-vet-shadowing' $flag_vet_using_stmt = '-vet-using-stmt' +$flag_microarch_zen5 = "--microarch:znver5" + $flag_msvc_link_disable_dynamic_base = '/DYNAMICBASE:NO' $flag_msvc_link_base_address = '/BASE:' $flag_msvc_link_fixed_base_address = '/FIXED' @@ -144,10 +146,11 @@ push-location $path_root $module_scripts = $PSScriptRoot $package_grime = join-path $path_code 'grime' - $package_VEFontCache = join-path $path_font 'VEFontCache' + $package_VEFontCache = join-path $path_code 'VEFontCache' $package_stb_truetype = join-path $path_thirdparty 'stb' $module_host = join-path $path_code 'host' $module_sectr = join-path $path_code 'sectr' + if ($force){ mark-ModuleDirty $module_scripts mark-ModuleDirty $package_VEFontCache @@ -207,21 +210,23 @@ push-location $path_root $build_args += ($flag_collection + $pkg_collection_codebase) $build_args += ($flag_collection + $pkg_collection_thirdparty) # $build_args += $flag_micro_architecture_native + $build_args += $flag_microarch_zen5 $build_args += $flag_use_separate_modules $build_args += $flag_thread_count + $CoreCount_Physical - # $build_args += $flag_optimize_none + $build_args += $flag_optimize_none # $build_args += $flag_optimize_minimal # $build_args += $flag_optimize_speed - $build_args += $falg_optimize_aggressive + # $build_args += $falg_optimize_aggressive $build_args += $flag_debug $build_args += $flag_pdb_name + $pdb $build_args += $flag_subsystem + 'windows' # $build_args += $flag_show_system_calls $build_args += $flag_show_timings $build_args += ($flag_extra_linker_flags + $linker_args ) + # $build_args += $flag_no_bounds_check # $build_args += $flag_no_thread_checker # $build_args += $flag_dynamic_map_calls - # $build_args += $flag_default_allocator_nil + $build_args += $flag_default_allocator_nil $build_args += ($flag_max_error_count + '10') # $build_args += $flag_sanitize_address # $build_args += $flag_sanitize_memory @@ -289,10 +294,10 @@ push-location $path_root $build_args += ($flag_collection + $pkg_collection_codebase) $build_args += ($flag_collection + $pkg_collection_thirdparty) # $build_args += $flag_micro_architecture_native - # $build_args += $flag_use_separate_modules + $build_args += $flag_microarch_zen5 $build_args += $flag_thread_count + $CoreCount_Physical - # $build_args += $flag_optimize_none - $build_args += $flag_optimize_minimal + $build_args += $flag_optimize_none + # $build_args += $flag_optimize_minimal # $build_args += $flag_optimize_speed # $build_args += $falg_optimize_aggressive $build_args += $flag_debug @@ -303,7 +308,7 @@ push-location $path_root # $build_args += $flag_show_system_call # $build_args += $flag_no_bounds_check # $build_args += $flag_no_thread_checker - # $build_args += $flag_default_allocator_nil + $build_args += $flag_default_allocator_nil $build_args += ($flag_max_error_count + '10') # $build_args += $flag_sanitize_address # $build_args += $flag_sanitize_memory @@ -329,7 +334,7 @@ push-location $path_root mark-ModuleDirty $module_host } } - build-host + $script:sectr_build_host = build-host Pop-Location # path_code }