2016-12-12 06:23:32 -06:00
|
|
|
SUBDIRS = . test loleaflet
|
2015-10-21 05:01:47 -05:00
|
|
|
|
2016-04-15 08:23:44 -05:00
|
|
|
export ENABLE_DEBUG
|
|
|
|
|
2017-05-24 03:52:24 -05:00
|
|
|
bin_PROGRAMS = loolwsd loolforkit loolmap loolmount looltool loolstress loolconfig
|
2015-03-09 04:11:15 -05:00
|
|
|
|
2016-04-14 07:43:13 -05:00
|
|
|
dist_bin_SCRIPTS = loolwsd-systemplate-setup
|
|
|
|
|
2017-05-03 07:13:37 -05:00
|
|
|
dist_doc_DATA = wsd/README \
|
|
|
|
wsd/README.vars \
|
|
|
|
wsd/protocol.txt \
|
|
|
|
wsd/reference.txt
|
|
|
|
|
2016-04-14 07:43:13 -05:00
|
|
|
loolwsddatadir = @LOOLWSD_DATADIR@
|
|
|
|
|
2016-05-30 10:40:40 -05:00
|
|
|
loolwsddata_DATA = discovery.xml \
|
2016-08-26 05:57:33 -05:00
|
|
|
favicon.ico \
|
2016-05-30 10:40:40 -05:00
|
|
|
robots.txt
|
2015-05-19 05:20:16 -05:00
|
|
|
|
2016-04-14 08:06:49 -05:00
|
|
|
loolwsdconfigdir = @LOOLWSD_CONFIGDIR@
|
|
|
|
|
2017-03-11 13:43:26 -06:00
|
|
|
loolwsdconfig_DATA = loolwsd.xml \
|
|
|
|
loolkitconfig.xcu
|
2016-04-14 11:47:35 -05:00
|
|
|
|
2016-04-12 02:39:53 -05:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2016-11-24 08:56:06 -06:00
|
|
|
# quick and easy for now.
|
2017-03-30 06:08:47 -05:00
|
|
|
include_paths = -I${top_srcdir}/common -I${top_srcdir}/net -I${top_srcdir}/wsd -I${top_srcdir}/kit ${ZLIB_CFLAGS}
|
2016-11-24 08:56:06 -06:00
|
|
|
|
2017-03-11 13:43:26 -06:00
|
|
|
AM_CPPFLAGS = -pthread -DLOOLWSD_DATADIR='"@LOOLWSD_DATADIR@"' \
|
|
|
|
-DLOOLWSD_CONFIGDIR='"@LOOLWSD_CONFIGDIR@"' \
|
|
|
|
-DDEBUG_ABSSRCDIR='"@abs_srcdir@"' \
|
|
|
|
${include_paths}
|
2017-03-31 04:12:10 -05:00
|
|
|
|
2017-04-05 04:57:28 -05:00
|
|
|
if !ENABLE_DEBUG
|
|
|
|
AM_CPPFLAGS += -DNDEBUG
|
|
|
|
endif
|
|
|
|
|
2018-01-22 04:57:39 -06:00
|
|
|
AM_LDFLAGS = -pthread -Wl,-E,-rpath,/snap/loolwsd/current/usr/lib -lpam $(ZLIB_LIBS)
|
2017-02-26 23:01:17 -06:00
|
|
|
|
|
|
|
if ENABLE_SSL
|
2017-03-31 04:12:10 -05:00
|
|
|
AM_LDFLAGS += -lssl -lcrypto
|
2017-06-18 13:19:10 -05:00
|
|
|
else
|
|
|
|
loolwsd_fuzzer_LDADD = -lssl -lcrypto
|
|
|
|
loolwsd_LDADD = -lssl -lcrypto
|
|
|
|
loolconfig_LDADD = -lssl -lcrypto
|
2017-02-26 23:01:17 -06:00
|
|
|
endif
|
2015-12-17 11:49:34 -06:00
|
|
|
|
2017-02-07 14:00:23 -06:00
|
|
|
loolwsd_fuzzer_CPPFLAGS = -DKIT_IN_PROCESS=1 -DFUZZER=1 -DTDOC=\"$(abs_top_srcdir)/test/data\" $(AM_CPPFLAGS)
|
2017-02-06 08:59:14 -06:00
|
|
|
|
2017-12-14 12:46:37 -06:00
|
|
|
ETAGS=ctags -e
|
2017-03-10 05:59:10 -06:00
|
|
|
AM_ETAGSFLAGS = --c++-kinds=+p --fields=+iaS --extra=+q -R --totals=yes --exclude=loleaflet *
|
2016-03-22 13:26:57 -05:00
|
|
|
AM_CTAGSFLAGS = $(AM_ETAGSFLAGS)
|
|
|
|
|
2016-11-24 08:56:06 -06:00
|
|
|
shared_sources = common/FileUtil.cpp \
|
|
|
|
common/IoUtil.cpp \
|
|
|
|
common/Log.cpp \
|
|
|
|
common/Protocol.cpp \
|
|
|
|
common/Session.cpp \
|
2017-04-28 05:02:06 -05:00
|
|
|
common/Seccomp.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
common/MessageQueue.cpp \
|
2016-11-14 07:58:04 -06:00
|
|
|
common/SigUtil.cpp \
|
2016-11-27 09:38:35 -06:00
|
|
|
common/SpookyV2.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
common/Unit.cpp \
|
|
|
|
common/UnitHTTP.cpp \
|
2017-02-20 12:28:16 -06:00
|
|
|
common/Util.cpp \
|
2017-03-23 12:14:51 -05:00
|
|
|
net/DelaySocket.cpp \
|
2017-03-10 03:44:06 -06:00
|
|
|
net/Socket.cpp
|
2017-02-26 23:01:17 -06:00
|
|
|
if ENABLE_SSL
|
|
|
|
shared_sources += net/Ssl.cpp
|
|
|
|
endif
|
2016-11-24 08:56:06 -06:00
|
|
|
|
2017-10-03 14:48:28 -05:00
|
|
|
loolwsd_sources = common/Crypto.cpp \
|
|
|
|
wsd/Admin.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
wsd/AdminModel.cpp \
|
|
|
|
wsd/Auth.cpp \
|
|
|
|
wsd/DocumentBroker.cpp \
|
|
|
|
wsd/LOOLWSD.cpp \
|
|
|
|
wsd/ClientSession.cpp \
|
|
|
|
wsd/FileServer.cpp \
|
|
|
|
wsd/Storage.cpp \
|
2017-02-06 08:59:14 -06:00
|
|
|
wsd/TileCache.cpp
|
|
|
|
|
|
|
|
loolwsd_SOURCES = $(loolwsd_sources) \
|
2016-03-31 02:01:05 -05:00
|
|
|
$(shared_sources)
|
|
|
|
|
2017-02-14 16:57:03 -06:00
|
|
|
noinst_PROGRAMS = clientnb \
|
|
|
|
connect \
|
2016-04-16 14:44:53 -05:00
|
|
|
lokitclient \
|
2017-02-28 07:11:41 -06:00
|
|
|
loolforkit-nocaps \
|
|
|
|
loolwsd_fuzzer
|
2016-03-31 02:01:05 -05:00
|
|
|
|
2016-11-24 08:56:06 -06:00
|
|
|
connect_SOURCES = tools/Connect.cpp \
|
|
|
|
common/Log.cpp \
|
|
|
|
common/Protocol.cpp \
|
|
|
|
common/Util.cpp
|
2016-03-31 02:01:05 -05:00
|
|
|
|
2016-11-24 08:56:06 -06:00
|
|
|
lokitclient_SOURCES = common/IoUtil.cpp \
|
|
|
|
common/Log.cpp \
|
|
|
|
tools/KitClient.cpp \
|
|
|
|
common/Protocol.cpp \
|
|
|
|
common/Util.cpp
|
2016-03-31 02:01:05 -05:00
|
|
|
|
2017-02-06 08:59:14 -06:00
|
|
|
loolforkit_sources = kit/ChildSession.cpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
kit/ForKit.cpp \
|
2017-02-06 08:59:14 -06:00
|
|
|
kit/Kit.cpp
|
|
|
|
|
|
|
|
loolforkit_SOURCES = $(loolforkit_sources) \
|
2016-04-05 08:32:10 -05:00
|
|
|
$(shared_sources)
|
2015-12-19 16:20:04 -06:00
|
|
|
|
2017-02-06 08:59:14 -06:00
|
|
|
loolwsd_fuzzer_SOURCES = $(loolwsd_sources) \
|
|
|
|
$(loolforkit_sources) \
|
2017-02-08 04:24:19 -06:00
|
|
|
$(shared_sources) \
|
|
|
|
kit/DummyLibreOfficeKit.cpp
|
2017-02-06 08:59:14 -06:00
|
|
|
|
2017-02-19 11:06:45 -06:00
|
|
|
clientnb_SOURCES = net/clientnb.cpp \
|
|
|
|
common/Log.cpp \
|
|
|
|
common/Util.cpp
|
2017-02-14 16:57:03 -06:00
|
|
|
|
2016-04-16 14:44:53 -05:00
|
|
|
# build a binary with no caps to help debugging
|
|
|
|
loolforkit_nocaps_SOURCES = $(loolforkit_SOURCES)
|
|
|
|
|
2016-11-24 08:56:06 -06:00
|
|
|
loolmount_SOURCES = tools/mount.cpp
|
|
|
|
|
|
|
|
loolmap_SOURCES = tools/map.cpp
|
|
|
|
|
|
|
|
looltool_SOURCES = tools/Tool.cpp
|
|
|
|
|
|
|
|
loolstress_CPPFLAGS = -DTDOC=\"$(abs_top_srcdir)/test/data\" ${include_paths}
|
|
|
|
loolstress_SOURCES = tools/Stress.cpp \
|
|
|
|
common/Protocol.cpp \
|
2017-03-30 12:14:40 -05:00
|
|
|
common/Log.cpp \
|
|
|
|
common/Util.cpp
|
2016-11-24 08:56:06 -06:00
|
|
|
|
2017-07-21 09:33:19 -05:00
|
|
|
loolconfig_SOURCES = tools/Config.cpp \
|
|
|
|
common/Crypto.cpp \
|
|
|
|
common/Log.cpp \
|
|
|
|
common/Util.cpp
|
2017-05-24 03:52:24 -05:00
|
|
|
|
2016-11-24 08:56:06 -06:00
|
|
|
wsd_headers = wsd/Admin.hpp \
|
|
|
|
wsd/AdminModel.hpp \
|
|
|
|
wsd/Auth.hpp \
|
|
|
|
wsd/ClientSession.hpp \
|
|
|
|
wsd/DocumentBroker.hpp \
|
|
|
|
wsd/Exceptions.hpp \
|
|
|
|
wsd/FileServer.hpp \
|
|
|
|
wsd/LOOLWSD.hpp \
|
|
|
|
wsd/QueueHandler.hpp \
|
2016-12-11 11:03:38 -06:00
|
|
|
wsd/SenderQueue.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
wsd/Storage.hpp \
|
|
|
|
wsd/TileCache.hpp \
|
|
|
|
wsd/TileDesc.hpp \
|
|
|
|
wsd/TraceFile.hpp \
|
|
|
|
wsd/UserMessages.hpp
|
|
|
|
|
|
|
|
shared_headers = common/Common.hpp \
|
2017-10-03 14:48:28 -05:00
|
|
|
common/Crypto.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
common/IoUtil.hpp \
|
2016-11-25 05:58:13 -06:00
|
|
|
common/FileUtil.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
common/Log.hpp \
|
2017-03-20 13:07:01 -05:00
|
|
|
common/LOOLWebSocket.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
common/Protocol.hpp \
|
2017-04-28 05:02:06 -05:00
|
|
|
common/Seccomp.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
common/Session.hpp \
|
|
|
|
common/Unit.hpp \
|
|
|
|
common/UnitHTTP.hpp \
|
|
|
|
common/Util.hpp \
|
|
|
|
common/MessageQueue.hpp \
|
2017-02-20 12:28:16 -06:00
|
|
|
common/Message.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
common/Png.hpp \
|
|
|
|
common/Rectangle.hpp \
|
2016-11-25 05:55:52 -06:00
|
|
|
common/SigUtil.hpp \
|
2016-12-06 07:47:48 -06:00
|
|
|
common/security.h \
|
2017-02-26 23:01:17 -06:00
|
|
|
common/SpookyV2.h \
|
2017-03-23 12:14:51 -05:00
|
|
|
net/DelaySocket.hpp \
|
2017-03-14 09:40:16 -05:00
|
|
|
net/ServerSocket.hpp \
|
2017-02-26 23:01:17 -06:00
|
|
|
net/Socket.hpp \
|
2017-03-10 03:44:06 -06:00
|
|
|
net/WebSocketHandler.hpp \
|
|
|
|
tools/Replay.hpp
|
2017-02-26 23:01:17 -06:00
|
|
|
if ENABLE_SSL
|
|
|
|
shared_headers += net/Ssl.hpp \
|
|
|
|
net/SslSocket.hpp
|
|
|
|
endif
|
2016-11-24 08:56:06 -06:00
|
|
|
|
|
|
|
kit_headers = kit/ChildSession.hpp \
|
2017-11-27 18:33:46 -06:00
|
|
|
kit/Delta.hpp \
|
2017-02-08 04:24:19 -06:00
|
|
|
kit/DummyLibreOfficeKit.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
kit/Kit.hpp \
|
2017-02-08 04:24:19 -06:00
|
|
|
kit/KitHelper.hpp
|
2016-11-24 08:56:06 -06:00
|
|
|
|
|
|
|
noinst_HEADERS = $(wsd_headers) $(shared_headers) $(kit_headers) \
|
2016-03-31 02:01:05 -05:00
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKit.h \
|
2016-11-23 01:20:55 -06:00
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKit.hxx \
|
2016-03-31 02:01:05 -05:00
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h \
|
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKitInit.h \
|
2016-04-14 05:35:50 -05:00
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKitTypes.h \
|
2017-09-27 08:55:44 -05:00
|
|
|
test/WopiTestServer.hpp \
|
2016-05-09 05:25:42 -05:00
|
|
|
test/countloolkits.hpp \
|
2017-06-06 05:14:43 -05:00
|
|
|
test/test.hpp \
|
2016-11-24 08:56:06 -06:00
|
|
|
test/helpers.hpp
|
2016-03-31 02:01:05 -05:00
|
|
|
|
2017-04-28 04:54:18 -05:00
|
|
|
dist-hook:
|
|
|
|
git log -1 --format=%h > $(distdir)/dist_git_hash 2> /dev/null || rm $(distdir)/dist_git_hash
|
|
|
|
|
2016-03-31 02:01:05 -05:00
|
|
|
EXTRA_DIST = discovery.xml \
|
2016-08-26 05:57:33 -05:00
|
|
|
favicon.ico \
|
2017-03-14 10:04:10 -05:00
|
|
|
loolkitconfig.xcu \
|
2017-03-20 13:45:06 -05:00
|
|
|
loolwsd.spec \
|
2016-04-14 08:06:49 -05:00
|
|
|
loolwsd.xml.in \
|
2016-03-31 02:01:05 -05:00
|
|
|
loolwsd.service \
|
2016-05-30 10:40:40 -05:00
|
|
|
robots.txt \
|
2016-04-14 07:50:48 -05:00
|
|
|
sysconfig.loolwsd \
|
2017-03-20 17:22:26 -05:00
|
|
|
debian/compat \
|
|
|
|
debian/copyright \
|
|
|
|
debian/loolwsd.cron.d \
|
|
|
|
debian/loolwsd.preinst \
|
2017-04-05 08:30:47 -05:00
|
|
|
debian/loolwsd.service \
|
2017-03-20 17:22:26 -05:00
|
|
|
debian/rules \
|
|
|
|
debian/source/format \
|
|
|
|
debian/changelog \
|
|
|
|
debian/control \
|
|
|
|
debian/loolwsd.postinst \
|
2016-04-14 07:50:48 -05:00
|
|
|
etc/key.pem \
|
|
|
|
etc/cert.pem \
|
2017-12-19 01:35:32 -06:00
|
|
|
etc/ca-chain.cert.pem \
|
|
|
|
scripts/unocommands.py
|
2015-06-09 14:33:46 -05:00
|
|
|
|
2016-04-11 12:21:16 -05:00
|
|
|
if HAVE_LO_PATH
|
|
|
|
|
2016-04-12 01:29:57 -05:00
|
|
|
SYSTEM_STAMP = @SYSTEMPLATE_PATH@/system_stamp
|
|
|
|
|
2016-04-15 08:23:44 -05:00
|
|
|
$(SYSTEM_STAMP) : ${top_srcdir}/loolwsd-systemplate-setup
|
2016-04-11 12:21:16 -05:00
|
|
|
if test "z@SYSTEMPLATE_PATH@" != "z"; then rm -rf "@SYSTEMPLATE_PATH@"; fi
|
|
|
|
${top_srcdir}/loolwsd-systemplate-setup "@SYSTEMPLATE_PATH@" "@LO_PATH@" && touch $@
|
|
|
|
|
|
|
|
@JAILS_PATH@ :
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
if test "z@JAILS_PATH@" != "z"; then rm -rf "@JAILS_PATH@"; fi
|
|
|
|
if test "z@SYSTEMPLATE_PATH@" != "z"; then rm -rf "@SYSTEMPLATE_PATH@"; fi
|
|
|
|
|
2016-04-15 08:34:23 -05:00
|
|
|
run: all @JAILS_PATH@ @SYSTEMPLATE_PATH@/system_stamp
|
2016-07-18 06:45:36 -05:00
|
|
|
@echo "Launching loolwsd"
|
2017-04-05 08:38:33 -05:00
|
|
|
@fc-cache "@LO_PATH@"/share/fonts/truetype
|
2016-04-14 04:36:18 -05:00
|
|
|
@cp $(abs_top_srcdir)/test/data/hello.odt $(abs_top_srcdir)/test/data/hello-world.odt
|
2016-04-13 11:31:10 -05:00
|
|
|
@echo
|
2016-06-25 19:10:48 -05:00
|
|
|
./loolwsd --o:sys_template_path="@SYSTEMPLATE_PATH@" --o:lo_template_path="@LO_PATH@" \
|
|
|
|
--o:child_root_path="@JAILS_PATH@" --o:storage.filesystem[@allow]=true \
|
2017-02-28 15:53:24 -06:00
|
|
|
--o:ssl.cert_file_path="$(abs_top_srcdir)/etc/cert.pem" \
|
|
|
|
--o:ssl.key_file_path="$(abs_top_srcdir)/etc/key.pem" \
|
|
|
|
--o:ssl.ca_file_path="$(abs_top_srcdir)/etc/ca-chain.cert.pem" \
|
2017-04-03 20:05:36 -05:00
|
|
|
--o:admin_console.username=admin --o:admin_console.password=admin \
|
2017-04-04 12:21:26 -05:00
|
|
|
--o:logging.file[@enable]=true --o:logging.level=trace
|
2016-05-12 06:24:38 -05:00
|
|
|
|
2016-09-30 16:53:48 -05:00
|
|
|
run-valgrind: all @JAILS_PATH@ @SYSTEMPLATE_PATH@/system_stamp
|
2016-05-12 06:24:38 -05:00
|
|
|
@echo "Launching loolwsd under valgrind (but not forkit/loolkit, yet)"
|
2017-04-05 08:38:33 -05:00
|
|
|
@fc-cache "@LO_PATH@"/share/fonts/truetype
|
2017-04-03 20:05:36 -05:00
|
|
|
@cp $(abs_top_srcdir)/test/data/hello.odt $(abs_top_srcdir)/test/data/hello-world.odt
|
2016-05-12 06:24:38 -05:00
|
|
|
valgrind --tool=memcheck --trace-children=no -v --read-var-info=yes \
|
2016-06-27 02:45:29 -05:00
|
|
|
./loolwsd --o:sys_template_path="@SYSTEMPLATE_PATH@" --o:lo_template_path="@LO_PATH@" \
|
|
|
|
--o:child_root_path="@JAILS_PATH@" --o:storage.filesystem[@allow]=true \
|
2017-02-28 15:53:24 -06:00
|
|
|
--o:ssl.cert_file_path="$(abs_top_srcdir)/etc/cert.pem" \
|
|
|
|
--o:ssl.key_file_path="$(abs_top_srcdir)/etc/key.pem" \
|
|
|
|
--o:ssl.ca_file_path="$(abs_top_srcdir)/etc/ca-chain.cert.pem" \
|
2017-04-03 20:05:36 -05:00
|
|
|
--o:admin_console.username=admin --o:admin_console.password=admin \
|
|
|
|
--o:logging.file[@enable]=false --o:logging.level=trace
|
2016-09-30 16:53:48 -05:00
|
|
|
|
|
|
|
run-callgrind: all @JAILS_PATH@ @SYSTEMPLATE_PATH@/system_stamp
|
2017-04-06 03:25:19 -05:00
|
|
|
@echo "Launching loolwsd under valgrind's callgrind"
|
2017-04-05 08:38:33 -05:00
|
|
|
@fc-cache "@LO_PATH@"/share/fonts/truetype
|
2017-04-03 20:05:36 -05:00
|
|
|
@cp $(abs_top_srcdir)/test/data/hello.odt $(abs_top_srcdir)/test/data/hello-world.odt
|
2017-04-05 13:20:47 -05:00
|
|
|
valgrind --tool=callgrind --simulate-cache=yes --dump-instr=yes --num-callers=50 --error-limit=no --trace-children=yes \
|
|
|
|
./loolwsd --nocaps \
|
|
|
|
--o:sys_template_path="@SYSTEMPLATE_PATH@" --o:lo_template_path="@LO_PATH@" \
|
2016-09-30 16:53:48 -05:00
|
|
|
--o:child_root_path="@JAILS_PATH@" --o:storage.filesystem[@allow]=true \
|
2017-02-28 15:53:24 -06:00
|
|
|
--o:ssl.cert_file_path="$(abs_top_srcdir)/etc/cert.pem" \
|
|
|
|
--o:ssl.key_file_path="$(abs_top_srcdir)/etc/key.pem" \
|
|
|
|
--o:ssl.ca_file_path="$(abs_top_srcdir)/etc/ca-chain.cert.pem" \
|
2017-04-03 20:05:36 -05:00
|
|
|
--o:admin_console.username=admin --o:admin_console.password=admin \
|
2017-04-04 12:21:26 -05:00
|
|
|
--o:logging.file[@enable]=false --o:logging.level=error
|
2018-01-26 13:27:51 -06:00
|
|
|
|
|
|
|
run-strace: all @JAILS_PATH@ @SYSTEMPLATE_PATH@/system_stamp
|
|
|
|
@echo "Launching loolwsd under strace"
|
|
|
|
@fc-cache "@LO_PATH@"/share/fonts/truetype
|
|
|
|
@cp $(abs_top_srcdir)/test/data/hello.odt $(abs_top_srcdir)/test/data/hello-world.odt
|
|
|
|
strace -o strace.log -f -tt -s 256 \
|
|
|
|
./loolwsd --nocaps \
|
|
|
|
--o:sys_template_path="@SYSTEMPLATE_PATH@" --o:lo_template_path="@LO_PATH@" \
|
|
|
|
--o:child_root_path="@JAILS_PATH@" --o:storage.filesystem[@allow]=true \
|
|
|
|
--o:ssl.cert_file_path="$(abs_top_srcdir)/etc/cert.pem" \
|
|
|
|
--o:ssl.key_file_path="$(abs_top_srcdir)/etc/key.pem" \
|
|
|
|
--o:ssl.ca_file_path="$(abs_top_srcdir)/etc/ca-chain.cert.pem" \
|
|
|
|
--o:admin_console.username=admin --o:admin_console.password=admin \
|
|
|
|
--o:logging.file[@enable]=false --o:logging.level=error
|
|
|
|
|
2016-04-12 01:29:57 -05:00
|
|
|
else
|
|
|
|
|
|
|
|
SYSTEM_STAMP =
|
|
|
|
|
2016-04-11 12:21:16 -05:00
|
|
|
endif
|
|
|
|
|
2016-04-22 06:11:57 -05:00
|
|
|
clean-cache cache-clean:
|
2015-03-17 18:56:15 -05:00
|
|
|
# Intentionally don't use "*" below... Avoid risk of accidentally running rm -rf /*
|
2015-03-27 07:52:30 -05:00
|
|
|
test -n "@LOOLWSD_CACHEDIR@" && rm -rf "@LOOLWSD_CACHEDIR@"/[0-9a-f]
|
2015-04-08 09:22:42 -05:00
|
|
|
|
2016-09-30 02:29:08 -05:00
|
|
|
clang-tidy:
|
2017-07-11 05:34:57 -05:00
|
|
|
parallel clang-tidy -header-filter=^$(PWD).* -- $(shell git ls-files|grep /.*cpp$$|grep -v test)
|
2016-09-30 02:29:08 -05:00
|
|
|
|
2016-04-05 08:37:10 -05:00
|
|
|
# After building loolforkit, set its capabilities as required. Do it
|
2016-04-04 00:26:05 -05:00
|
|
|
# already after a plain 'make' to allow for testing without
|
|
|
|
# installing. When building for packaging, no need for this, as the
|
|
|
|
# capabilities won't survive packaging anyway. Instead, handle it when
|
|
|
|
# installing the RPM or Debian package.
|
2016-03-07 05:08:02 -06:00
|
|
|
|
2016-04-14 11:47:35 -05:00
|
|
|
all-local: loolforkit @JAILS_PATH@ $(SYSTEM_STAMP)
|
2016-09-30 03:43:04 -05:00
|
|
|
@if test "$$BUILDING_FROM_RPMBUILD" != yes; then \
|
2016-04-05 08:37:10 -05:00
|
|
|
sudo @SETCAP@ cap_fowner,cap_mknod,cap_sys_chroot=ep loolforkit; \
|
2016-04-02 13:17:22 -05:00
|
|
|
sudo @SETCAP@ cap_sys_admin=ep loolmount; \
|
2016-03-25 13:02:42 -05:00
|
|
|
echo "Set required capabilities"; \
|
|
|
|
else \
|
|
|
|
echo "Skipping capability setting"; \
|
2015-05-04 12:55:35 -05:00
|
|
|
fi
|
2016-09-30 03:43:04 -05:00
|
|
|
|
|
|
|
# just run the build without any tests
|
|
|
|
build-nocheck: all-am
|