-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,031 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": 4, | ||
"configurations": [ | ||
{ | ||
/* | ||
* Full configuration is provided by CMake plugin for vscode, | ||
* that shall be installed by user | ||
*/ | ||
"name": "Win32", | ||
"intelliSenseMode": "${default}", | ||
"configurationProvider": "ms-vscode.cmake-tools" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cmake-tools", | ||
"twxs.cmake", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "(Windows) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${command:cmake.launchTargetPath}", | ||
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe", | ||
"args": [], | ||
"stopAtEntry": false, | ||
"cwd": "${fileDirname}", | ||
"environment": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"files.associations": { | ||
"lwevt_types.h": "c", | ||
"lwevt_type.h": "c", | ||
"lwevt.h": "c", | ||
"string.h": "c", | ||
"lwevt_opt.h": "c", | ||
"stdatomic.h": "c", | ||
"lwrb.h": "c" | ||
}, | ||
"esbonio.sphinx.confDir": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "Build project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "-j", "8"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": ["$gcc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Re-build project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "--clean-first", "-v", "-j", "8"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": ["$gcc"], | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Clean project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "--target", "clean"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Run application", | ||
"command": "${command:cmake.launchTargetPath}", | ||
"args": [], | ||
"problemMatcher": [], | ||
}, | ||
{ | ||
"label": "Docs: Install python plugins from requirements.txt file", | ||
"type": "shell", | ||
"command": "python -m pip install -r requirements.txt", | ||
"options": { | ||
"cwd": "${workspaceFolder}/docs" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Docs: Generate html", | ||
"type": "shell", | ||
"command": ".\\make html", | ||
"options": { | ||
"cwd": "${workspaceFolder}/docs" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Docs: Clean build directory", | ||
"type": "shell", | ||
"command": ".\\make clean", | ||
"options": { | ||
"cwd": "${workspaceFolder}/docs" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
# Setup project | ||
project(LwLibPROJECT) | ||
|
||
# ------------------------------------------------- | ||
# This CMakeLists.txt is used only if it is a top-level file. | ||
# Purpose of it is to be able to compile project in standalone way only | ||
# | ||
# When library sources are to be included in another project | ||
# user shall use /lwrb/CMakeLists.txt instead | ||
if (NOT PROJECT_IS_TOP_LEVEL) | ||
message(FATAL_ERROR "This CMakeLists.txt can only be used as top-level. Use /lwrb/CMakeLists.txt for library include purpose") | ||
endif() | ||
|
||
# Set as executable | ||
add_executable(${PROJECT_NAME}) | ||
|
||
# Add key executable block | ||
target_sources(${PROJECT_NAME} PUBLIC | ||
${CMAKE_CURRENT_LIST_DIR}/dev/main.c | ||
) | ||
|
||
# Add key include paths | ||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
${CMAKE_CURRENT_LIST_DIR}/dev | ||
) | ||
|
||
# Compilation definition information | ||
target_compile_definitions(${PROJECT_NAME} PUBLIC | ||
WIN32 | ||
_DEBUG | ||
CONSOLE | ||
LWRB_DEV | ||
) | ||
|
||
# Compiler options | ||
target_compile_options(${PROJECT_NAME} PRIVATE | ||
-Wall | ||
-Wextra | ||
-Wpedantic | ||
) | ||
|
||
# Add subdir with lwrb and link to project | ||
add_subdirectory("lwrb" lwrb) | ||
target_link_libraries(${PROJECT_NAME} lwrb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": 3, | ||
"configurePresets": [ | ||
{ | ||
"name": "default", | ||
"hidden": true, | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON" | ||
} | ||
}, | ||
{ | ||
"name": "Win32-Debug", | ||
"inherits": "default", | ||
"toolchainFile": "${sourceDir}/cmake/i686-w64-mingw32-gcc.cmake", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "Win64-Debug", | ||
"inherits": "default", | ||
"toolchainFile": "${sourceDir}/cmake/x86_64-w64-mingw32-gcc.cmake", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(CMAKE_SYSTEM_NAME Windows) | ||
|
||
# Some default GCC settings | ||
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc) | ||
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) | ||
|
||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(CMAKE_SYSTEM_NAME Windows) | ||
|
||
# Some default GCC settings | ||
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) | ||
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) | ||
|
||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.