Procházet zdrojové kódy

remove example_project, because bbbuild itself is the example project

feature/dependency-graph
Martin Dørum před 5 roky
rodič
revize
5e6ef8b411

+ 0
- 1
example-project/.gitignore Zobrazit soubor

@@ -1 +0,0 @@
/bbbuild

+ 0
- 5
example-project/constants.c Zobrazit soubor

@@ -1,5 +0,0 @@
#include "constants.h"

const int k_window_height = 800;
const int k_window_width = 600;
const char *k_window_title = "Hello World";

+ 0
- 5
example-project/constants.h Zobrazit soubor

@@ -1,5 +0,0 @@
#pragma once

extern const int k_window_width;
extern const int k_window_height;
extern const char *k_window_title;

+ 0
- 16
example-project/main.c Zobrazit soubor

@@ -1,16 +0,0 @@
//#bb pkgs := sdl2

#include <SDL.h>
#include "constants.h"

int main() {
SDL_Init(SDL_INIT_VIDEO);
SDL_Window *win = SDL_CreateWindow(k_window_title,
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
k_window_width, k_window_height, 0);

SDL_Delay(5000);

SDL_DestroyWindow(win);
SDL_Quit();
}

Načítá se…
Zrušit
Uložit