Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

System libraries and headers for cross-compiling zig-gamedev libs & sample apps

License

NotificationsYou must be signed in to change notification settings

zig-gamedev/system_sdk

Repository files navigation

System libraries and headers for cross-compilingzig-gamedev libs and sample applications.

Usage

build.zig

switch (target.result.os.tag) {.windows=> {if (target.result.cpu.arch.isX86()) {if (target.result.abi.isGnu()ortarget.result.abi.isMusl()) {if (b.lazyDependency("system_sdk", .{}))|system_sdk| {compile_step.addLibraryPath(system_sdk.path("windows/lib/x86_64-windows-gnu"));                    }                }            }        },.macos=> {if (b.lazyDependency("system_sdk", .{}))|system_sdk| {compile_step.addLibraryPath(system_sdk.path("macos12/usr/lib"));compile_step.addFrameworkPath(system_sdk.path("macos12/System/Library/Frameworks"));            }        },.linux=> {if (target.result.cpu.arch.isX86()) {if (b.lazyDependency("system_sdk", .{}))|system_sdk| {compile_step.addLibraryPath(system_sdk.path("linux/lib/x86_64-linux-gnu"));                }            }elseif (target.result.cpu.arch==.aarch64) {if (b.lazyDependency("system_sdk", .{}))|system_sdk| {compile_step.addLibraryPath(system_sdk.path("linux/lib/aarch64-linux-gnu"));                }            }        },else=> {},    }

About

System libraries and headers for cross-compiling zig-gamedev libs & sample apps

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp