Fix windows build
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
*.c text eol=lf diff=c
|
||||
*.css text eol=lf diff=css
|
||||
*.h text eol=lf diff=c
|
||||
*.html text eol=lf diff=html
|
||||
*.java text eol=lf diff=java
|
||||
*.js text eol=lf diff=js
|
||||
*.txt text eol=lf
|
||||
|
||||
*.class binary
|
||||
*.dll binary
|
||||
*.wasm binary
|
||||
*.woff2 binary
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
/shrooms-vb
|
||||
/shrooms-vb.exe
|
||||
/shrooms-vb
|
||||
/shrooms-vb.exe
|
||||
.vscode
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
[submodule "shrooms-vb-core"]
|
||||
[submodule "shrooms-vb-core"]
|
||||
path = shrooms-vb-core
|
||||
url = https://git.virtual-boy.com/PVB/shrooms-vb-core.git
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Shrooms VB (native)
|
||||
|
||||
An SDL-based implementation of shrooms-vb.
|
||||
|
||||
## Setup
|
||||
|
||||
Install the following dependencies:
|
||||
- `gcc` (or MinGW on Windows) (or whatever, just set `CC`)
|
||||
- `pkg-config`
|
||||
- sdl2
|
||||
|
||||
Run
|
||||
```sh
|
||||
make build
|
||||
# Shrooms VB (native)
|
||||
|
||||
An SDL-based implementation of shrooms-vb.
|
||||
|
||||
## Setup
|
||||
|
||||
Install the following dependencies:
|
||||
- `gcc` (or MinGW on Windows) (or whatever, just set `CC`)
|
||||
- `pkg-config`
|
||||
- sdl2
|
||||
|
||||
Run
|
||||
```sh
|
||||
make build
|
||||
```
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef SHROOMS_VB_NATIVE_GAME_
|
||||
#define SHROOMS_VB_NATIVE_GAME_
|
||||
|
||||
#include <vb.h>
|
||||
#include "shrooms-vb-core/core/vb.h"
|
||||
|
||||
int runGame(VB *sim);
|
||||
|
||||
|
||||
@@ -97,4 +97,4 @@ int main(int argc, char **argv) {
|
||||
SDL_Quit();
|
||||
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
CC?=gcc
|
||||
SHROOMSFLAGS=shrooms-vb-core/core/vb.c -I shrooms-vb-core/core
|
||||
SDL2FLAGS=$(shell pkg-config sdl2 --cflags --libs)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
ifeq ($(OS),WINDOWS_NT)
|
||||
@del shrooms-vb.exe
|
||||
else
|
||||
@rm -f shrooms-vb
|
||||
endif
|
||||
|
||||
build:
|
||||
@$(CC) cli.c game.c main.c -I . \
|
||||
$(SHROOMSFLAGS) $(SDL2FLAGS) \
|
||||
-D POSIX_C_SOURCE=199309L \
|
||||
-o shrooms-vb \
|
||||
CC?=gcc
|
||||
SHROOMSFLAGS=shrooms-vb-core/core/vb.c -I shrooms-vb-core/core
|
||||
SDL2FLAGS=$(shell pkg-config sdl2 --cflags --libs)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
ifeq ($(OS),WINDOWS_NT)
|
||||
@del shrooms-vb.exe
|
||||
else
|
||||
@rm -f shrooms-vb
|
||||
endif
|
||||
|
||||
build:
|
||||
@$(CC) cli.c game.c main.c -I . \
|
||||
$(SHROOMSFLAGS) $(SDL2FLAGS) \
|
||||
-D POSIX_C_SOURCE=199309L \
|
||||
-o shrooms-vb \
|
||||
-Werror -std=c90 -Wall -Wextra -Wpedantic
|
||||
Submodule
+1
Submodule shrooms-vb-core added at 767675eb42
Reference in New Issue
Block a user