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
|
# Subprojects
|
||||||
DIST_SUBDIRS = \
|
DIST_SUBDIRS = \
|
||||||
src/libguac \
|
src/libguac \
|
||||||
|
src/libguacd \
|
||||||
src/common \
|
src/common \
|
||||||
src/common-ssh \
|
src/common-ssh \
|
||||||
src/terminal \
|
src/terminal \
|
||||||
@ -36,6 +37,7 @@ DIST_SUBDIRS = \
|
|||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
src/libguac \
|
src/libguac \
|
||||||
src/common \
|
src/common \
|
||||||
|
src/libguacd \
|
||||||
tests
|
tests
|
||||||
|
|
||||||
if ENABLE_COMMON_SSH
|
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_LTLIB], '$(top_builddir)/src/common/libguac_common.la')
|
||||||
AC_SUBST([COMMON_INCLUDE], '-I$(top_srcdir)/src/common')
|
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
|
# Common base SSH client
|
||||||
AC_SUBST([COMMON_SSH_LTLIB], '$(top_builddir)/src/common-ssh/libguac_common_ssh.la')
|
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')
|
AC_SUBST([COMMON_SSH_INCLUDE], '-I$(top_srcdir)/src/common-ssh')
|
||||||
@ -1101,6 +1105,7 @@ AC_CONFIG_FILES([Makefile
|
|||||||
src/common-ssh/Makefile
|
src/common-ssh/Makefile
|
||||||
src/terminal/Makefile
|
src/terminal/Makefile
|
||||||
src/libguac/Makefile
|
src/libguac/Makefile
|
||||||
|
src/libguacd/Makefile
|
||||||
src/guacd/Makefile
|
src/guacd/Makefile
|
||||||
src/guacenc/Makefile
|
src/guacenc/Makefile
|
||||||
src/protocols/rdp/Makefile
|
src/protocols/rdp/Makefile
|
||||||
|
@ -30,11 +30,9 @@ noinst_HEADERS = \
|
|||||||
conf-file.h \
|
conf-file.h \
|
||||||
conf-parse.h \
|
conf-parse.h \
|
||||||
connection.h \
|
connection.h \
|
||||||
log.h \
|
|
||||||
move-fd.h \
|
move-fd.h \
|
||||||
proc.h \
|
proc.h \
|
||||||
proc-map.h \
|
proc-map.h
|
||||||
user.h
|
|
||||||
|
|
||||||
guacd_SOURCES = \
|
guacd_SOURCES = \
|
||||||
conf-args.c \
|
conf-args.c \
|
||||||
@ -42,19 +40,19 @@ guacd_SOURCES = \
|
|||||||
conf-parse.c \
|
conf-parse.c \
|
||||||
connection.c \
|
connection.c \
|
||||||
daemon.c \
|
daemon.c \
|
||||||
log.c \
|
|
||||||
move-fd.c \
|
move-fd.c \
|
||||||
proc.c \
|
proc.c \
|
||||||
proc-map.c \
|
proc-map.c
|
||||||
user.c
|
|
||||||
|
|
||||||
guacd_CFLAGS = \
|
guacd_CFLAGS = \
|
||||||
-Werror -Wall -pedantic \
|
-Werror -Wall -pedantic \
|
||||||
@COMMON_INCLUDE@ \
|
@COMMON_INCLUDE@ \
|
||||||
|
@LIBGUACD_INCLUDE@ \
|
||||||
@LIBGUAC_INCLUDE@
|
@LIBGUAC_INCLUDE@
|
||||||
|
|
||||||
guacd_LDADD = \
|
guacd_LDADD = \
|
||||||
@COMMON_LTLIB@ \
|
@COMMON_LTLIB@ \
|
||||||
|
@LIBGUACD_LTLIB@ \
|
||||||
@LIBGUAC_LTLIB@
|
@LIBGUAC_LTLIB@
|
||||||
|
|
||||||
guacd_LDFLAGS = \
|
guacd_LDFLAGS = \
|
||||||
@ -68,12 +66,6 @@ EXTRA_DIST = \
|
|||||||
|
|
||||||
CLEANFILES = $(init_SCRIPTS)
|
CLEANFILES = $(init_SCRIPTS)
|
||||||
|
|
||||||
# SSL support
|
|
||||||
if ENABLE_SSL
|
|
||||||
noinst_HEADERS += socket-ssl.h
|
|
||||||
guacd_SOURCES += socket-ssl.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Init script
|
# Init script
|
||||||
if ENABLE_INIT
|
if ENABLE_INIT
|
||||||
initdir = @init_dir@
|
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