1
0

qconf-cfg.sh 599 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0-only
  3. PKG="Qt5Core Qt5Gui Qt5Widgets"
  4. if [ -z "$(command -v pkg-config)" ]; then
  5. echo >&2 "*"
  6. echo >&2 "* 'make xconfig' requires 'pkg-config'. Please install it."
  7. echo >&2 "*"
  8. exit 1
  9. fi
  10. if pkg-config --exists $PKG; then
  11. echo cflags=\"-std=c++11 -fPIC $(pkg-config --cflags $PKG)\"
  12. echo libs=\"$(pkg-config --libs $PKG)\"
  13. echo moc=\"$(pkg-config --variable=host_bins Qt5Core)/moc\"
  14. exit 0
  15. fi
  16. echo >&2 "*"
  17. echo >&2 "* Could not find Qt5 via pkg-config."
  18. echo >&2 "* Please install Qt5 and make sure it's in PKG_CONFIG_PATH"
  19. echo >&2 "*"
  20. exit 1