Skip to content

Commit 672a62a

Browse files
author
Sebastiano Merlino
committed
Modified in order to move httpserver.h to httpserver.hpp
1 parent 9535a42 commit 672a62a

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ OLD_CXXFLAGS=$CXXFLAGS
2929
AC_PROG_LIBTOOL
3030
AC_PROG_CC
3131
AC_PROG_CXX
32+
AC_PROG_LN_S
3233
CXXFLAGS=$OLD_CXXFLAGS
3334
AC_LANG([C++])
3435

src/Makefile.am

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ METASOURCES = AUTO
2121
lib_LTLIBRARIES = libhttpserver.la
2222
libhttpserver_la_SOURCES = string_utilities.cpp Webserver.cpp HttpUtils.cpp HttpEndpoint.cpp HttpRequest.cpp HttpResponse.cpp HttpResource.cpp
2323
noinst_HEADERS = httpserver/string_utilities.hpp gettext.h
24-
nobase_include_HEADERS = httpserver.h httpserver/Webserver.hpp httpserver/HttpUtils.hpp httpserver/HttpEndpoint.hpp httpserver/HttpRequest.hpp httpserver/HttpResponse.hpp httpserver/HttpResource.hpp
24+
nobase_include_HEADERS = httpserver.hpp httpserver/Webserver.hpp httpserver/HttpUtils.hpp httpserver/HttpEndpoint.hpp httpserver/HttpRequest.hpp httpserver/HttpResponse.hpp httpserver/HttpResource.hpp
2525
AM_CXXFLAGS += -fPIC -Wall
2626
libhttpserver_la_LIBADD = -lmicrohttpd
2727
libhttpserver_la_LDFLAGS =
28+
29+
install-exec-hook:
30+
(cd $(DESTDIR)$(includedir) && $(LN_S) httpserver.hpp httpserverpp)
31+
32+
uninstall-hook:
33+
(cd $(DESTDIR)$(includedir) && rm -f httpserverpp)

src/autogen_helpers/support_command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
# License along with this library; if not, write to the Free Software
1717
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
#
19-
$(srcdir)/WebserverWrap.cpp $(srcdir)/WebserverWrap.h: $(srcdir)/../httpserver.h $(srcdir)/../httpserver/Webserver.hpp $(srcdir)/../httpserver/HttpResponse.hpp $(srcdir)/../httpserver/HttpRequest.hpp $(srcdir)/../httpserver/HttpResource.hpp $(srcdir)/../httpserver/HttpEndpoint.hpp $(srcdir)/../httpserver/HttpUtils.hpp
20-
swig -c++ -$(language) $(swigoptions) -o $(srcdir)/WebserverWrap.cpp -I$(srcdir)/.. -I$(srcdir)/../httpserver $(srcdir)/../httpserver.h
19+
$(srcdir)/WebserverWrap.cpp $(srcdir)/WebserverWrap.h: $(srcdir)/../httpserver.hpp $(srcdir)/../httpserver/Webserver.hpp $(srcdir)/../httpserver/HttpResponse.hpp $(srcdir)/../httpserver/HttpRequest.hpp $(srcdir)/../httpserver/HttpResource.hpp $(srcdir)/../httpserver/HttpEndpoint.hpp $(srcdir)/../httpserver/HttpUtils.hpp
20+
swig -c++ -$(language) $(swigoptions) -o $(srcdir)/WebserverWrap.cpp -I$(srcdir)/.. -I$(srcdir)/../httpserver $(srcdir)/../httpserver.hpp

src/httpserver.h renamed to src/httpserver.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _httpserver_h_
2-
#define _httpserver_h_
1+
#ifndef _httpserver_hpp_
2+
#define _httpserver_hpp_
33

44
#ifdef SWIG
55
%include "std_string.i"

test/Test.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef _TEST_HPP_
22
#define _TEST_HPP_
3-
#include <httpserver.h>
3+
#include <httpserver.hpp>
44

55
using namespace httpserver;
66

0 commit comments

Comments
 (0)