aboutsummaryrefslogtreecommitdiff
path: root/USAGE.md
blob: bc06f6988e13652b76c4830db433c16bedfa0eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# How to compile and use

Note: it is early in development and there is no v1!

It is build in a logic of unity-build, so all you need is to provide to a compiler the include folder and link path.

So, for compiling you need to run build.bat / build.sh. Dependencies right now are just bash (build script) and gcc.

It will create include folder and copy all of the headers, create lib folder and put the libs in here.

# Usage

- Don't use *_internal.h files, as they are only for implementation and could add fun things as windows.h

# GCC

Basically after running `build.sh` just compile your code with adding link path and include path.

## Arch

```
sudo pacman -S base-devel
```

## Debian

```
sudo pacman -S build-essentials
```

# MSVC

Note: Tested on VS2022 with compiler 19.39.33523

Disable these warnings:
```
/wd4244 /wd5105
```

Also here are defines:
```
/D _CRT_SECURE_NO_WARNINGS /D _UNICODE /D UNICODE
```