build(zig-0.16): update example build instrcutions to work on all platforms
This commit is contained in:
parent
33205725c3
commit
cbb9baab0d
4 changed files with 18 additions and 3 deletions
6
examples/build_options.zig
Normal file
6
examples/build_options.zig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
// Stub build_options for standalone example builds (zig build-exe).
|
||||||
|
// When using `zig build` from the repo root, the real build_options module is
|
||||||
|
// generated by the build system. This file is only needed when invoking
|
||||||
|
// zig build-exe directly from the examples/ directory.
|
||||||
|
pub const macos_fsevents = false;
|
||||||
|
pub const install_tests = false;
|
||||||
|
|
@ -3,7 +3,10 @@
|
||||||
//!
|
//!
|
||||||
//! Build and run (from this directory):
|
//! Build and run (from this directory):
|
||||||
//!
|
//!
|
||||||
//! zig build-exe --dep nightwatch -Msimple-default=simple-default.zig -Mnightwatch=../src/nightwatch.zig
|
//! zig build-exe \
|
||||||
|
//! --dep nightwatch -Msimple-default=simple-default.zig \
|
||||||
|
//! --dep build_options -Mnightwatch=../src/nightwatch.zig \
|
||||||
|
//! -Mbuild_options=build_options.zig
|
||||||
//! ./simple-default
|
//! ./simple-default
|
||||||
|
|
||||||
const nightwatch = @import("nightwatch");
|
const nightwatch = @import("nightwatch");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@
|
||||||
//!
|
//!
|
||||||
//! Build and run (from this directory):
|
//! Build and run (from this directory):
|
||||||
//!
|
//!
|
||||||
//! zig build-exe --dep nightwatch -Msimple-polling=simple-polling.zig -Mnightwatch=../src/nightwatch.zig
|
//! zig build-exe \
|
||||||
|
//! --dep nightwatch -Msimple-polling=simple-polling.zig \
|
||||||
|
//! --dep build_options -Mnightwatch=../src/nightwatch.zig \
|
||||||
|
//! -Mbuild_options=build_options.zig
|
||||||
//! ./simple-polling
|
//! ./simple-polling
|
||||||
|
|
||||||
const nightwatch = @import("nightwatch");
|
const nightwatch = @import("nightwatch");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@
|
||||||
//!
|
//!
|
||||||
//! Build and run (from this directory):
|
//! Build and run (from this directory):
|
||||||
//!
|
//!
|
||||||
//! zig build-exe --dep nightwatch -Msimple-variant=simple-variant.zig -Mnightwatch=../src/nightwatch.zig
|
//! zig build-exe \
|
||||||
|
//! --dep nightwatch -Msimple-variant=simple-variant.zig \
|
||||||
|
//! --dep build_options -Mnightwatch=../src/nightwatch.zig \
|
||||||
|
//! -Mbuild_options=build_options.zig
|
||||||
//! ./simple-variant
|
//! ./simple-variant
|
||||||
|
|
||||||
const nightwatch = @import("nightwatch");
|
const nightwatch = @import("nightwatch");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue