Skip to content

Commit 2288a8a

Browse files
author
Felix "xq" Queißner
committed
Project kick-off
0 parents  commit 2288a8a

7 files changed

Lines changed: 25 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.zig text=auto eol=lf

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
zig-cache/
2+
zig-out/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "vendor/ode"]
2+
path = vendor/ode
3+
url = https://bitbucket.org/odedevs/ode.git

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# zig-ode

Sdk.zig

Whitespace-only changes.

build.zig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const std = @import("std");
2+
3+
pub fn build(b: *std.build.Builder) void {
4+
// Standard release options allow the person running `zig build` to select
5+
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
6+
const mode = b.standardReleaseOptions();
7+
8+
const lib = b.addStaticLibrary("zig-ode", "src/main.zig");
9+
lib.setBuildMode(mode);
10+
lib.install();
11+
12+
var main_tests = b.addTest("src/main.zig");
13+
main_tests.setBuildMode(mode);
14+
15+
const test_step = b.step("test", "Run library tests");
16+
test_step.dependOn(&main_tests.step);
17+
}

vendor/ode

Submodule ode added at 5f371b9

0 commit comments

Comments
 (0)