initial commit: set up a template
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		
							
								
								
									
										6
									
								
								src/cpu/cpu.cc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/cpu/cpu.cc
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										7
									
								
								src/cpu/cpu.hh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#define ABSOLUTE "MADarchod"
 | 
			
		||||
 | 
			
		||||
namespace cpu {
 | 
			
		||||
void run();
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								src/cpu/meson.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/cpu/meson.build
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
lib_sources += files(
 | 
			
		||||
  'cpu.cc'
 | 
			
		||||
)
 | 
			
		||||
							
								
								
									
										7
									
								
								src/matar.cc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/matar.cc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
#include "matar.hh"
 | 
			
		||||
#include "cpu/cpu.hh"
 | 
			
		||||
 | 
			
		||||
int run() {
 | 
			
		||||
    cpu::run();
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										12
									
								
								src/meson.build
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								src/meson.build
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
lib_sources = files(
 | 
			
		||||
  'matar.cc'
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
subdir('cpu')
 | 
			
		||||
 | 
			
		||||
lib = library(
 | 
			
		||||
  meson.project_name(),
 | 
			
		||||
  lib_sources,
 | 
			
		||||
  include_directories: includes,
 | 
			
		||||
  install : true
 | 
			
		||||
)
 | 
			
		||||
		Reference in New Issue
	
	Block a user