jitsi / jitsi

Jitsi is an audio/video and chat communicator that supports protocols such as SIP, XMPP/Jabber, IRC and many other useful features.
https://desktop.jitsi.org
Apache License 2.0
4.09k stars 964 forks source link

src/native/build.xml should use pkg-config #419

Open lukateras opened 6 years ago

lukateras commented 6 years ago

Currently ldflags are hardcoded in src/native/build.xml. It'd be great if Jitsi could use pkg-config instead.

lukateras commented 6 years ago

If it proves useful, I've wrote a shell function that can transform pkg-config output to XML compatible with src/native/build.xml:

pkgconfig2Ant() {
  for lib in $@; do
    for cflag in $(pkg-config --cflags $lib); do
      echo "<compilerarg value=\"$cflag\" />"
    done
    for ldflag in $(pkg-config --libs $lib); do
      echo "<linkerarg value=\"$ldflag\" location=\"end\" />"
    done
  done
}
lukateras commented 6 years ago

ibauersachs added platform:Linux label

This also should apply to macOS build, if possible.