diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..fd23fce --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +BasedOnStyle: LLVM +IndentWidth: 8 +UseTab: AlignWithSpaces +BreakBeforeBraces: Linux +AllowShortIfStatementsOnASingleLine: true +IndentCaseLabels: false +ColumnLimit: 80 +AlignConsecutiveMacros: true +AlwaysBreakAfterReturnType: TopLevelDefinitions diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19f601b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build* +*.g*a diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ced858d --- /dev/null +++ b/CMakeLists.txt @@ -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) diff --git a/res/icon/sel.png b/res/icon/sel.png new file mode 100644 index 0000000..d332825 Binary files /dev/null and b/res/icon/sel.png differ diff --git a/res/icon/uns.png b/res/icon/uns.png new file mode 100644 index 0000000..6250db4 Binary files /dev/null and b/res/icon/uns.png differ diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..95485db --- /dev/null +++ b/src/main.c @@ -0,0 +1,5 @@ +int +main(void) +{ + return 0; +}