GUACAMOLE-175: Move common core of guacd into libguacd utility library.
This commit is contained in:
parent
a1886f51bd
commit
d7a604c8b2
@ -22,6 +22,7 @@ ACLOCAL_AMFLAGS = -I m4
|
||||
# Subprojects
|
||||
DIST_SUBDIRS = \
|
||||
src/libguac \
|
||||
src/libguacd \
|
||||
src/common \
|
||||
src/common-ssh \
|
||||
src/terminal \
|
||||
@ -36,6 +37,7 @@ DIST_SUBDIRS = \
|
||||
SUBDIRS = \
|
||||
src/libguac \
|
||||
src/common \
|
||||
src/libguacd \
|
||||
tests
|
||||
|
||||
if ENABLE_COMMON_SSH
|
||||
|
@ -119,6 +119,10 @@ AC_SUBST([LIBGUAC_INCLUDE], '-I$(top_srcdir)/src/libguac')
|
||||
AC_SUBST([COMMON_LTLIB], '$(top_builddir)/src/common/libguac_common.la')
|
||||
AC_SUBST([COMMON_INCLUDE], '-I$(top_srcdir)/src/common')
|
||||
|
||||
# Common utility library for guacd implementations
|
||||
AC_SUBST([LIBGUACD_LTLIB], '$(top_builddir)/src/libguacd/libguacd.la')
|
||||
AC_SUBST([LIBGUACD_INCLUDE], '-I$(top_srcdir)/src/libguacd')
|
||||
|
||||
# Common base SSH client
|
||||
AC_SUBST([COMMON_SSH_LTLIB], '$(top_builddir)/src/common-ssh/libguac_common_ssh.la')
|
||||
AC_SUBST([COMMON_SSH_INCLUDE], '-I$(top_srcdir)/src/common-ssh')
|
||||
@ -1101,6 +1105,7 @@ AC_CONFIG_FILES([Makefile
|
||||
src/common-ssh/Makefile
|
||||
src/terminal/Makefile
|
||||
src/libguac/Makefile
|
||||
src/libguacd/Makefile
|
||||
src/guacd/Makefile
|
||||
src/guacenc/Makefile
|
||||
src/protocols/rdp/Makefile
|
||||
|
@ -30,11 +30,9 @@ noinst_HEADERS = \
|
||||
conf-file.h \
|
||||
conf-parse.h \
|
||||
connection.h \
|
||||
log.h \
|
||||
move-fd.h \
|
||||
proc.h \
|
||||
proc-map.h \
|
||||
user.h
|
||||
proc-map.h
|
||||
|
||||
guacd_SOURCES = \
|
||||
conf-args.c \
|
||||
@ -42,19 +40,19 @@ guacd_SOURCES = \
|
||||
conf-parse.c \
|
||||
connection.c \
|
||||
daemon.c \
|
||||
log.c \
|
||||
move-fd.c \
|
||||
proc.c \
|
||||
proc-map.c \
|
||||
user.c
|
||||
proc-map.c
|
||||
|
||||
guacd_CFLAGS = \
|
||||
-Werror -Wall -pedantic \
|
||||
@COMMON_INCLUDE@ \
|
||||
@LIBGUACD_INCLUDE@ \
|
||||
@LIBGUAC_INCLUDE@
|
||||
|
||||
guacd_LDADD = \
|
||||
@COMMON_LTLIB@ \
|
||||
@LIBGUACD_LTLIB@ \
|
||||
@LIBGUAC_LTLIB@
|
||||
|
||||
guacd_LDFLAGS = \
|
||||
@ -68,12 +66,6 @@ EXTRA_DIST = \
|
||||
|
||||
CLEANFILES = $(init_SCRIPTS)
|
||||
|
||||
# SSL support
|
||||
if ENABLE_SSL
|
||||
noinst_HEADERS += socket-ssl.h
|
||||
guacd_SOURCES += socket-ssl.c
|
||||
endif
|
||||
|
||||
# Init script
|
||||
if ENABLE_INIT
|
||||
initdir = @init_dir@
|
||||
|
50
src/libguacd/Makefile.am
Normal file
50
src/libguacd/Makefile.am
Normal file
@ -0,0 +1,50 @@
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
|
||||
noinst_LTLIBRARIES = libguacd.la
|
||||
|
||||
noinst_HEADERS = \
|
||||
log.h \
|
||||
user.h
|
||||
|
||||
libguacd_la_SOURCES = \
|
||||
log.c \
|
||||
user.c
|
||||
|
||||
libguacd_la_CFLAGS = \
|
||||
-Werror -Wall -pedantic \
|
||||
@COMMON_INCLUDE@ \
|
||||
@LIBGUAC_INCLUDE@
|
||||
|
||||
libguacd_la_LIBADD = \
|
||||
@COMMON_LTLIB@ \
|
||||
@LIBGUAC_LTLIB@
|
||||
|
||||
libguacd_la_LDFLAGS = \
|
||||
@PTHREAD_LIBS@ \
|
||||
@SSL_LIBS@
|
||||
|
||||
# SSL support
|
||||
if ENABLE_SSL
|
||||
noinst_HEADERS += socket-ssl.h
|
||||
libguacd_la_SOURCES += socket-ssl.c
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user