Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile - gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c06c535c20885e977226ddc0ff006661a0e9fcc (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
32
33
34
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

ifeq ($(DEBUG),1)
  CARGO_FLAGS=
  BUILD_DIR=target/debug
else
  CARGO_FLAGS=--release
  BUILD_DIR=target/release
endif

all: build

build:
	cargo build --all $(CARGO_FLAGS)

install: build
	install -d $(DESTDIR)$(PLUGINS_DIR)
	install -m 755 $(BUILD_DIR)/*.$(SO_SUFFIX) $(DESTDIR)$(PLUGINS_DIR)

clean:
	cargo clean