Implementation de 'make install'

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@199 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-10-28 22:22:56 +00:00
parent e1716f46cf
commit 3d64380a96
2 changed files with 41 additions and 18 deletions

View File

@@ -1,12 +1,25 @@
######################################################################
# Automatically generated by qmake (2.01a) ven. sept. 21 14:11:20 2007
# Fichier projet de QElectroTech #
######################################################################
# Chemins utilises pour la compilation et l'installation de QET
COMPIL_PREFIX = '/usr/local/'
INSTALL_PREFIX = '/usr/local/'
QET_BINARY_PATH = 'bin/'
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
QET_LANG_PATH = 'share/qelectrotech/lang/'
QET_LICENSE_PATH = 'doc/qelectrotech/'
#Commenter la ligne ci-dessous pour desactiver l'option --common-elements-dir
DEFINES += QET_ALLOW_OVERRIDE_CED_OPTION
######################################################################
TEMPLATE = app
DEPENDPATH += . editor lang
INCLUDEPATH += . editor
# Input
# Fichiers sources
HEADERS += aboutqet.h \
borderinset.h \
conductor.h \
@@ -35,7 +48,7 @@ HEADERS += aboutqet.h \
orientationset.h \
orientationsetwidget.h \
qet.h \
qetapp.h \
qetapp.h \
qetdiagrameditor.h \
qgimanager.h \
terminal.h \
@@ -67,7 +80,7 @@ HEADERS += aboutqet.h \
diagramtextitem.h \
insetproperties.h \
conductorpropertieswidget.h \
conductorproperties.h
conductorproperties.h
SOURCES += aboutqet.cpp \
borderinset.cpp \
conductor.cpp \
@@ -95,8 +108,8 @@ SOURCES += aboutqet.cpp \
newelementwizard.cpp \
orientationset.cpp \
orientationsetwidget.cpp \
qet.cpp \
qetapp.cpp \
qet.cpp \
qetapp.cpp \
qetdiagrameditor.cpp \
qgimanager.cpp \
terminal.cpp \
@@ -127,23 +140,33 @@ SOURCES += aboutqet.cpp \
diagramcommands.cpp \
diagramtextitem.cpp \
conductorpropertieswidget.cpp \
conductorproperties.cpp
conductorproperties.cpp
RESOURCES += qelectrotech.qrc
TRANSLATIONS += lang/qet_en.ts lang/qt_fr.ts
RC_FILE = ico/windows_icon/application_icon/qelectrotech.rc
QT += xml svg
CONFIG += debug_and_release warn_on
CONFIG(debug, debug|release) {
TARGET = qelectrotech
} else {
TARGET = qelectrotech.release
}
TARGET = qelectrotech
#Chemin des fichiers de traduction ; par defaut : lang/ dans le repertoire d'execution
#DEFINES += QET_LANG_PATH='/path/to/qelectrotech/lang/'
# Description de l'installation
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
target.files = $${TARGET}
#Chemin de la collection commune ; par defaut : elements/ dans le repertoire d'execution
#DEFINES += QET_COMMON_COLLECTION_PATH='/path/to/qelectrotech/elements/'
elements.path = $$join(INSTALL_PREFIX,,,$${QET_COMMON_COLLECTION_PATH})
elements.files = elements/*
#Commenter la ligne ci-dessous pour desactiver l'option --common-elements-dir
DEFINES += QET_ALLOW_OVERRIDE_CED_OPTION
lang.path = $$join(INSTALL_PREFIX,,,$${QET_LANG_PATH})
lang.files = $$replace(TRANSLATIONS, '.ts', '.qm')
copyright.path = $$join(INSTALL_PREFIX,,,$${QET_LICENSE_PATH})
copyright.files = LICENSE
# L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
INSTALLS += target elements lang copyright
# Options de compilation
# 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})