WSL/SLF GitLab Repository

Commit 0281d016 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Added one search path that will be convenient for packaging

parent e0f61370
......@@ -37,6 +37,7 @@ void getSystemLocations(QStringList &locations)
#if defined Q_OS_WIN
locations << "../.."; //this is useful for some out of tree builds
locations << QCoreApplication::applicationDirPath(); //directory that contains the application executable
locations << QCoreApplication::applicationDirPath() + "/../share";
locations << QCoreApplication::applicationDirPath() + "/..";
locations << QStandardPaths::standardLocations(QStandardPaths::DesktopLocation);
locations << QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation);
......@@ -46,6 +47,7 @@ void getSystemLocations(QStringList &locations)
#if defined Q_OS_MAC
locations << "./../../../.."; //this is useful for some out of tree builds: we must get out of the bundle
locations << QCoreApplication::applicationDirPath();
locations << QCoreApplication::applicationDirPath() + "/../share";
locations << QCoreApplication::applicationDirPath() + "/..";
locations << QCoreApplication::applicationDirPath() + "/../../../.."; //we must get out of the bundle
locations << QStandardPaths::standardLocations(QStandardPaths::DesktopLocation);
......@@ -55,6 +57,7 @@ void getSystemLocations(QStringList &locations)
#endif
#if !defined Q_OS_WIN && !defined Q_OS_MAC
locations << QCoreApplication::applicationDirPath(); //directory that contains the application executable
locations << QCoreApplication::applicationDirPath() + "/../share";
locations << QCoreApplication::applicationDirPath() + "/..";
locations << QStandardPaths::standardLocations(QStandardPaths::DesktopLocation);
locations << QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation); //$HOME/Documents
......@@ -100,7 +103,7 @@ QString getExtraPath(const QString& appname)
const QString desktop( QStandardPaths::standardLocations(QStandardPaths::DesktopLocation).at(0) ); //DesktopLocation always returns 1 element
#if defined Q_OS_WIN
QString extra_path( ";" + desktop+"/"+appname+"\\bin;" + home+"\\src\\"+appname+"\\bin;" + "D:\\src\\"+appname+"\\bin;" + "C:\\Program Files\\"+appname+"\\bin;" + "C:\\Program Files (x86)\\"+appname+"\\bin;" + own_path);
QString extra_path( ";" + desktop+"\\"+appname+"\\bin;" + home+"\\src\\"+appname+"\\bin;" + "D:\\src\\"+appname+"\\bin;" + "C:\\Program Files\\"+appname+"\\bin;" + "C:\\Program Files (x86)\\"+appname+"\\bin;" + own_path);
const QString reg_key("HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" + appname + "\\UninstallString");
QSettings settings;
......
......@@ -6,10 +6,11 @@
#or absolute file paths that will be searched recursively,
#or a base path to prepend to all source code and exclude files with "base=my_code_base". Example:
#xmlpath=/home/snow/src/inishell/applications
#base=/home/snow/src/
#extensions=cc,c
#exclude=meteoio/meteoio/jnative
xmlpath=/home/bavay/src/inishell/inishell-apps
base=/home/bavay/src/
extensions=cc,c
exclude=meteoio/meteoio/jnative
#meteoio/meteoio
#snowpack/snowpack
alpine3d/alpine3d
#ignore=ARGOS_DEBUG,DBO_DEBUG,GOES_DEBUG,GRIB_DEBUG,GSN_DEBUG,NC_DEBUG,OSHD_DEBUG
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment