Move device to a separate build target

This commit is contained in:
2024-02-25 16:40:33 -08:00
parent 4866226840
commit 56eaee9d08
7 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,5 @@
cc_binary(
name = "sdl_host",
srcs = glob(["*.c", "*.h"]),
deps = ["//game:game", "//sdl:sdl"],
deps = ["//device:device", "//game:game", "//sdl:sdl"],
)

View File

@ -4,8 +4,8 @@
// don't use sdl's redefinition of main
#define SDL_MAIN_HANDLED
#include "sdl/include/SDL.h"
#include "device/device.h"
#include "game/game.h"
#include "game/device.h"
void sdl_host_suggest_dimensions(uint32_t* window_w, uint32_t* window_h);
void sdl_host_loop();