diff --git a/examples/win32/lwmem/.vscode/c_cpp_properties.json b/examples/win32/.vscode/c_cpp_properties.json similarity index 100% rename from examples/win32/lwmem/.vscode/c_cpp_properties.json rename to examples/win32/.vscode/c_cpp_properties.json diff --git a/examples/win32/lwmem/.vscode/extensions.json b/examples/win32/.vscode/extensions.json similarity index 100% rename from examples/win32/lwmem/.vscode/extensions.json rename to examples/win32/.vscode/extensions.json diff --git a/examples/win32/lwmem/.vscode/launch.json b/examples/win32/.vscode/launch.json similarity index 100% rename from examples/win32/lwmem/.vscode/launch.json rename to examples/win32/.vscode/launch.json diff --git a/examples/win32/lwmem/.vscode/settings.json b/examples/win32/.vscode/settings.json similarity index 100% rename from examples/win32/lwmem/.vscode/settings.json rename to examples/win32/.vscode/settings.json diff --git a/examples/win32/lwmem/.vscode/tasks.json b/examples/win32/.vscode/tasks.json similarity index 100% rename from examples/win32/lwmem/.vscode/tasks.json rename to examples/win32/.vscode/tasks.json diff --git a/examples/win32/lwmem/CMakeLists.txt b/examples/win32/CMakeLists.txt similarity index 68% rename from examples/win32/lwmem/CMakeLists.txt rename to examples/win32/CMakeLists.txt index 9fcf0a6..3407919 100644 --- a/examples/win32/lwmem/CMakeLists.txt +++ b/examples/win32/CMakeLists.txt @@ -1,20 +1,20 @@ cmake_minimum_required(VERSION 3.22) # Setup project -project(lwmem_proj) +project(${PROJECT_NAME}) add_executable(${PROJECT_NAME}) -# Add key executable block +# Add source files target_sources(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/main.c + ${CMAKE_CURRENT_LIST_DIR}/${PROJECT_NAME}/main.c ) -# Add key include paths +# Add include paths target_include_directories(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/ + ${CMAKE_CURRENT_LIST_DIR}/${PROJECT_NAME}/ # Snippets - ${CMAKE_CURRENT_LIST_DIR}/../../../snippets/include + ${CMAKE_CURRENT_LIST_DIR}/../../snippets/include ) # Compilation definition information @@ -33,5 +33,5 @@ target_compile_options(${PROJECT_NAME} PRIVATE # Add subdir with lwmem and link to the project set(LWMEM_SYS_PORT "win32") -add_subdirectory("../../../lwmem" lwmem) +add_subdirectory("../../lwmem" lwmem) target_link_libraries(${PROJECT_NAME} lwmem) diff --git a/examples/win32/CMakePresets.json b/examples/win32/CMakePresets.json new file mode 100644 index 0000000..9e6d591 --- /dev/null +++ b/examples/win32/CMakePresets.json @@ -0,0 +1,44 @@ +{ + "version": 3, + "configurePresets": [ + { + "name": "default", + "hidden": true, + "generator": "Ninja", + "binaryDir": "${sourceDir}/build/${presetName}", + "toolchainFile": "${sourceDir}/../../cmake/i686-w64-mingw32-gcc.cmake", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" + } + }, + { + "name": "lwmem_basic", + "inherits": "default", + "cacheVariables": { + "PROJECT_NAME": "lwmem_basic" + } + }, + { + "name": "lwmem_multi_region", + "inherits": "default", + "cacheVariables": { + "PROJECT_NAME": "lwmem_multi_region" + } + }, + { + "name": "lwmem_multi_ins_multi_region", + "inherits": "default", + "cacheVariables": { + "PROJECT_NAME": "lwmem_multi_ins_multi_region" + } + }, + { + "name": "lwmem_os", + "inherits": "default", + "cacheVariables": { + "PROJECT_NAME": "lwmem_os" + } + } + ] +} \ No newline at end of file diff --git a/examples/win32/README.md b/examples/win32/README.md new file mode 100644 index 0000000..eba756c --- /dev/null +++ b/examples/win32/README.md @@ -0,0 +1,9 @@ +# WIN32 examples + +Examples are provided as CMake sources. +To run then, you can use VSCode or CMake directly. + +``` +cmake --preset +cmake --build --preset +``` diff --git a/examples/win32/lwmem/CMakePresets.json b/examples/win32/lwmem/CMakePresets.json deleted file mode 100644 index b2c1112..0000000 --- a/examples/win32/lwmem/CMakePresets.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "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" - } - } - ], - "buildPresets": [ - { - "name": "Win32-Debug", - "configurePreset": "Win32-Debug" - }, - { - "name": "Win64-Debug", - "configurePreset": "Win64-Debug" - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem/lwmem_opts.h b/examples/win32/lwmem_basic/lwmem_opts.h similarity index 100% rename from examples/win32/lwmem/lwmem_opts.h rename to examples/win32/lwmem_basic/lwmem_opts.h diff --git a/examples/win32/lwmem/main.c b/examples/win32/lwmem_basic/main.c similarity index 100% rename from examples/win32/lwmem/main.c rename to examples/win32/lwmem_basic/main.c diff --git a/examples/win32/lwmem_multi_ins_multi_region/.vscode/c_cpp_properties.json b/examples/win32/lwmem_multi_ins_multi_region/.vscode/c_cpp_properties.json deleted file mode 100644 index 9768bc2..0000000 --- a/examples/win32/lwmem_multi_ins_multi_region/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": 4, - "configurations": [ - { - "name": "Win32", - "compilerPath": "c:\\msys64\\mingw64\\bin\\gcc.exe", - "cStandard": "gnu17", - "cppStandard": "gnu++14", - "intelliSenseMode": "windows-gcc-x86", - "configurationProvider": "ms-vscode.cmake-tools" - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_ins_multi_region/.vscode/extensions.json b/examples/win32/lwmem_multi_ins_multi_region/.vscode/extensions.json deleted file mode 100644 index 6a07920..0000000 --- a/examples/win32/lwmem_multi_ins_multi_region/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "recommendations": [ - "ms-vscode.cpptools", - "ms-vscode.cmake-tools", - "twxs.cmake", - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_ins_multi_region/.vscode/launch.json b/examples/win32/lwmem_multi_ins_multi_region/.vscode/launch.json deleted file mode 100644 index a53089a..0000000 --- a/examples/win32/lwmem_multi_ins_multi_region/.vscode/launch.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - // 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": [] - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_ins_multi_region/.vscode/settings.json b/examples/win32/lwmem_multi_ins_multi_region/.vscode/settings.json deleted file mode 100644 index c7da4d9..0000000 --- a/examples/win32/lwmem_multi_ins_multi_region/.vscode/settings.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "files.associations": { - "lwevt_types.h": "c", - "lwevt_type.h": "c", - "lwevt.h": "c", - "string.h": "c", - "lwevt_opt.h": "c", - "cli.h": "c", - "windows.h": "c", - "lwesp_private.h": "c" - }, - "esbonio.sphinx.confDir": "" -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_ins_multi_region/.vscode/tasks.json b/examples/win32/lwmem_multi_ins_multi_region/.vscode/tasks.json deleted file mode 100644 index e526563..0000000 --- a/examples/win32/lwmem_multi_ins_multi_region/.vscode/tasks.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "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": [], - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_ins_multi_region/CMakeLists.txt b/examples/win32/lwmem_multi_ins_multi_region/CMakeLists.txt deleted file mode 100644 index 4b03dc6..0000000 --- a/examples/win32/lwmem_multi_ins_multi_region/CMakeLists.txt +++ /dev/null @@ -1,37 +0,0 @@ -cmake_minimum_required(VERSION 3.22) - -# Setup project -project(lwmem_multi_ins_multi_region) -add_executable(${PROJECT_NAME}) - -# Add key executable block -target_sources(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/main.c -) - -# Add key include paths -target_include_directories(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/ - - # Snippets - ${CMAKE_CURRENT_LIST_DIR}/../../../snippets/include -) - -# Compilation definition information -target_compile_definitions(${PROJECT_NAME} PUBLIC - WIN32 - _DEBUG - CONSOLE -) - -# Compiler options -target_compile_options(${PROJECT_NAME} PRIVATE - -Wall - -Wextra - -Wpedantic -) - -# Add subdir with lwmem and link to the project -set(LWMEM_SYS_PORT "win32") -add_subdirectory("../../../lwmem" lwmem) -target_link_libraries(${PROJECT_NAME} lwmem) diff --git a/examples/win32/lwmem_multi_ins_multi_region/CMakePresets.json b/examples/win32/lwmem_multi_ins_multi_region/CMakePresets.json deleted file mode 100644 index b2c1112..0000000 --- a/examples/win32/lwmem_multi_ins_multi_region/CMakePresets.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "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" - } - } - ], - "buildPresets": [ - { - "name": "Win32-Debug", - "configurePreset": "Win32-Debug" - }, - { - "name": "Win64-Debug", - "configurePreset": "Win64-Debug" - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_region/.vscode/c_cpp_properties.json b/examples/win32/lwmem_multi_region/.vscode/c_cpp_properties.json deleted file mode 100644 index 9768bc2..0000000 --- a/examples/win32/lwmem_multi_region/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": 4, - "configurations": [ - { - "name": "Win32", - "compilerPath": "c:\\msys64\\mingw64\\bin\\gcc.exe", - "cStandard": "gnu17", - "cppStandard": "gnu++14", - "intelliSenseMode": "windows-gcc-x86", - "configurationProvider": "ms-vscode.cmake-tools" - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_region/.vscode/extensions.json b/examples/win32/lwmem_multi_region/.vscode/extensions.json deleted file mode 100644 index 6a07920..0000000 --- a/examples/win32/lwmem_multi_region/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "recommendations": [ - "ms-vscode.cpptools", - "ms-vscode.cmake-tools", - "twxs.cmake", - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_region/.vscode/launch.json b/examples/win32/lwmem_multi_region/.vscode/launch.json deleted file mode 100644 index a53089a..0000000 --- a/examples/win32/lwmem_multi_region/.vscode/launch.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - // 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": [] - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_region/.vscode/settings.json b/examples/win32/lwmem_multi_region/.vscode/settings.json deleted file mode 100644 index c7da4d9..0000000 --- a/examples/win32/lwmem_multi_region/.vscode/settings.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "files.associations": { - "lwevt_types.h": "c", - "lwevt_type.h": "c", - "lwevt.h": "c", - "string.h": "c", - "lwevt_opt.h": "c", - "cli.h": "c", - "windows.h": "c", - "lwesp_private.h": "c" - }, - "esbonio.sphinx.confDir": "" -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_region/.vscode/tasks.json b/examples/win32/lwmem_multi_region/.vscode/tasks.json deleted file mode 100644 index e526563..0000000 --- a/examples/win32/lwmem_multi_region/.vscode/tasks.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "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": [], - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_multi_region/CMakeLists.txt b/examples/win32/lwmem_multi_region/CMakeLists.txt deleted file mode 100644 index 3940412..0000000 --- a/examples/win32/lwmem_multi_region/CMakeLists.txt +++ /dev/null @@ -1,37 +0,0 @@ -cmake_minimum_required(VERSION 3.22) - -# Setup project -project(lwmem_multi_region) -add_executable(${PROJECT_NAME}) - -# Add key executable block -target_sources(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/main.c -) - -# Add key include paths -target_include_directories(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/ - - # Snippets - ${CMAKE_CURRENT_LIST_DIR}/../../../snippets/include -) - -# Compilation definition information -target_compile_definitions(${PROJECT_NAME} PUBLIC - WIN32 - _DEBUG - CONSOLE -) - -# Compiler options -target_compile_options(${PROJECT_NAME} PRIVATE - -Wall - -Wextra - -Wpedantic -) - -# Add subdir with lwmem and link to the project -set(LWMEM_SYS_PORT "win32") -add_subdirectory("../../../lwmem" lwmem) -target_link_libraries(${PROJECT_NAME} lwmem) diff --git a/examples/win32/lwmem_multi_region/CMakePresets.json b/examples/win32/lwmem_multi_region/CMakePresets.json deleted file mode 100644 index b2c1112..0000000 --- a/examples/win32/lwmem_multi_region/CMakePresets.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "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" - } - } - ], - "buildPresets": [ - { - "name": "Win32-Debug", - "configurePreset": "Win32-Debug" - }, - { - "name": "Win64-Debug", - "configurePreset": "Win64-Debug" - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_os/.vscode/c_cpp_properties.json b/examples/win32/lwmem_os/.vscode/c_cpp_properties.json deleted file mode 100644 index 9768bc2..0000000 --- a/examples/win32/lwmem_os/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": 4, - "configurations": [ - { - "name": "Win32", - "compilerPath": "c:\\msys64\\mingw64\\bin\\gcc.exe", - "cStandard": "gnu17", - "cppStandard": "gnu++14", - "intelliSenseMode": "windows-gcc-x86", - "configurationProvider": "ms-vscode.cmake-tools" - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_os/.vscode/extensions.json b/examples/win32/lwmem_os/.vscode/extensions.json deleted file mode 100644 index 6a07920..0000000 --- a/examples/win32/lwmem_os/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "recommendations": [ - "ms-vscode.cpptools", - "ms-vscode.cmake-tools", - "twxs.cmake", - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_os/.vscode/launch.json b/examples/win32/lwmem_os/.vscode/launch.json deleted file mode 100644 index a53089a..0000000 --- a/examples/win32/lwmem_os/.vscode/launch.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - // 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": [] - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_os/.vscode/settings.json b/examples/win32/lwmem_os/.vscode/settings.json deleted file mode 100644 index c7da4d9..0000000 --- a/examples/win32/lwmem_os/.vscode/settings.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "files.associations": { - "lwevt_types.h": "c", - "lwevt_type.h": "c", - "lwevt.h": "c", - "string.h": "c", - "lwevt_opt.h": "c", - "cli.h": "c", - "windows.h": "c", - "lwesp_private.h": "c" - }, - "esbonio.sphinx.confDir": "" -} \ No newline at end of file diff --git a/examples/win32/lwmem_os/.vscode/tasks.json b/examples/win32/lwmem_os/.vscode/tasks.json deleted file mode 100644 index e526563..0000000 --- a/examples/win32/lwmem_os/.vscode/tasks.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "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": [], - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_os/CMakeLists.txt b/examples/win32/lwmem_os/CMakeLists.txt deleted file mode 100644 index 4b03dc6..0000000 --- a/examples/win32/lwmem_os/CMakeLists.txt +++ /dev/null @@ -1,37 +0,0 @@ -cmake_minimum_required(VERSION 3.22) - -# Setup project -project(lwmem_multi_ins_multi_region) -add_executable(${PROJECT_NAME}) - -# Add key executable block -target_sources(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/main.c -) - -# Add key include paths -target_include_directories(${PROJECT_NAME} PUBLIC - ${CMAKE_CURRENT_LIST_DIR}/ - - # Snippets - ${CMAKE_CURRENT_LIST_DIR}/../../../snippets/include -) - -# Compilation definition information -target_compile_definitions(${PROJECT_NAME} PUBLIC - WIN32 - _DEBUG - CONSOLE -) - -# Compiler options -target_compile_options(${PROJECT_NAME} PRIVATE - -Wall - -Wextra - -Wpedantic -) - -# Add subdir with lwmem and link to the project -set(LWMEM_SYS_PORT "win32") -add_subdirectory("../../../lwmem" lwmem) -target_link_libraries(${PROJECT_NAME} lwmem) diff --git a/examples/win32/lwmem_os/CMakePresets.json b/examples/win32/lwmem_os/CMakePresets.json deleted file mode 100644 index b2c1112..0000000 --- a/examples/win32/lwmem_os/CMakePresets.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "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" - } - } - ], - "buildPresets": [ - { - "name": "Win32-Debug", - "configurePreset": "Win32-Debug" - }, - { - "name": "Win64-Debug", - "configurePreset": "Win64-Debug" - } - ] -} \ No newline at end of file diff --git a/examples/win32/lwmem_os/lwmem_os.vcxproj b/examples/win32/lwmem_os/lwmem_os.vcxproj deleted file mode 100644 index d8064ff..0000000 --- a/examples/win32/lwmem_os/lwmem_os.vcxproj +++ /dev/null @@ -1,162 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - - - - - - 16.0 - {34D02135-7971-49BD-8933-88A9B27D0A86} - Win32Proj - LwMEMexamples - 10.0 - - - - Application - true - v142 - Unicode - - - Application - false - v142 - true - Unicode - - - Application - true - v142 - Unicode - - - Application - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - .;..\..\..\lwmem\src\include;$(IncludePath) - - - true - - - false - - - false - - - - - - Level3 - Disabled - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - - - Level3 - Disabled - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - - - Level3 - MaxSpeed - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - Level3 - MaxSpeed - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - \ No newline at end of file