initial commit: set up a template

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-08-15 14:59:53 +05:30
commit fe255f97f4
18 changed files with 856 additions and 0 deletions

6
src/cpu/cpu.cc Normal file
View File

@@ -0,0 +1,6 @@
#include "cpu.hh"
#include <iostream>
namespace cpu {
void run() { std::cout << "Hello from inside the CPU" << std::endl; }
} // namespace cpu

7
src/cpu/cpu.hh Normal file
View File

@@ -0,0 +1,7 @@
#pragma once
#define ABSOLUTE "MADarchod"
namespace cpu {
void run();
}

3
src/cpu/meson.build Normal file
View File

@@ -0,0 +1,3 @@
lib_sources += files(
'cpu.cc'
)

7
src/matar.cc Normal file
View File

@@ -0,0 +1,7 @@
#include "matar.hh"
#include "cpu/cpu.hh"
int run() {
cpu::run();
return 0;
}

12
src/meson.build Normal file
View File

@@ -0,0 +1,12 @@
lib_sources = files(
'matar.cc'
)
subdir('cpu')
lib = library(
meson.project_name(),
lib_sources,
include_directories: includes,
install : true
)