diff --git a/.devcontainer/__c_cpp_properties.json__ b/.devcontainer/__c_cpp_properties.json__ new file mode 100644 index 000000000..db168290a --- /dev/null +++ b/.devcontainer/__c_cpp_properties.json__ @@ -0,0 +1,17 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**", + "/usr/local/emsdk/upstream/emscripten/cache/sysroot/include/" + ], + "defines": [], + "compilerPath": "/usr/bin/clang", + "cStandard": "c17", + "cppStandard": "c++14", + "intelliSenseMode": "linux-clang-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.devcontainer/__settings.json__ b/.devcontainer/__settings.json__ new file mode 100644 index 000000000..236a91b40 --- /dev/null +++ b/.devcontainer/__settings.json__ @@ -0,0 +1,5 @@ +{ + "files.associations": { + "sdl.h": "c" + } +} \ No newline at end of file diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index b674e2a22..d1179954a 100755 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -5,11 +5,14 @@ echo ". /usr/local/emsdk/emsdk_env.sh" >> /home/codespace/.bashrc cd /workspace/lvgl_app sudo chmod 777 . mkdir build +mkdir vscode cd lvgl/.devcontainer cp __CMakeLists.txt__ ../../CMakeLists.txt cp __lv_conf.h__ ../../lv_conf.h cp __main.c__ ../../main.c cp __build_all.sh__ ../../build_all.sh +cp __c_cpp_properties.json__ ../../.vscode/c_cpp_properties.json +cp __settings.json__ ../../.vscode/settings.json chmod +x ../../build_all.sh \ No newline at end of file