base gint project

This commit is contained in:
KikooDX 2021-12-15 23:07:26 +01:00
parent 7886810d29
commit 6de3ccda3b
6 changed files with 47 additions and 0 deletions

9
.clang-format Normal file
View File

@ -0,0 +1,9 @@
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: AlignWithSpaces
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: true
IndentCaseLabels: false
ColumnLimit: 80
AlignConsecutiveMacros: true
AlwaysBreakAfterReturnType: TopLevelDefinitions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build*
*.g*a

31
CMakeLists.txt Normal file
View File

@ -0,0 +1,31 @@
cmake_minimum_required(VERSION 3.21)
project(JTMM2 C)
include(GenerateG3A)
include(Fxconv)
find_package(Gint 2.6.0 REQUIRED)
include_directories(inc)
set(SOURCES
src/main.c
)
set(ASSETS
)
set(FLAGS -std=c99 -Os -Wall -Wextra -Wshadow)
fxconv_declare_assets(${ASSETS} WITH_METADATA)
add_executable(proj ${SOURCES} ${ASSETS})
target_compile_options(proj PRIVATE ${FLAGS})
target_link_libraries(proj Gint::Gint)
target_link_options(proj PRIVATE -Wl,-Map=map)
generate_g3a(TARGET proj
OUTPUT "jtmm2.g3a"
NAME "JTMM2"
ICONS res/icon/uns.png res/icon/sel.png)

BIN
res/icon/sel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

BIN
res/icon/uns.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

5
src/main.c Normal file
View File

@ -0,0 +1,5 @@
int
main(void)
{
return 0;
}