mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 09:16:20 +00:00
exclude webserver from icg by default #943
This commit is contained in:
parent
558c744c28
commit
dc71d7cd19
1
Makefile
1
Makefile
@ -222,7 +222,6 @@ webserver: ${TRICK_LIB_DIR}/libmongoose.a ${TRICK_HOME}/include/mongoose/mongoos
|
||||
$(MAKE) -C ${TRICK_HOME}/trick_source/web/HttpServer
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
TRICK_ICG_EXCLUDE += ${TRICK_HOME}/include/mongoose
|
||||
|
||||
mongoose.h:
|
||||
curl --retry 4 -O https://raw.githubusercontent.com/cesanta/mongoose/6.16/mongoose.h
|
||||
|
@ -4,7 +4,7 @@ PURPOSE: (Represent the state and initial conditions of an http server.)
|
||||
#ifndef WEB_SERVER_H
|
||||
#define WEB_SERVER_H
|
||||
|
||||
#if !defined(SWIG) || defined(USE_MONGOOSE)
|
||||
#ifdef USE_MONGOOSE
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
@ -4,7 +4,7 @@ PURPOSE: (Represent Websocket connection.)
|
||||
#ifndef WEB_SOCKET_SESSION_HH
|
||||
#define WEB_SOCKET_SESSION_HH
|
||||
|
||||
#if !defined(SWIG) || defined(USE_MONGOOSE)
|
||||
#ifdef USE_MONGOOSE
|
||||
#include <string>
|
||||
#ifndef SWIG
|
||||
#include "mongoose/mongoose.h"
|
||||
|
@ -36,8 +36,7 @@
|
||||
#include "trick/RealtimeSync.hh"
|
||||
#include "trick/ITimer.hh"
|
||||
#include "trick/VariableServer.hh"
|
||||
#include "trick/WebServer.hh"
|
||||
#include "trick/WebSocketSession.hh"
|
||||
|
||||
#include "trick/regula_falsi.h"
|
||||
#include "trick/Integrator.hh"
|
||||
#include "trick/IntegAlgorithms.hh"
|
||||
@ -100,4 +99,9 @@
|
||||
#include "trick/lqueue.h"
|
||||
#include "trick/lstack.h"
|
||||
|
||||
#ifdef USE_MONGOOSE
|
||||
#include "trick/WebServer.hh"
|
||||
#include "trick/WebSocketSession.hh"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -174,6 +174,8 @@ endif
|
||||
ifeq (${TRICK_MONGOOSE},1)
|
||||
TRICK_LIBS += -ltrickHTTP ${TRICK_LIB_DIR}/libmongoose.a
|
||||
TRICK_SWIG_FLAGS += -DUSE_MONGOOSE
|
||||
TRICK_SYSTEM_CXXFLAGS += -DUSE_MONGOOSE
|
||||
TRICK_ICG_EXCLUDE += ${TRICK_HOME}/include/mongoose
|
||||
endif
|
||||
|
||||
# We pipe the output of compiler through tee. If the user wanted gcc color, make sure they get it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user