initial commit
This commit is contained in:
commit
5df2481fee
28
Build.bat
Normal file
28
Build.bat
Normal 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
10
Run.bat
Normal 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%
|
24
Source/Core/ScalarDataTypes.hpp
Normal file
24
Source/Core/ScalarDataTypes.hpp
Normal 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
5
Source/Main.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
#include <Source/Core/ScalarDataTypes.hpp>
|
||||
|
||||
i32 main() {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user