smr/conf/build.conf

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-05-16 01:10:11 +02:00
# smr build config
# You can switch flavors using: kodev flavor [newflavor]
# Set to yes if you wish to produce a single binary instead
# of a dynamic library. If you set this to yes you must also
# set kore_source together with kore_flavor.
#single_binary=no
#kore_source=/home/joris/src/kore
#kore_flavor=
# The flags below are shared between flavors
cflags=-Wall -Wmissing-declarations -Wshadow
cflags=-Wstrict-prototypes -Wmissing-prototypes
cflags=-Wpointer-arith -Wcast-qual -Wsign-compare
cxxflags=-Wall -Wmissing-declarations -Wshadow
cxxflags=-Wpointer-arith -Wcast-qual -Wsign-compare
# Mime types for assets served via the builtin asset_serve_*
mime_add=txt:text/plain; charset=utf-8
mime_add=png:image/png
mime_add=html:text/html; charset=utf-8
mime_add=css:text/css
dev {
# These flags are added to the shared ones when
# you build the "dev" flavor.
ldflags=-llua5.1
2021-10-11 02:55:07 +02:00
cflags=-g -Wall -Wextra -Werror
cflags=-I/usr/include/lua5.1
cxxflags=-g -Wextra
2020-05-16 01:10:11 +02:00
}
prod {
cflags=-D BUILD_PROD
cflags=-I/usr/include/luajit-2.1
cflags=-lluajit-5.1
ldflags=-lluajit-5.1
}