Starting the process of porting VEFontCache
This commit is contained in:
@ -138,16 +138,24 @@ push-location $path_root
|
||||
|
||||
write-host "`nBuilding Sectr Prototype`n"
|
||||
|
||||
$package_grime = join-path $path_code 'grime'
|
||||
$module_host = join-path $path_code 'host'
|
||||
$module_sectr = join-path $path_code 'sectr'
|
||||
$path_font = join-path $path_code 'font'
|
||||
|
||||
$package_grime = join-path $path_code 'grime'
|
||||
$package_fstash = join-path $path_font 'fontstash'
|
||||
$package_VEFontCache = join-path $path_font 'VEFontCache'
|
||||
$module_host = join-path $path_code 'host'
|
||||
$module_sectr = join-path $path_code 'sectr'
|
||||
if ($force){
|
||||
mark-ModuleDirty $package_fstash
|
||||
mark-ModuleDirty $package_VEFontCache
|
||||
mark-ModuleDirty $package_grime
|
||||
mark-ModuleDirty $module_sectr
|
||||
mark-ModuleDirty $module_host
|
||||
}
|
||||
|
||||
$pkg_grime_dirty = check-ModuleForChanges $package_grime
|
||||
$pkg_fstash_dirty = check-ModuleForChanges $package_fstash
|
||||
$pkg_VEFontCache_dirty = check-ModuleForChanges $package_VEFontCache
|
||||
$pkg_grime_dirty = check-ModuleForChanges $package_grime
|
||||
|
||||
$pkg_collection_codebase = 'codebase=' + $path_code
|
||||
$pkg_collection_thirdparty = 'thirdparty=' + $path_thirdparty
|
||||
@ -165,7 +173,7 @@ push-location $path_root
|
||||
|
||||
function build-sectr
|
||||
{
|
||||
$should_build = (check-ModuleForChanges $module_sectr) -or $pkg_grime_dirty
|
||||
$should_build = (check-ModuleForChanges $module_sectr) -or $pkg_grime_dirty -or $pkg_fstash_dirty -or $pkg_VEFontCache_dirty
|
||||
if ( -not( $should_build)) {
|
||||
write-host 'Skipping sectr build, module up to date'
|
||||
return $module_unchanged
|
||||
|
@ -8,13 +8,15 @@ $path_toolchain = join-path $path_root 'toolchain'
|
||||
|
||||
$url_backtrace_repo = 'https://github.com/Ed94/back.git'
|
||||
$url_freetype = 'https://github.com/Ed94/odin-freetype.git'
|
||||
$url_harfbuzz = 'https://github.com/Ed94/odin_harfbuzz.git'
|
||||
$url_ini_parser = 'https://github.com/laytan/odin-ini-parser.git'
|
||||
$url_odin_repo = 'https://github.com/Ed94/Odin.git'
|
||||
$url_sokol = 'https://github.com/Ed94/sokol-odin.git'
|
||||
$url_sokol_tools = 'https://github.com/floooh/sokol-tools-bin.git'
|
||||
|
||||
$path_backtrace = join-path $path_thirdparty 'backtrace'
|
||||
$path_freetype = join-path $path_thirdparty 'freetype'
|
||||
$path_freetype = join-path $path_thirdparty 'freetype'
|
||||
$path_harfbuzz = join-path $path_thirdparty 'harfbuzz'
|
||||
$path_ini_parser = join-path $path_thirdparty 'ini'
|
||||
$path_odin = join-path $path_toolchain 'Odin'
|
||||
$path_sokol = join-path $path_thirdparty 'sokol'
|
||||
@ -85,8 +87,9 @@ function Update-GitRepo
|
||||
|
||||
push-location $path_thirdparty
|
||||
|
||||
Update-GitRepo -path $path_odin -url $url_odin_repo -build_command '.\scripts\build.ps1'
|
||||
Update-GitRepo -path $path_sokol -url $url_sokol -build_command '.\build_windows.ps1'
|
||||
Update-GitRepo -path $path_odin -url $url_odin_repo -build_command '.\scripts\build.ps1'
|
||||
Update-GitRepo -path $path_sokol -url $url_sokol -build_command '.\build_windows.ps1'
|
||||
Update-GitRepo -path $path_harfbuzz -url $url_harfbuzz -build_command '.\scripts\build.ps1'
|
||||
|
||||
function clone-gitrepo { param( [string] $path, [string] $url )
|
||||
if (test-path $path) {
|
||||
|
Reference in New Issue
Block a user