adding in compile_commands for nice lsp completion

This commit is contained in:
talksik
2023-07-24 15:48:13 -07:00
parent 8d2b603b66
commit d62866481d
2 changed files with 57 additions and 0 deletions
+5
View File
@@ -1,4 +1,7 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# stop cmake from taking make from CMAKE_SYSROOT # stop cmake from taking make from CMAKE_SYSROOT
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
project(runner LANGUAGES CXX) project(runner LANGUAGES CXX)
@@ -96,8 +99,10 @@ install(CODE "
install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
# Install the AOT library on non-Debug builds only. # Install the AOT library on non-Debug builds only.
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime) COMPONENT Runtime)
endif() endif()
+52
View File
@@ -0,0 +1,52 @@
[
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter",
"command": "/usr/bin/c++ -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -g -fPIC -fvisibility=hidden -Wall -Werror -o CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter",
"command": "/usr/bin/c++ -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -g -fPIC -fvisibility=hidden -Wall -Werror -o CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter",
"command": "/usr/bin/c++ -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -g -fPIC -fvisibility=hidden -Wall -Werror -o CMakeFiles/flutter_wrapper_plugin.dir/ephemeral/cpp_client_wrapper/plugin_registrar.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter",
"command": "/usr/bin/c++ -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -g -Wall -Werror -o CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/core_implementations.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter",
"command": "/usr/bin/c++ -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -g -Wall -Werror -o CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/standard_codec.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter",
"command": "/usr/bin/c++ -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -g -Wall -Werror -o CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_engine.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter",
"command": "/usr/bin/c++ -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -g -Wall -Werror -o CMakeFiles/flutter_wrapper_app.dir/ephemeral/cpp_client_wrapper/flutter_view_controller.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/runner",
"command": "/usr/bin/c++ -DFLUTTER_TARGET_BACKEND_WAYLAND -I/home/talksik/Code/flutter_embedded_with_platform/elinux -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -g -Wall -Werror -o CMakeFiles/flutter_embedded_with_platform.dir/flutter_window.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/runner/flutter_window.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/runner/flutter_window.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/runner",
"command": "/usr/bin/c++ -DFLUTTER_TARGET_BACKEND_WAYLAND -I/home/talksik/Code/flutter_embedded_with_platform/elinux -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -g -Wall -Werror -o CMakeFiles/flutter_embedded_with_platform.dir/main.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/runner/main.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/runner/main.cc"
},
{
"directory": "/home/talksik/Code/flutter_embedded_with_platform/elinux/runner",
"command": "/usr/bin/c++ -DFLUTTER_TARGET_BACKEND_WAYLAND -I/home/talksik/Code/flutter_embedded_with_platform/elinux -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral -I/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/ephemeral/cpp_client_wrapper/include -g -Wall -Werror -o CMakeFiles/flutter_embedded_with_platform.dir/__/flutter/generated_plugin_registrant.cc.o -c /home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/generated_plugin_registrant.cc",
"file": "/home/talksik/Code/flutter_embedded_with_platform/elinux/flutter/generated_plugin_registrant.cc"
}
]