blob: fe44cf8ef836894f205eb04258d809f297673056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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
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:
cargo clean
|