GUACAMOLE-175: Move common core of guacd into libguacd utility library.

This commit is contained in:
Michael Jumper 2016-09-09 10:44:16 -07:00
parent a1886f51bd
commit d7a604c8b2
10 changed files with 66 additions and 17 deletions

View File

@ -22,6 +22,7 @@ ACLOCAL_AMFLAGS = -I m4
# Subprojects
DIST_SUBDIRS = \
src/libguac \
src/libguacd \
src/common \
src/common-ssh \
src/terminal \
@ -33,9 +34,10 @@ DIST_SUBDIRS = \
src/protocols/vnc \
tests
SUBDIRS = \
src/libguac \
src/common \
SUBDIRS = \
src/libguac \
src/common \
src/libguacd \
tests
if ENABLE_COMMON_SSH

View File

@ -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

View File

@ -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@ \
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
View 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