summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-02-28 13:04:53 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-08 10:15:49 +0000
commit7773a412e5fd072a4edb1e957f2857130ea07a3c (patch)
treec7c7470c9f4e22a2c59fb758a84d3258e9b6e3ff /configure.json
parenta0e0cbc1f39aa25d372a9468014f2a3dd585959b (diff)
Move opus, webp and ffmpeg to new configure system
Use the new configure system to control if we are using system opus, webp and ffmpeg libraries. Change-Id: I53db66ca1668fc939a51bf7811f967468456b924 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'configure.json')
-rw-r--r--configure.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/configure.json b/configure.json
index c91c2e6bf..ad9fd117c 100644
--- a/configure.json
+++ b/configure.json
@@ -10,6 +10,9 @@
"options": {
"alsa": "boolean",
"embedded": "boolean",
+ "ffmpeg": { "type": "enum", "name": "system-ffmpeg", "values": { "system": "yes", "qt": "no" } },
+ "opus": { "type": "enum", "name": "system-opus", "values": { "system": "yes", "qt": "no" } },
+ "webp": { "type": "enum", "name": "system-webp", "values": { "system": "yes", "qt": "no" } },
"pepper-plugins": "boolean",
"printing-and-pdf": "boolean",
"proprietary-codecs": "boolean",
@@ -32,6 +35,24 @@
"sources": [
{ "type": "pkgConfig", "args": "libpulse >= 0.9.10 libpulse-mainloop-glib" }
]
+ },
+ "ffmpeg": {
+ "label": "libavcodec libavformat libavutil",
+ "sources": [
+ { "type": "pkgConfig", "args": "libavcodec libavformat libavutil" }
+ ]
+ },
+ "opus": {
+ "label": "opus",
+ "sources": [
+ { "type": "pkgConfig", "args": "opus" }
+ ]
+ },
+ "webp": {
+ "label": "libwebp and libwebpdemux",
+ "sources": [
+ { "type": "pkgConfig", "args": "libwebp libwebpdemux" }
+ ]
}
},
@@ -99,6 +120,24 @@
"purpose": "Enables WebRTC support",
"output": [ "privateFeature" ]
},
+ "system-webp": {
+ "label": "libwebp and libwebpdemux",
+ "autoDetect": "config.unix",
+ "condition": "libs.webp",
+ "output": [ "privateFeature" ]
+ },
+ "system-opus": {
+ "label": "Opus",
+ "autoDetect": "config.unix",
+ "condition": "libs.opus",
+ "output": [ "privateFeature" ]
+ },
+ "system-ffmpeg": {
+ "label": "ffmpeg",
+ "autoDetect": false,
+ "condition": "libs.ffmpeg && features.system-opus && features.system-webp",
+ "output": [ "privateFeature" ]
+ },
"system-ninja": {
"label": "Using system ninja",
"condition": "tests.ninja",
@@ -132,6 +171,15 @@
"type": "feature",
"args": "pulseaudio",
"condition": "config.unix"
+ },
+ {
+ "section": "System libraries",
+ "condition": "config.unix",
+ "entries": [
+ "system-webp",
+ "system-opus",
+ "system-ffmpeg"
+ ]
}
]
}