libreoffice-online/loolwsd/Makefile.am

179 lines
5.7 KiB
Text
Raw Normal View History

SUBDIRS = . test
2015-10-21 05:01:47 -05:00
export ENABLE_DEBUG
bin_PROGRAMS = loolwsd loolforkit loolmap loolmount looltool
2015-03-09 04:11:15 -05:00
2016-04-14 07:43:13 -05:00
dist_bin_SCRIPTS = loolwsd-systemplate-setup
loolwsddatadir = @LOOLWSD_DATADIR@
2016-05-30 10:40:40 -05:00
loolwsddata_DATA = discovery.xml \
robots.txt
2016-04-14 08:06:49 -05:00
loolwsdconfigdir = @LOOLWSD_CONFIGDIR@
loolwsdconfig_DATA = loolwsd.xml \
etc/key.pem
2016-04-14 08:06:49 -05:00
if ENABLE_SSL
loolwsdconfig_DATA += etc/cert.pem \
etc/ca-chain.cert.pem
endif
2016-04-12 02:39:53 -05:00
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -pthread -DLOOLWSD_DATADIR='"@LOOLWSD_DATADIR@"' -DLOOLWSD_CONFIGDIR='"@LOOLWSD_CONFIGDIR@"'
AM_LDFLAGS = -pthread -Wl,-E
AM_ETAGSFLAGS = --c++-kinds=+p --fields=+iaS --extra=+q -R --totals=yes *
AM_CTAGSFLAGS = $(AM_ETAGSFLAGS)
shared_sources = ChildSession.cpp \
IoUtil.cpp \
Log.cpp \
LOOLProtocol.cpp \
LOOLSession.cpp \
MessageQueue.cpp \
Unit.cpp \
Util.cpp
loolwsd_SOURCES = Admin.cpp \
AdminModel.cpp \
Auth.cpp \
DocumentBroker.cpp \
LOOLWSD.cpp \
ClientSession.cpp \
FileServer.cpp \
PrisonerSession.cpp \
Storage.cpp \
TileCache.cpp \
$(shared_sources)
noinst_PROGRAMS = connect \
lokitclient \
loolforkit-nocaps
connect_SOURCES = Connect.cpp \
Log.cpp \
LOOLProtocol.cpp \
Util.cpp
lokitclient_SOURCES = IoUtil.cpp \
Log.cpp \
LOKitClient.cpp \
LOOLProtocol.cpp \
Util.cpp
loolforkit_SOURCES = LOOLForKit.cpp \
LOOLKit.cpp \
$(shared_sources)
# build a binary with no caps to help debugging
loolforkit_nocaps_SOURCES = $(loolforkit_SOURCES)
loolmount_SOURCES = loolmount.c
loolmap_SOURCES = loolmap.c
looltool_SOURCES = LOOLTool.cpp
noinst_HEADERS = Admin.hpp \
AdminModel.hpp \
Auth.hpp \
ChildSession.hpp \
Common.hpp \
DocumentBroker.hpp \
2016-04-18 03:30:32 -05:00
Exceptions.hpp \
FileServer.hpp \
IoUtil.hpp \
2016-05-19 09:58:01 -05:00
LibreOfficeKit.hpp \
Log.hpp \
LOKitHelper.hpp \
LOOLKit.hpp \
LOOLProtocol.hpp \
LOOLSession.hpp \
LOOLWSD.hpp \
ClientSession.hpp \
PrisonerSession.hpp \
MessageQueue.hpp \
Png.hpp \
QueueHandler.hpp \
Rectangle.hpp \
Storage.hpp \
TileCache.hpp \
Unit.hpp \
UnitHTTP.hpp \
2016-04-18 03:30:32 -05:00
UserMessages.hpp \
Util.hpp \
bundled/include/LibreOfficeKit/LibreOfficeKit.h \
bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h \
bundled/include/LibreOfficeKit/LibreOfficeKitInit.h \
2016-04-14 05:35:50 -05:00
bundled/include/LibreOfficeKit/LibreOfficeKitTypes.h \
2016-05-09 05:25:42 -05:00
test/countloolkits.hpp \
2016-05-09 05:23:46 -05:00
test/helpers.hpp \
2016-04-14 05:35:50 -05:00
security.h
EXTRA_DIST = discovery.xml \
2016-04-14 08:06:49 -05:00
loolwsd.xml.in \
loolwsd.service \
2016-05-30 10:40:40 -05:00
robots.txt \
2016-04-14 07:50:48 -05:00
sysconfig.loolwsd \
etc/key.pem \
etc/cert.pem \
etc/ca-chain.cert.pem
if HAVE_LO_PATH
2016-04-12 01:29:57 -05:00
SYSTEM_STAMP = @SYSTEMPLATE_PATH@/system_stamp
$(SYSTEM_STAMP) : ${top_srcdir}/loolwsd-systemplate-setup
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
run: all @JAILS_PATH@ @SYSTEMPLATE_PATH@/system_stamp
@echo "Launching loolwsd"
@cp $(abs_top_srcdir)/test/data/hello.odt $(abs_top_srcdir)/test/data/hello-world.odt
@echo
./loolwsd --o:sys_template_path="@SYSTEMPLATE_PATH@" --o:lo_template_path="@LO_PATH@" \
--o:child_root_path="@JAILS_PATH@" --o:storage.filesystem[@allow]=true \
--o:admin_console.username=admin --o:admin_console.password=admin
run_valgrind: all @JAILS_PATH@ @SYSTEMPLATE_PATH@/system_stamp
@echo "Launching loolwsd under valgrind (but not forkit/loolkit, yet)"
valgrind --tool=memcheck --trace-children=no -v --read-var-info=yes \
./loolwsd --o:sys_template_path="@SYSTEMPLATE_PATH@" --o:lo_template_path="@LO_PATH@" \
--o:child_root_path="@JAILS_PATH@" --o:storage.filesystem[@allow]=true \
--o:admin_console.username=admin --o:admin_console.password=admin
2016-04-12 01:29:57 -05:00
else
SYSTEM_STAMP =
endif
2016-04-22 06:11:57 -05:00
clean-cache cache-clean:
# Intentionally don't use "*" below... Avoid risk of accidentally running rm -rf /*
test -n "@LOOLWSD_CACHEDIR@" && rm -rf "@LOOLWSD_CACHEDIR@"/[0-9a-f]
# After building loolforkit, set its capabilities as required. Do it
# 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.
all-local: loolforkit @JAILS_PATH@ $(SYSTEM_STAMP)
if test "$$BUILDING_FROM_RPMBUILD" != yes; then \
sudo @SETCAP@ cap_fowner,cap_mknod,cap_sys_chroot=ep loolforkit; \
sudo @SETCAP@ cap_sys_admin=ep loolmount; \
2016-03-25 13:02:42 -05:00
echo "Set required capabilities"; \
else \
echo "Skipping capability setting"; \
fi