initial commit

This commit is contained in:
nemeth_mihaly 2022-12-15 15:03:34 +01:00
commit 5df2481fee
4 changed files with 67 additions and 0 deletions

28
Build.bat Normal file
View File

@ -0,0 +1,28 @@
@ECHO OFF
SETLOCAL EnableDelayedExpansion
SET target_name=Test.exe
SET target_dir=Target\
SET compiler=g++
SET compiler_flags=-ggdb -Wall -Wextra
SET linker_flags=-L.
IF NOT EXIST %target_dir% (
MKDIR %target_dir%
)
FOR /R %%F IN (*.cpp) DO (
%compiler% -c -I. %%F -o %target_dir%\%%~NF.o
)
SET obj_array=
FOR /R %%F IN (*.o) DO (
SET obj_array=!obj_array! %%F
)
%compiler% %obj_array% -o %target_dir%\%target_name% %linker_flags%
DEL %target_dir%\*.o

10
Run.bat Normal file
View File

@ -0,0 +1,10 @@
@ECHO OFF
SETLOCAL EnableDelayedExpansion
SET target_name=Test.exe
SET target_dir=Target\
CALL Build.bat
%target_dir%\%target_name%

View File

@ -0,0 +1,24 @@
#pragma once
/**
* Integer Types
* **/
typedef signed char i8;
typedef signed short i16;
typedef signed int i32;
typedef signed long long i64;
typedef i64 isize;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef u64 usize;
/**
* Floating-Point Types
* **/
typedef float f32;
typedef double f64;

5
Source/Main.cpp Normal file
View File

@ -0,0 +1,5 @@
#include <Source/Core/ScalarDataTypes.hpp>
i32 main() {
}