init
This commit is contained in:
37
fgui/__build.c
Normal file
37
fgui/__build.c
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
|
||||
char* fgui_lib = 0;
|
||||
void fgui_build(struct build_data b)
|
||||
{
|
||||
char* files[] = {
|
||||
"fgui/fgui.cpp",
|
||||
NULL,
|
||||
};
|
||||
struct C_Macro macros[] = {
|
||||
(struct C_Macro){"TIER0_IMPLEMENTATION","1"},
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
||||
struct project p = {
|
||||
.b = &b,
|
||||
.files = files,
|
||||
.name = "fgui",
|
||||
};
|
||||
|
||||
struct project o = C_compile(p, (struct C_settings){
|
||||
.generation_flags = C_GENERATION_FLAGS_PIC,
|
||||
.compile_flags = C_COMPILE_FLAGS_WALL,
|
||||
.include_dirs = include_dirs,
|
||||
.macros = macros,
|
||||
});
|
||||
char* libs[] = {
|
||||
"c",
|
||||
NULL,
|
||||
};
|
||||
|
||||
fgui_lib = ld_link_project(o, (struct link_settings){
|
||||
.type = LINK_TYPE_STATIC,
|
||||
.libs = libs,
|
||||
});
|
||||
}
|
||||
1
fgui/fgui.cpp
Normal file
1
fgui/fgui.cpp
Normal file
@@ -0,0 +1 @@
|
||||
#include "fgui/fgui.h"
|
||||
Reference in New Issue
Block a user