-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.scb
31 lines (27 loc) · 1.2 KB
/
build.scb
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
-- -*- lua -*-
-- This is a SubCritical build script. It describes the package(s) here to
-- scbuild. It is a Lua script, so you can use fancy platform-specific logic
-- to determine what gets build. (See config_question)
-- *** BUILD TARGETS ***
-- Most build scripts will only have one entry here (that of the package being
-- compiled)
local need_libdl = config_question("NEED_LIBDL", "Does your OS require linking with libdl?", "bool")
targets = {
["subcritical_helper"]={"helper.cc"},
["core"]={"core.cc"},
}
if(need_libdl) then targets.subcritical_helper.libflags = "-ldl" end
-- *** INSTALLATION FILES ***
install = {
-- Header files to install. These will be installed to the location scbuild
-- expects to find them (with some twiddling, to support Windows).
headers={"core.h"},
-- Packages to install. Normally, there will only be one entry here (same as
-- the one build target above). To support Windows, you should only have one
-- package built here.
packages={"core"},
-- Lua packages to install. Normally, you won't put these in! (Unless you're
-- abusing scbuild as a generic Lua package build system...)
lcpackages={"subcritical_helper"},
lpackages={"subcritical.lua"},
}