git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@166 b624d157-de02-0410-bad0-e51aec6abb33
master
tarek_saidi 17 years ago
parent e5e14c37f7
commit 0664d4bed0
  1. 5
      src/main.cpp
  2. 2
      src/main.h
  3. 19
      src/src.pro

@ -439,6 +439,11 @@ if(argc>1){
else if(QString(argv[i])=="-lock"){ else if(QString(argv[i])=="-lock"){
ArgLock = true; ArgLock = true;
} }
else if(QString(argv[i]).left(5)=="-psn_"){
// something like a pid or so, passed when starting an app bundle under MacOS X
// ignore
continue;
}
/*else if(QString(argv[i])=="-test"){ /*else if(QString(argv[i])=="-test"){
if (testDatabase()) exit(0); if (testDatabase()) exit(0);
else exit(1); else exit(1);

@ -33,7 +33,7 @@
#define APP_SHORT_FUNC "Password Manager" #define APP_SHORT_FUNC "Password Manager"
#define APP_LONG_FUNC "Cross Platform Password Manager" #define APP_LONG_FUNC "Cross Platform Password Manager"
#define APP_VERSION "0.3.0" #define APP_VERSION "0.3.0a"
#define BUILTIN_ICONS 65 #define BUILTIN_ICONS 65

@ -32,6 +32,7 @@ unix : !macx : !isEqual(QMAKE_WIN32,1) {
} }
TARGET = ../bin/keepassx TARGET = ../bin/keepassx
target.path = $${PREFIX}/bin target.path = $${PREFIX}/bin
data.files += ../share/keepassx/*
data.path = $${PREFIX}/share/keepassx data.path = $${PREFIX}/share/keepassx
pixmaps.files = ../share/pixmaps/* pixmaps.files = ../share/pixmaps/*
pixmaps.path = $${PREFIX}/share/pixmaps pixmaps.path = $${PREFIX}/share/pixmaps
@ -47,9 +48,6 @@ unix : !macx : !isEqual(QMAKE_WIN32,1) {
SOURCES += Application_X11.cpp SOURCES += Application_X11.cpp
HEADERS += Application_X11.h HEADERS += Application_X11.h
} }
isEqual(BUILD_FOR_LSB,1) {
QMAKE_CXX = lsbcc
}
} }
@ -60,14 +58,21 @@ macx {
isEmpty(PREFIX):PREFIX = /Applications isEmpty(PREFIX):PREFIX = /Applications
TARGET = ../bin/KeePassX TARGET = ../bin/KeePassX
target.path = $${PREFIX} target.path = $${PREFIX}
data.path = Contents/Resources/keepassx data.files += ../share/keepassx
data.path = Contents/Resources
LIBS += -framework CoreFoundation
isEqual(LINK,DYNAMIC) {
isEmpty(QT_FRAMEWORK_DIR) : QT_FRAMEWORK_DIR = /Library/Frameworks isEmpty(QT_FRAMEWORK_DIR) : QT_FRAMEWORK_DIR = /Library/Frameworks
private_frameworks.files += $${QT_FRAMEWORK_DIR}/QtCore.framework private_frameworks.files += $${QT_FRAMEWORK_DIR}/QtCore.framework
private_frameworks.files += $${QT_FRAMEWORK_DIR}/QtGui.framework private_frameworks.files += $${QT_FRAMEWORK_DIR}/QtGui.framework
private_frameworks.files += $${QT_FRAMEWORK_DIR}/QtXml.framework private_frameworks.files += $${QT_FRAMEWORK_DIR}/QtXml.framework
private_frameworks.path = Contents/Frameworks private_frameworks.path = Contents/Frameworks
QMAKE_BUNDLE_DATA += data private_frameworks QMAKE_BUNDLE_DATA += private_frameworks
LIBS += -framework CoreFoundation }
isEqual(LINK,STATIC){
LIBS += -framework Carbon -framework AppKit -lz
}
QMAKE_BUNDLE_DATA += data
ICON = ../share/macx_bundle/icon.icns ICON = ../share/macx_bundle/icon.icns
CONFIG += app_bundle CONFIG += app_bundle
isEqual(ARCH,UNIVERSAL) : CONFIG += x86 ppc isEqual(ARCH,UNIVERSAL) : CONFIG += x86 ppc
@ -83,6 +88,7 @@ isEqual(QMAKE_WIN32,1) {
isEmpty(PREFIX):PREFIX = "C:/Program files/KeePassX" isEmpty(PREFIX):PREFIX = "C:/Program files/KeePassX"
TARGET = ../bin/KeePassX TARGET = ../bin/KeePassX
target.path = $${PREFIX} target.path = $${PREFIX}
data.files += ../share/keepassx/*
data.path = $${PREFIX}/share data.path = $${PREFIX}/share
!isEqual(INSTALL_QTLIB,0) { !isEqual(INSTALL_QTLIB,0) {
qt_libs.files = $${QMAKE_LIBDIR_QT}/QtCore4.dll $${QMAKE_LIBDIR_QT}/QtGui4.dll $${QMAKE_LIBDIR_QT}/QtXml4.dll qt_libs.files = $${QMAKE_LIBDIR_QT}/QtCore4.dll $${QMAKE_LIBDIR_QT}/QtGui4.dll $${QMAKE_LIBDIR_QT}/QtXml4.dll
@ -94,7 +100,6 @@ isEqual(QMAKE_WIN32,1) {
} }
data.files += ../share/keepassx/*
INSTALLS += target data INSTALLS += target data
contains(DEFINES,GLOBAL_AUTOTYPE) { contains(DEFINES,GLOBAL_AUTOTYPE) {