mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-05-02 20:54:03 +00:00
feat(build): implement Clangd support && add lua symbols
This commit is contained in:
parent
6163593844
commit
e79ee08905
78 changed files with 399 additions and 5445 deletions
11
cmake/CMakeLists.txt
Normal file
11
cmake/CMakeLists.txt
Normal 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
1
cmake/entry.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "main.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue