mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-23 17:38:20 +00:00
Update Makefile with a release target, and an install and install-release target
This commit is contained in:
parent
43aeb840e5
commit
cba3c01703
1 changed files with 26 additions and 1 deletions
27
Makefile
27
Makefile
|
@ -1,6 +1,31 @@
|
||||||
all:
|
PLUGINS_DIR ?= $(shell pkg-config --variable=pluginsdir gstreamer-1.0)
|
||||||
|
|
||||||
|
OS=$(shell uname -s)
|
||||||
|
ifeq ($(OS),Linux)
|
||||||
|
SO_SUFFIX=so
|
||||||
|
else
|
||||||
|
ifeq ($(OS),Darwin)
|
||||||
|
SO_SUFFIX=dylib
|
||||||
|
else
|
||||||
|
# FIXME: Bad hack, how to know we're on Windows?
|
||||||
|
SO_SUFFIX=dll
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: debug
|
||||||
|
|
||||||
|
debug:
|
||||||
cargo build --all
|
cargo build --all
|
||||||
|
|
||||||
|
release:
|
||||||
|
cargo build --all --release
|
||||||
|
|
||||||
|
install: debug
|
||||||
|
install target/debug/*.$(SO_SUFFIX) $(PLUGINS_DIR)
|
||||||
|
|
||||||
|
install-release: release
|
||||||
|
install target/release/*.$(SO_SUFFIX) $(PLUGINS_DIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cargo clean
|
cargo clean
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue