Skip to content

Commit

Permalink
Merge pull request #92 from k13-engineering/feature/pkg-config
Browse files Browse the repository at this point in the history
Use pkg-config on linux to resolve ffmpeg link dependencies
  • Loading branch information
scriptorian committed Nov 12, 2022
2 parents d5f006c + fb69649 commit 87a6722
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
]
}],
['OS!="win" and OS!="linux"', {
"link_settings": {
"libraries": [
"-lavcodec",
Expand Down Expand Up @@ -74,6 +76,18 @@
}
]
}],
['OS=="linux"', {
"libraries": [
"<!(pkg-config --libs libavcodec)",
"<!(pkg-config --libs libavdevice)",
"<!(pkg-config --libs libavfilter)",
"<!(pkg-config --libs libavformat)",
"<!(pkg-config --libs libavutil)",
"<!(pkg-config --libs libpostproc)",
"<!(pkg-config --libs libswresample)",
"<!(pkg-config --libs libswscale)"
]
}],
['OS=="mac"', {
"include_dirs" : [
"/opt/homebrew/Cellar/ffmpeg/5.0/include"
Expand Down

0 comments on commit 87a6722

Please sign in to comment.