feat(build): implement Clangd support && add lua symbols

This commit is contained in:
phaneron 2026-04-01 17:36:35 -04:00
parent 6163593844
commit e79ee08905
78 changed files with 399 additions and 5445 deletions

11
cmake/CMakeLists.txt Normal file
View file

@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.10)
project(binana_profile C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# This is the only way to get a non-empty compile_commands.json
add_library(binana_profile STATIC entry.c)
target_compile_definitions(binana_profile PUBLIC CLANGD=1)
target_precompile_headers(binana_profile PUBLIC include/system/detect.h include/system/types.h)
target_include_directories(binana_profile PRIVATE include)

1
cmake/entry.c Normal file
View file

@ -0,0 +1 @@
#include "main.h"