@pproenca/webcodecs-ffmpeg-darwin-x64-non-free 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/link-flags.js +14 -0
  2. package/package.json +4 -2
package/link-flags.js ADDED
@@ -0,0 +1,14 @@
1
+ // link-flags.js - Generated by populate-artifacts.sh
2
+ const path = require('path');
3
+
4
+ const libDir = path.join(__dirname, 'lib');
5
+
6
+ const ffmpeg = '-lavfilter -lpostproc -lswscale -lswresample -lavformat -lavdevice -lavcodec -lavutil'.split(' ');
7
+ const codecs = '-lx265 -lx264 -lsvtav1 -laom -ldav1d -lvpx -lopus -lvorbisenc -lvorbis -logg -lmp3lame'.split(' ');
8
+ const system = '-lpthread -lm -lz -lbz2 -liconv -lc++'.split(' ');
9
+ const frameworks = '-framework VideoToolbox -framework AudioToolbox -framework CoreMedia -framework CoreVideo -framework CoreFoundation -framework CoreServices -framework Security'.split(' ').filter(Boolean);
10
+
11
+ module.exports = {
12
+ libDir,
13
+ flags: [`-L${libDir}`, ...ffmpeg, ...codecs, ...system, ...frameworks].join(' ')
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pproenca/webcodecs-ffmpeg-darwin-x64-non-free",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Prebuilt FFmpeg with all codecs including GPL x264/x265 for darwin-x64",
5
5
  "author": "Pedro Proenca",
6
6
  "homepage": "https://github.com/pproenca/webcodecs-ffmpeg",
@@ -16,12 +16,14 @@
16
16
  },
17
17
  "files": [
18
18
  "lib",
19
- "versions.json"
19
+ "versions.json",
20
+ "link-flags.js"
20
21
  ],
21
22
  "type": "commonjs",
22
23
  "exports": {
23
24
  "./lib": "./lib/index.js",
24
25
  "./pkgconfig": "./lib/pkgconfig/index.js",
26
+ "./link-flags": "./link-flags.js",
25
27
  "./package": "./package.json",
26
28
  "./versions": "./versions.json"
27
29
  },