forked from espressif/idf-extra-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (42 loc) · 1.07 KB
/
CMakeLists.txt
File metadata and controls
45 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
idf_component_register(
SRCS
"lua/lapi.c"
"lua/lauxlib.c"
"lua/lbaselib.c"
"lua/lcode.c"
"lua/lctype.c"
"lua/lcorolib.c"
"lua/ldblib.c"
"lua/ldebug.c"
"lua/ldo.c"
"lua/lfunc.c"
"lua/lgc.c"
"lua/linit.c"
"lua/liolib.c"
"lua/llex.c"
"lua/lmathlib.c"
"lua/lmem.c"
"lua/lopcodes.c"
"lua/loadlib.c"
"lua/loslib.c"
"lua/lstate.c"
"lua/ltable.c"
"lua/ltm.c"
"lua/lvm.c"
"lua/lobject.c"
"lua/lparser.c"
"lua/lstrlib.c"
"lua/lstring.c"
"lua/ltablib.c"
"lua/ldump.c"
"lua/lundump.c"
"lua/lutf8lib.c"
"lua/lzio.c"
INCLUDE_DIRS
"port/include"
"lua"
)
# Enable 32-bit mode for Lua (required for ESP32 and Xtensa/RISC-V architectures)
target_compile_definitions(${COMPONENT_LIB} PRIVATE LUA_32BITS=1)
# Suppress compiler warnings from upstream Lua code
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-function)