1
0
Fork 0
flightgear/src/Network/http/CMakeLists.txt
Torsten Dreyer cc6178a9f3 Expose FlightHistory as a http service
usage:
GET http://localhost:8080/flighthistory/track.json
retrieves track as JSON data
{
  flightHistory: [
    {
      latitude: (number),
      longitude: (number),
      altitude: (number)
    }
  ]
}

GET http://localhost:8080/flighthistory/track.kml
retrieves track as KML path
optional request parameter:
LineColor=(hex encoded rgba color)
LineWidth=(line width in pixel)
PolyColor=(hex encoded rgba color)
interval=(number of seconds to auto-refresh)
2015-02-23 16:33:58 +01:00

36 lines
684 B
CMake

include(FlightGearComponent)
set(SOURCES
httpd.cxx
ScreenshotUriHandler.cxx
PropertyUriHandler.cxx
JsonUriHandler.cxx
FlightHistoryUriHandler.cxx
PkgUriHandler.cxx
RunUriHandler.cxx
NavdbUriHandler.cxx
PropertyChangeWebsocket.cxx
PropertyChangeObserver.cxx
jsonprops.cxx
SimpleDOM.cxx
)
set(HEADERS
urihandler.hxx
httpd.hxx
ScreenshotUriHandler.hxx
PropertyUriHandler.hxx
JsonUriHandler.hxx
FlightHistoryUriHandler.hxx
PkgUriHandler.hxx
RunUriHandler.hxx
NavdbUriHandler.hxx
HTTPRequest.hxx
Websocket.hxx
PropertyChangeWebsocket.hxx
PropertyChangeObserver.hxx
jsonprops.hxx
SimpleDOM.hxx
)
flightgear_component(Http "${SOURCES}" "${HEADERS}")