Skip to content

Commit

Permalink
LP-109 use standard way to enable gstreamer support
Browse files Browse the repository at this point in the history
  • Loading branch information
filnet committed Sep 12, 2017
1 parent dffc4de commit ddbabc4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,22 @@ ifeq ($(UNAME), Linux)
GCS_WITH_OSG := 1
GCS_WITH_OSGEARTH := 1
GCS_COPY_OSG := 0
GCS_WITH_GSTREAMER := 0
GCS_COPY_GSTREAMER := 0
else ifeq ($(UNAME), Darwin)
UAVOBJGENERATOR := $(BUILD_DIR)/uavobjgenerator/uavobjgenerator
GCS_WITH_OSG := 1
GCS_WITH_OSGEARTH := 0
GCS_COPY_OSG := 1
GCS_WITH_GSTREAMER := 0
GCS_COPY_GSTREAMER := 0
else ifeq ($(UNAME), Windows)
UAVOBJGENERATOR := $(BUILD_DIR)/uavobjgenerator/uavobjgenerator.exe
GCS_WITH_OSG := 1
GCS_WITH_OSGEARTH := 1
GCS_COPY_OSG := 1
GCS_WITH_GSTREAMER := 1
GCS_COPY_GSTREAMER := 1
endif

export UAVOBJGENERATOR
Expand All @@ -159,6 +165,13 @@ ifeq ($(GCS_WITH_OSG), 1)
endif
endif

ifeq ($(GCS_WITH_GSTREAMER), 1)
GCS_EXTRA_CONF += gstreamer
ifeq ($(GCS_COPY_GSTREAMER), 1)
GCS_EXTRA_CONF += copy_gstreamer
endif
endif

##############################
#
# All targets
Expand Down Expand Up @@ -590,6 +603,10 @@ config_help:
@$(ECHO) " (Needed unless using system versions)"
@$(ECHO) " Options: 0 or 1"
@$(ECHO)
@$(ECHO) " GCS_WITH_GSTREAMER=$(GCS_WITH_GSTREAMER)"
@$(ECHO) " Build the GCS with GStreamer support, this enables the video gadget and extra PFD video views"
@$(ECHO) " Options: 0 or 1"
@$(ECHO)
@$(ECHO) " CCACHE=$(CCACHE)"
@$(ECHO) " A prefix to compiler invocations, usually 'ccache' or 'path/to/ccache'"
@$(ECHO)
Expand Down
2 changes: 1 addition & 1 deletion ground/gcs/src/libs/gstreamer/gstreamer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ SOURCES += \
pipeline.cpp \
videowidget.cpp

equals(copydata, 1):include(copydata.pro)
copy_gstreamer:include(copydata.pro)
4 changes: 1 addition & 3 deletions ground/gcs/src/libs/gstreamer/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
###############################################################################

Add the following line to your build config file:
GCS_EXTRA_CONF += gstreamer
or run this command
make config_append GCS_EXTRA_CONF+=gstreamer
make config_append GCS_WITH_GSTREAMER=1

The build config file is at the root of your source directory.

Expand Down

0 comments on commit ddbabc4

Please sign in to comment.