Browse Source

feat: install icons with make install on unix

qmake doesn't have a straightforward way to change filenames when installing
files so I moved them into subfolders.

issue #2903
pull/3101/head
Jason Papakostas 10 years ago
parent
commit
218228b696
  1. 0
      img/icons/128x128/qtox.png
  2. 0
      img/icons/14x14/qtox.png
  3. 0
      img/icons/16x16/qtox.png
  4. 0
      img/icons/192x192/qtox.png
  5. 0
      img/icons/22x22/qtox.png
  6. 0
      img/icons/24x24/qtox.png
  7. 0
      img/icons/256x256/qtox.png
  8. 0
      img/icons/32x32/qtox.png
  9. 0
      img/icons/36x36/qtox.png
  10. 0
      img/icons/48x48/qtox.png
  11. 0
      img/icons/512x512/qtox.png
  12. 0
      img/icons/64x64/qtox.png
  13. 0
      img/icons/72x72/qtox.png
  14. 0
      img/icons/96x96/qtox.png
  15. 11
      qtox.pro

0
img/icons/qtox-128x128.png → img/icons/128x128/qtox.png

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
img/icons/qtox-14x14.png → img/icons/14x14/qtox.png

Before

Width:  |  Height:  |  Size: 480 B

After

Width:  |  Height:  |  Size: 480 B

0
img/icons/qtox-16x16.png → img/icons/16x16/qtox.png

Before

Width:  |  Height:  |  Size: 563 B

After

Width:  |  Height:  |  Size: 563 B

0
img/icons/qtox-192x192.png → img/icons/192x192/qtox.png

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

0
img/icons/qtox-22x22.png → img/icons/22x22/qtox.png

Before

Width:  |  Height:  |  Size: 689 B

After

Width:  |  Height:  |  Size: 689 B

0
img/icons/qtox-24x24.png → img/icons/24x24/qtox.png

Before

Width:  |  Height:  |  Size: 784 B

After

Width:  |  Height:  |  Size: 784 B

0
img/icons/qtox-256x256.png → img/icons/256x256/qtox.png

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

0
img/icons/qtox-32x32.png → img/icons/32x32/qtox.png

Before

Width:  |  Height:  |  Size: 937 B

After

Width:  |  Height:  |  Size: 937 B

0
img/icons/qtox-36x36.png → img/icons/36x36/qtox.png

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 978 B

0
img/icons/qtox-48x48.png → img/icons/48x48/qtox.png

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

0
img/icons/qtox-512x512.png → img/icons/512x512/qtox.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
img/icons/qtox-64x64.png → img/icons/64x64/qtox.png

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
img/icons/qtox-72x72.png → img/icons/72x72/qtox.png

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
img/icons/qtox-96x96.png → img/icons/96x96/qtox.png

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

11
qtox.pro

@ -187,6 +187,17 @@ win32 { @@ -187,6 +187,17 @@ win32 {
desktop.files += qTox.desktop
INSTALLS += target desktop
# Install application icons according to the XDG spec
ICON_SIZES = 14 16 22 24 32 36 48 64 72 96 128 192 256 512
for(icon_size, ICON_SIZES) {
icon_$${icon_size}.files = img/icons/$${icon_size}x$${icon_size}/qtox.png
icon_$${icon_size}.path = $$DATADIR/icons/hicolor/$${icon_size}x$${icon_size}/apps
INSTALLS += icon_$${icon_size}
}
icon_scalable.files = img/icons/qtox.svg
icon_scalable.path = $$DATADIR/icons/hicolor/scalable/apps
INSTALLS += icon_scalable
# If we're building a package, static link libtox[core,av] and libsodium, since they are not provided by any package
contains(STATICPKG, YES) {
LIBS += -L$$PWD/libs/lib/ -lopus -lvpx -lopenal -Wl,-Bstatic -ltoxcore -ltoxav -ltoxencryptsave -ltoxdns -lsodium -lavformat -lavdevice -lavcodec -lavutil -lswscale -lz -Wl,-Bdynamic

Loading…
Cancel
Save