forked from floooh/fips-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
80 lines (76 loc) · 1.55 KB
/
CMakeLists.txt
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
if (NOT FIPS_IMPORT)
cmake_minimum_required(VERSION 2.8)
get_filename_component(FIPS_ROOT_DIR "../fips" ABSOLUTE)
include("${FIPS_ROOT_DIR}/cmake/fips.cmake")
fips_setup(PROJECT lua)
endif()
# NOTE: the files lua.c and linit.c are not included, lua.c contains the main()
# function, and linit.c would load all libs, instead create a local linit.c in
# your own project, and just load the libs you need there!
fips_begin_lib(lua)
fips_dir(lua)
fips_files(
lua.h
lapi.c
lapi.h
lauxlib.c
lauxlib.h
lbaselib.c
lbitlib.c
lcode.c
lcode.h
lcorolib.c
lctype.c
lctype.h
ldblib.c
ldebug.c
ldebug.h
ldo.c
ldo.h
ldump.c
lfunc.c
lfunc.h
lgc.c
lgc.h
liolib.c
llex.c
llex.h
llimits.h
lmathlib.c
lmem.c
lmem.h
loadlib.c
lobject.c
lobject.h
lopcodes.c
lopcodes.h
lparser.c
lparser.h
lprefix.h
lstate.c
lstate.h
lstring.c
lstring.h
lstrlib.c
ltable.c
ltable.h
ltablib.c
ltm.c
ltm.h
luaconf.h
lualib.h
lundump.c
lundump.h
lutf8lib.c
lvm.c
lvm.h
lzio.c
lzio.h
)
if (NOT FIPS_IOS AND NOT FIPS_EMSCRIPTEN AND NOT FIPS_ANDROID)
fips_files(loslib.c)
endif()
fips_end_lib()
if (NOT FIPS_IMPORT)
fips_finish()
endif()