mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Remove White spaces in .pro
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2103 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
84440d63aa
commit
a38163c737
356
qelectrotech.pro
356
qelectrotech.pro
@ -1,178 +1,178 @@
|
||||
######################################################################
|
||||
# Fichier projet de QElectroTech #
|
||||
######################################################################
|
||||
|
||||
# Chemins utilises pour la compilation et l'installation de QET
|
||||
unix {
|
||||
# Chemins UNIX
|
||||
COMPIL_PREFIX = '/usr/local/'
|
||||
INSTALL_PREFIX = '/usr/local/'
|
||||
QET_BINARY_PATH = 'bin/'
|
||||
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
|
||||
QET_COMMON_TBT_PATH = 'share/qelectrotech/titleblocks/'
|
||||
QET_LANG_PATH = 'share/qelectrotech/lang/'
|
||||
QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
|
||||
QET_LICENSE_PATH = 'doc/qelectrotech/'
|
||||
QET_MIME_XML_PATH = '../share/mime/application/'
|
||||
QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
|
||||
QET_MIME_PACKAGE_PATH = '../share/mime/packages/'
|
||||
QET_DESKTOP_PATH = 'share/applications/'
|
||||
QET_ICONS_PATH = 'share/icons/hicolor/'
|
||||
QET_MAN_PATH = 'man/'
|
||||
}
|
||||
win32 {
|
||||
# Chemins Windows
|
||||
COMPIL_PREFIX = './'
|
||||
INSTALL_PREFIX = './'
|
||||
QET_BINARY_PATH = './'
|
||||
QET_COMMON_COLLECTION_PATH = 'elements/'
|
||||
QET_COMMON_TBT_PATH = 'titleblocks/'
|
||||
QET_LANG_PATH = 'lang/'
|
||||
QET_LICENSE_PATH = './'
|
||||
}
|
||||
macx {
|
||||
# Chemins MacOS X
|
||||
COMPIL_PREFIX = './'
|
||||
INSTALL_PREFIX = '/usr/local/'
|
||||
QET_BINARY_PATH = 'bin/'
|
||||
QET_COMMON_COLLECTION_PATH = '../Resources/elements/'
|
||||
QET_COMMON_TBT_PATH = '../Resources/titleblocks/'
|
||||
QET_LANG_PATH = '../Resources/lang/'
|
||||
QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
|
||||
QET_LICENSE_PATH = 'doc/qelectrotech/'
|
||||
QET_MIME_XML_PATH = '../share/mime/application/'
|
||||
QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
|
||||
QET_DESKTOP_PATH = 'share/applications/'
|
||||
QET_ICONS_PATH = 'share/icons/hicolor/'
|
||||
QET_MAN_PATH = 'man/'
|
||||
}
|
||||
|
||||
# Commenter la ligne ci-dessous pour desactiver l'option --common-elements-dir
|
||||
DEFINES += QET_ALLOW_OVERRIDE_CED_OPTION
|
||||
|
||||
# Comment the line below to disable the --common-tbt-dir option
|
||||
DEFINES += QET_ALLOW_OVERRIDE_CTBTD_OPTION
|
||||
|
||||
# Commenter la ligne ci-dessous pour desactiver l'option --config-dir
|
||||
DEFINES += QET_ALLOW_OVERRIDE_CD_OPTION
|
||||
|
||||
######################################################################
|
||||
|
||||
TEMPLATE = app
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += sources sources/editor sources/titleblock
|
||||
|
||||
# Fichiers sources
|
||||
HEADERS += sources/*.h sources/ui/*.h sources/editor/*.h sources/titleblock/*.h sources/richtext/*.h
|
||||
SOURCES += sources/*.cpp sources/editor/*.cpp sources/titleblock/*.cpp sources/richtext/*.cpp sources/ui/*.cpp
|
||||
|
||||
# Liste des fichiers qui seront incorpores au binaire en tant que ressources Qt
|
||||
RESOURCES += qelectrotech.qrc
|
||||
|
||||
# Liste des ressources Windows
|
||||
RC_FILE = ico/windows_icon/qelectrotech.rc
|
||||
|
||||
# Fichiers de traduction qui seront installes
|
||||
TRANSLATIONS += lang/qet_en.ts lang/qet_es.ts lang/qet_fr.ts lang/qet_ru.ts lang/qet_pt.ts lang/qet_cs.ts lang/qet_pl.ts lang/qet_de.ts lang/qet_ro.ts lang/qet_it.ts
|
||||
|
||||
# Modules Qt utilises par l'application
|
||||
QT += xml svg network sql
|
||||
|
||||
# UI DESIGNER FILES AND GENERATION SOURCES FILES
|
||||
FORMS += sources/richtext/addlinkdialog.ui sources/ui/*.ui
|
||||
UI_SOURCES_DIR = sources/ui/
|
||||
UI_HEADERS_DIR = sources/ui/
|
||||
|
||||
# Configuration de la compilation
|
||||
CONFIG += debug_and_release warn_on
|
||||
|
||||
# Nom du binaire genere par la compilation
|
||||
TARGET = qelectrotech
|
||||
|
||||
# Ajustement des bibliotheques utilisees lors de l'edition des liens
|
||||
unix:QMAKE_LIBS_THREAD -= -lpthread
|
||||
|
||||
# Description de l'installation
|
||||
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
|
||||
|
||||
elements.path = $$join(INSTALL_PREFIX,,,$${QET_COMMON_COLLECTION_PATH})
|
||||
elements.files = elements/*
|
||||
|
||||
tbt.path = $$join(INSTALL_PREFIX,,,$${QET_COMMON_TBT_PATH})
|
||||
tbt.files = titleblocks/*
|
||||
|
||||
lang.path = $$join(INSTALL_PREFIX,,,$${QET_LANG_PATH})
|
||||
lang.files = $$replace(TRANSLATIONS, '.ts', '.qm')
|
||||
|
||||
examples.path = $$join(INSTALL_PREFIX,,,$${QET_EXAMPLES_PATH})
|
||||
examples.files = examples/*
|
||||
|
||||
copyright.path = $$join(INSTALL_PREFIX,,,$${QET_LICENSE_PATH})
|
||||
copyright.files = LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog
|
||||
|
||||
mime_xml.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_XML_PATH})
|
||||
mime_xml.files = misc/x-qet-*.xml
|
||||
|
||||
mime_desktop.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_DESKTOP_PATH})
|
||||
mime_desktop.files = misc/x-qet-*.desktop
|
||||
|
||||
mime_package.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_PACKAGE_PATH})
|
||||
mime_package.files = misc/qelectrotech.xml
|
||||
|
||||
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
|
||||
desktop.files = misc/qelectrotech.desktop
|
||||
|
||||
icons.path = $$join(INSTALL_PREFIX,,,$${QET_ICONS_PATH})
|
||||
icons.files = ico/oxygen-icons/16x16 \
|
||||
ico/oxygen-icons/22x22 \
|
||||
ico/oxygen-icons/32x32 \
|
||||
ico/oxygen-icons/48x48 \
|
||||
ico/oxygen-icons/64x64 \
|
||||
ico/oxygen-icons/128x128 \
|
||||
ico/oxygen-icons/256x256
|
||||
|
||||
man.path = $$join(INSTALL_PREFIX,,,$${QET_MAN_PATH})
|
||||
man.files = man/files/*
|
||||
man.extra = sh man/compress_man_pages.sh
|
||||
|
||||
# L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
|
||||
INSTALLS += target elements tbt lang copyright
|
||||
# Sous Unix, on installe egalement l'icone, un fichier .desktop, des fichiers mime et les pages de manuel
|
||||
unix {
|
||||
INSTALLS += desktop mime_xml mime_desktop mime_package icons man examples
|
||||
}
|
||||
|
||||
# Options de compilation communes a Unix et MacOS X
|
||||
unix {
|
||||
# Chemin des fichiers de traduction ; par defaut : lang/ dans le repertoire d'execution
|
||||
DEFINES += QET_LANG_PATH=$$join(COMPIL_PREFIX,,,$${QET_LANG_PATH})
|
||||
|
||||
# Chemin de la collection commune ; par defaut : elements/ dans le repertoire d'execution
|
||||
DEFINES += QET_COMMON_COLLECTION_PATH=$$join(COMPIL_PREFIX,,,$${QET_COMMON_COLLECTION_PATH})
|
||||
|
||||
DEFINES += QET_COMMON_TBT_PATH=$$join(COMPIL_PREFIX,,,$${QET_COMMON_TBT_PATH})
|
||||
}
|
||||
|
||||
# Options de compilation specifiques a MacOS X
|
||||
macx {
|
||||
# les chemins definis precedemment sont relatifs au dossier contenant le binaire executable
|
||||
DEFINES += QET_LANG_PATH_RELATIVE_TO_BINARY_PATH
|
||||
DEFINES += QET_COMMON_COLLECTION_PATH_RELATIVE_TO_BINARY_PATH
|
||||
}
|
||||
|
||||
# Compilers-specific options
|
||||
unix {
|
||||
QMAKE_COPY_DIR = 'cp -f -r --preserve=timestamps'
|
||||
*-g++* {
|
||||
system(g++ -v --help 2>&1 | grep -q fipa-sra) {
|
||||
QMAKE_CXXFLAGS += -fno-ipa-sra
|
||||
}
|
||||
}
|
||||
}
|
||||
win32 {
|
||||
*-g++* {
|
||||
system(g++ -v --help 2>&1 | find \"fipa-sra\" >NUL) {
|
||||
QMAKE_CXXFLAGS += -fno-ipa-sra
|
||||
}
|
||||
}
|
||||
}
|
||||
######################################################################
|
||||
# Fichier projet de QElectroTech #
|
||||
######################################################################
|
||||
|
||||
# Chemins utilises pour la compilation et l'installation de QET
|
||||
unix {
|
||||
# Chemins UNIX
|
||||
COMPIL_PREFIX = '/usr/local/'
|
||||
INSTALL_PREFIX = '/usr/local/'
|
||||
QET_BINARY_PATH = 'bin/'
|
||||
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
|
||||
QET_COMMON_TBT_PATH = 'share/qelectrotech/titleblocks/'
|
||||
QET_LANG_PATH = 'share/qelectrotech/lang/'
|
||||
QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
|
||||
QET_LICENSE_PATH = 'doc/qelectrotech/'
|
||||
QET_MIME_XML_PATH = '../share/mime/application/'
|
||||
QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
|
||||
QET_MIME_PACKAGE_PATH = '../share/mime/packages/'
|
||||
QET_DESKTOP_PATH = 'share/applications/'
|
||||
QET_ICONS_PATH = 'share/icons/hicolor/'
|
||||
QET_MAN_PATH = 'man/'
|
||||
}
|
||||
win32 {
|
||||
# Chemins Windows
|
||||
COMPIL_PREFIX = './'
|
||||
INSTALL_PREFIX = './'
|
||||
QET_BINARY_PATH = './'
|
||||
QET_COMMON_COLLECTION_PATH = 'elements/'
|
||||
QET_COMMON_TBT_PATH = 'titleblocks/'
|
||||
QET_LANG_PATH = 'lang/'
|
||||
QET_LICENSE_PATH = './'
|
||||
}
|
||||
macx {
|
||||
# Chemins MacOS X
|
||||
COMPIL_PREFIX = './'
|
||||
INSTALL_PREFIX = '/usr/local/'
|
||||
QET_BINARY_PATH = 'bin/'
|
||||
QET_COMMON_COLLECTION_PATH = '../Resources/elements/'
|
||||
QET_COMMON_TBT_PATH = '../Resources/titleblocks/'
|
||||
QET_LANG_PATH = '../Resources/lang/'
|
||||
QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
|
||||
QET_LICENSE_PATH = 'doc/qelectrotech/'
|
||||
QET_MIME_XML_PATH = '../share/mime/application/'
|
||||
QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
|
||||
QET_DESKTOP_PATH = 'share/applications/'
|
||||
QET_ICONS_PATH = 'share/icons/hicolor/'
|
||||
QET_MAN_PATH = 'man/'
|
||||
}
|
||||
|
||||
# Commenter la ligne ci-dessous pour desactiver l'option --common-elements-dir
|
||||
DEFINES += QET_ALLOW_OVERRIDE_CED_OPTION
|
||||
|
||||
# Comment the line below to disable the --common-tbt-dir option
|
||||
DEFINES += QET_ALLOW_OVERRIDE_CTBTD_OPTION
|
||||
|
||||
# Commenter la ligne ci-dessous pour desactiver l'option --config-dir
|
||||
DEFINES += QET_ALLOW_OVERRIDE_CD_OPTION
|
||||
|
||||
######################################################################
|
||||
|
||||
TEMPLATE = app
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += sources sources/editor sources/titleblock
|
||||
|
||||
# Fichiers sources
|
||||
HEADERS += sources/*.h sources/ui/*.h sources/editor/*.h sources/titleblock/*.h sources/richtext/*.h
|
||||
SOURCES += sources/*.cpp sources/editor/*.cpp sources/titleblock/*.cpp sources/richtext/*.cpp sources/ui/*.cpp
|
||||
|
||||
# Liste des fichiers qui seront incorpores au binaire en tant que ressources Qt
|
||||
RESOURCES += qelectrotech.qrc
|
||||
|
||||
# Liste des ressources Windows
|
||||
RC_FILE = ico/windows_icon/qelectrotech.rc
|
||||
|
||||
# Fichiers de traduction qui seront installes
|
||||
TRANSLATIONS += lang/qet_en.ts lang/qet_es.ts lang/qet_fr.ts lang/qet_ru.ts lang/qet_pt.ts lang/qet_cs.ts lang/qet_pl.ts lang/qet_de.ts lang/qet_ro.ts lang/qet_it.ts
|
||||
|
||||
# Modules Qt utilises par l'application
|
||||
QT += xml svg network sql
|
||||
|
||||
# UI DESIGNER FILES AND GENERATION SOURCES FILES
|
||||
FORMS += sources/richtext/addlinkdialog.ui sources/ui/*.ui
|
||||
UI_SOURCES_DIR = sources/ui/
|
||||
UI_HEADERS_DIR = sources/ui/
|
||||
|
||||
# Configuration de la compilation
|
||||
CONFIG += debug_and_release warn_on
|
||||
|
||||
# Nom du binaire genere par la compilation
|
||||
TARGET = qelectrotech
|
||||
|
||||
# Ajustement des bibliotheques utilisees lors de l'edition des liens
|
||||
unix:QMAKE_LIBS_THREAD -= -lpthread
|
||||
|
||||
# Description de l'installation
|
||||
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
|
||||
|
||||
elements.path = $$join(INSTALL_PREFIX,,,$${QET_COMMON_COLLECTION_PATH})
|
||||
elements.files = elements/*
|
||||
|
||||
tbt.path = $$join(INSTALL_PREFIX,,,$${QET_COMMON_TBT_PATH})
|
||||
tbt.files = titleblocks/*
|
||||
|
||||
lang.path = $$join(INSTALL_PREFIX,,,$${QET_LANG_PATH})
|
||||
lang.files = $$replace(TRANSLATIONS, '.ts', '.qm')
|
||||
|
||||
examples.path = $$join(INSTALL_PREFIX,,,$${QET_EXAMPLES_PATH})
|
||||
examples.files = examples/*
|
||||
|
||||
copyright.path = $$join(INSTALL_PREFIX,,,$${QET_LICENSE_PATH})
|
||||
copyright.files = LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog
|
||||
|
||||
mime_xml.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_XML_PATH})
|
||||
mime_xml.files = misc/x-qet-*.xml
|
||||
|
||||
mime_desktop.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_DESKTOP_PATH})
|
||||
mime_desktop.files = misc/x-qet-*.desktop
|
||||
|
||||
mime_package.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_PACKAGE_PATH})
|
||||
mime_package.files = misc/qelectrotech.xml
|
||||
|
||||
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
|
||||
desktop.files = misc/qelectrotech.desktop
|
||||
|
||||
icons.path = $$join(INSTALL_PREFIX,,,$${QET_ICONS_PATH})
|
||||
icons.files = ico/oxygen-icons/16x16 \
|
||||
ico/oxygen-icons/22x22 \
|
||||
ico/oxygen-icons/32x32 \
|
||||
ico/oxygen-icons/48x48 \
|
||||
ico/oxygen-icons/64x64 \
|
||||
ico/oxygen-icons/128x128 \
|
||||
ico/oxygen-icons/256x256
|
||||
|
||||
man.path = $$join(INSTALL_PREFIX,,,$${QET_MAN_PATH})
|
||||
man.files = man/files/*
|
||||
man.extra = sh man/compress_man_pages.sh
|
||||
|
||||
# L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
|
||||
INSTALLS += target elements tbt lang copyright
|
||||
# Sous Unix, on installe egalement l'icone, un fichier .desktop, des fichiers mime et les pages de manuel
|
||||
unix {
|
||||
INSTALLS += desktop mime_xml mime_desktop mime_package icons man examples
|
||||
}
|
||||
|
||||
# Options de compilation communes a Unix et MacOS X
|
||||
unix {
|
||||
# Chemin des fichiers de traduction ; par defaut : lang/ dans le repertoire d'execution
|
||||
DEFINES += QET_LANG_PATH=$$join(COMPIL_PREFIX,,,$${QET_LANG_PATH})
|
||||
|
||||
# Chemin de la collection commune ; par defaut : elements/ dans le repertoire d'execution
|
||||
DEFINES += QET_COMMON_COLLECTION_PATH=$$join(COMPIL_PREFIX,,,$${QET_COMMON_COLLECTION_PATH})
|
||||
|
||||
DEFINES += QET_COMMON_TBT_PATH=$$join(COMPIL_PREFIX,,,$${QET_COMMON_TBT_PATH})
|
||||
}
|
||||
|
||||
# Options de compilation specifiques a MacOS X
|
||||
macx {
|
||||
# les chemins definis precedemment sont relatifs au dossier contenant le binaire executable
|
||||
DEFINES += QET_LANG_PATH_RELATIVE_TO_BINARY_PATH
|
||||
DEFINES += QET_COMMON_COLLECTION_PATH_RELATIVE_TO_BINARY_PATH
|
||||
}
|
||||
|
||||
# Compilers-specific options
|
||||
unix {
|
||||
QMAKE_COPY_DIR = 'cp -f -r --preserve=timestamps'
|
||||
*-g++* {
|
||||
system(g++ -v --help 2>&1 | grep -q fipa-sra) {
|
||||
QMAKE_CXXFLAGS += -fno-ipa-sra
|
||||
}
|
||||
}
|
||||
}
|
||||
win32 {
|
||||
*-g++* {
|
||||
system(g++ -v --help 2>&1 | find \"fipa-sra\" >NUL) {
|
||||
QMAKE_CXXFLAGS += -fno-ipa-sra
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user