###################################################################### # # TSPSG: TSP Solver and Generator # Copyright (C) 2007-2010 Lёppa # # $Id$ # $URL$ # # This file is part of TSPSG. # ###################################################################### QT += svg TEMPLATE = app TARGET = tspsg DEPENDPATH += . INCLUDEPATH += . VERSOIN = 0.1.2 # A hack to determine whether we have static or dynamic Qt build PRL = $$[QT_INSTALL_LIBS] QtCore.prl include($$join(PRL, "/")) contains(QMAKE_PRL_CONFIG, static) { # We "embed" SVG and JPEG support on static build QTPLUGIN += qjpeg qsvg DEFINES += STATIC_BUILD } CONFIG(release, debug|release) { OBJECTS_DIR = release DESTDIR = release } else { OBJECTS_DIR = debug DESTDIR = debug } # Saving all intermediate files to tmp directory. MOC_DIR = ./tmp RCC_DIR = ./tmp UI_DIR = ./tmp #Include file(s) include(tspsg.pri) # For *nix: # - executable goes to $(INSTALL_ROOT)/bin # - COPYING and README go to $(INSTALL_ROOT)/share/tspsg # - translations go to $(INSTALL_ROOT)/share/tspsg/i18n # - docs (none, yet) go to $(INSTALL_ROOT)/share/doc/tspsg # Usually, $(INSTALL_ROOT) is /usr or /usr/local unix:!symbian { target.path = /bin share.path = /share/tspsg share.files = COPYING README i18n.path = /share/tspsg/i18n i18n.files = i18n/*.qm docs.path = /share/doc/tspsg # docs.files = docs/* apps.path = /share/applications/ apps.files = resources/tspsg.desktop icon.path = /share/pixmaps icon.files = resources/tspsg.png INSTALLS += target i18n docs share icon apps } # For win32: everything goes to $(INSTALL_ROOT)\tspsg and subfolders. # Usually, $(INSTALL_ROOT) is "C:\Program Files" win32 { target.path = "\tspsg" share.path = "\tspsg" share.files = COPYING README i18n.path = "\tspsg\i18n" i18n.files = i18n/*.qm docs.path = "\tspsg\help" # docs.files = docs\* INSTALLS += target i18n docs share RC_FILE = resources/tspsg.rc } # TODO: MacOSX # For wince: we are deploying to \Storage Card\Program Files\tspsg. wince { deploy.path = "\Storage Card\Program Files\tspsg" share.sources = COPYING README share.path = "\Storage Card\Program Files\tspsg" i18n.sources = i18n/*.qm i18n.path = "\Storage Card\Program Files\tspsg\i18n" # docs.sources = docs\* # docs.path = "\Storage Card\Program Files\tspsg\help" DEPLOYMENT += deploy share i18n # docs } # Symbian symbian { share.pkg_prerules = \ "\"README\" - \"\", FILETEXT, TEXTCONTINUE" \ "\"COPYING\" - \"\", FILETEXT, TEXTEXIT" share.sources = COPYING README i18n.sources = i18n/*.qm i18n.path = i18n # docs.sources = docs/* # docs.path = help DEPLOYMENT += share i18n # docs ICON = resources/tspsg.svg appinfo = \ "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),0,1,2" vendorinfo = \ "%{\"l-homes.org\"}" \ ":\"l-homes.org\"" default_deployment.pkg_prerules = appinfo vendorinfo DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0" }