mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
absolute C-nema
This commit is contained in:
parent
4b56a9bb6c
commit
25394803db
@ -36,7 +36,6 @@ pub fn build(b: *std.Build) void {
|
|||||||
|
|
||||||
const engineShared = b.addSharedLibrary(.{
|
const engineShared = b.addSharedLibrary(.{
|
||||||
.name = "neonucleus",
|
.name = "neonucleus",
|
||||||
//.root_source_file = b.path("src/engine.zig"),
|
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
@ -55,10 +54,15 @@ pub fn build(b: *std.Build) void {
|
|||||||
|
|
||||||
const emulator = b.addExecutable(.{
|
const emulator = b.addExecutable(.{
|
||||||
.name = "neunucleus",
|
.name = "neunucleus",
|
||||||
.root_source_file = b.path("src/main.zig"),
|
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
emulator.linkLibC();
|
||||||
|
emulator.addCSourceFiles(.{
|
||||||
|
.files = &.{
|
||||||
|
"src/emulator.c",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
// forces us to link in everything too
|
// forces us to link in everything too
|
||||||
emulator.linkLibrary(engineStatic);
|
emulator.linkLibrary(engineStatic);
|
||||||
|
6
src/emulator.c
Normal file
6
src/emulator.c
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("Emulator is nowhere close to complete\n");
|
||||||
|
return 0;
|
||||||
|
}
|
0
src/emulator/.gitkeep
Normal file
0
src/emulator/.gitkeep
Normal file
Loading…
x
Reference in New Issue
Block a user