2016-04-07 16:12:23 -05:00
|
|
|
SUBDIRS = . test
|
2015-10-21 05:01:47 -05:00
|
|
|
|
2016-04-05 08:37:10 -05:00
|
|
|
bin_PROGRAMS = loolwsd loolforkit loolmap loolmount
|
2015-03-09 04:11:15 -05:00
|
|
|
|
2016-03-17 09:24:09 -05:00
|
|
|
dist_bin_SCRIPTS = loolwsd-systemplate-setup discovery.xml
|
2015-05-19 05:20:16 -05:00
|
|
|
|
2016-04-12 02:39:53 -05:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2016-04-14 05:34:11 -05:00
|
|
|
AM_CPPFLAGS = -pthread -DLOOLWSD_DATADIR='"@LOOLWSD_DATADIR@"' -DLOOLWSD_CONFIGDIR='"@LOOLWSD_CONFIGDIR@"'
|
2016-04-05 11:41:10 -05:00
|
|
|
AM_LDFLAGS = -pthread -Wl,-E
|
2015-12-17 11:49:34 -06:00
|
|
|
|
2016-03-22 13:26:57 -05:00
|
|
|
AM_ETAGSFLAGS = --c++-kinds=+p --fields=+iaS --extra=+q -R --totals=yes *
|
|
|
|
AM_CTAGSFLAGS = $(AM_ETAGSFLAGS)
|
|
|
|
|
2016-04-05 08:32:10 -05:00
|
|
|
shared_sources = ChildProcessSession.cpp \
|
|
|
|
IoUtil.cpp \
|
2016-03-31 02:01:05 -05:00
|
|
|
LOOLProtocol.cpp \
|
|
|
|
LOOLSession.cpp \
|
|
|
|
MessageQueue.cpp \
|
2016-04-09 11:30:48 -05:00
|
|
|
Unit.cpp \
|
2016-03-31 02:01:05 -05:00
|
|
|
Util.cpp
|
|
|
|
|
|
|
|
loolwsd_SOURCES = Admin.cpp \
|
2016-03-31 02:25:35 -05:00
|
|
|
AdminModel.cpp \
|
2016-03-31 02:01:05 -05:00
|
|
|
Auth.cpp \
|
|
|
|
DocumentBroker.cpp \
|
|
|
|
LOOLWSD.cpp \
|
|
|
|
MasterProcessSession.cpp \
|
|
|
|
Storage.cpp \
|
|
|
|
TileCache.cpp \
|
|
|
|
$(shared_sources)
|
|
|
|
|
|
|
|
noinst_PROGRAMS = connect \
|
|
|
|
loadtest \
|
|
|
|
lokitclient
|
|
|
|
|
|
|
|
loadtest_SOURCES = LoadTest.cpp \
|
|
|
|
LOOLProtocol.cpp \
|
|
|
|
Util.cpp
|
|
|
|
|
|
|
|
connect_SOURCES = Connect.cpp \
|
|
|
|
LOOLProtocol.cpp \
|
|
|
|
Util.cpp
|
|
|
|
|
|
|
|
lokitclient_SOURCES = IoUtil.cpp \
|
|
|
|
LOKitClient.cpp \
|
|
|
|
LOOLProtocol.cpp \
|
|
|
|
Util.cpp
|
|
|
|
|
2016-04-05 08:37:10 -05:00
|
|
|
loolforkit_SOURCES = LOOLForKit.cpp \
|
2016-04-05 08:32:10 -05:00
|
|
|
LOOLKit.cpp \
|
|
|
|
$(shared_sources)
|
2015-12-19 16:20:04 -06:00
|
|
|
|
2016-04-02 13:17:22 -05:00
|
|
|
loolmount_SOURCES = loolmount.c
|
|
|
|
|
2015-12-23 08:55:56 -06:00
|
|
|
loolmap_SOURCES = loolmap.c
|
|
|
|
|
2016-03-31 02:01:05 -05:00
|
|
|
noinst_HEADERS = Admin.hpp \
|
|
|
|
AdminModel.hpp \
|
|
|
|
Auth.hpp \
|
|
|
|
ChildProcessSession.hpp \
|
|
|
|
Common.hpp \
|
|
|
|
DocumentBroker.hpp \
|
|
|
|
FileServer.hpp \
|
|
|
|
IoUtil.hpp \
|
|
|
|
LoadTest.hpp \
|
|
|
|
LOKitHelper.hpp \
|
2016-04-05 08:32:10 -05:00
|
|
|
LOOLKit.hpp \
|
2016-03-31 02:01:05 -05:00
|
|
|
LOOLProtocol.hpp \
|
|
|
|
LOOLSession.hpp \
|
|
|
|
LOOLWSD.hpp \
|
|
|
|
MasterProcessSession.hpp \
|
|
|
|
MessageQueue.hpp \
|
|
|
|
Png.hpp \
|
|
|
|
QueueHandler.hpp \
|
|
|
|
Rectangle.hpp \
|
|
|
|
Storage.hpp \
|
|
|
|
TileCache.hpp \
|
2016-04-05 11:41:10 -05:00
|
|
|
Unit.hpp \
|
2016-04-07 15:59:27 -05:00
|
|
|
UnitHTTP.hpp \
|
2016-03-31 02:01:05 -05:00
|
|
|
Util.hpp \
|
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKit.h \
|
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h \
|
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKitInit.h \
|
|
|
|
bundled/include/LibreOfficeKit/LibreOfficeKitTypes.h
|
|
|
|
|
|
|
|
EXTRA_DIST = discovery.xml \
|
|
|
|
loolwsd.service \
|
|
|
|
sysconfig.loolwsd
|
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
|
|
|
|
|
|
|
|
$(SYSTEM_STAMP) :
|
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
|
|
|
|
|
|
|
|
run: @JAILS_PATH@ @SYSTEMPLATE_PATH@/system_stamp
|
|
|
|
@echo "Launching loolwsd - launch this in your browser:"
|
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
|
|
|
@PROTOCOL="http" ; if test "z@ENABLE_SSL@" != "z"; then PROTOCOL="https" ; fi ; \
|
2016-04-14 04:36:18 -05:00
|
|
|
echo " $$PROTOCOL://localhost:9980/loleaflet/dist/loleaflet.html?file_path=file://$(abs_top_srcdir)/test/data/hello-world.odt"
|
2016-04-13 11:31:10 -05:00
|
|
|
@echo
|
2016-04-11 12:21:16 -05:00
|
|
|
./loolwsd --systemplate="@SYSTEMPLATE_PATH@" --lotemplate="@LO_PATH@" \
|
|
|
|
--childroot="@JAILS_PATH@" --allowlocalstorage
|
2016-04-12 01:29:57 -05:00
|
|
|
else
|
|
|
|
|
|
|
|
SYSTEM_STAMP =
|
|
|
|
|
2016-04-11 12:21:16 -05:00
|
|
|
endif
|
|
|
|
|
2015-03-17 18:56:15 -05:00
|
|
|
clean-cache:
|
|
|
|
# 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-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-12 01:29:57 -05:00
|
|
|
all-local: loolforkit certificates @JAILS_PATH@ $(SYSTEM_STAMP)
|
2015-05-29 01:56:32 -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-03-29 06:28:41 -05:00
|
|
|
|
|
|
|
certificates: etc/cert.pem etc/key.pem etc/CollaboraCloudSuiteCA_ca-chain.cert.pem
|
|
|
|
if test "$$BUILDING_FROM_RPMBUILD" != yes; then \
|
|
|
|
sudo mkdir -p /etc/loolwsd ; \
|
|
|
|
sudo cp $? /etc/loolwsd/ ; \
|
|
|
|
fi
|