WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
inishell
Commits
0281d016
Commit
0281d016
authored
Aug 29, 2020
by
Mathias Bavay
Browse files
Added one search path that will be convenient for packaging
parent
e0f61370
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/os.cc
View file @
0281d016
...
...
@@ -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
;
...
...
tools/iniqueryparser/code_base_files.ini
View file @
0281d016
...
...
@@ -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/
application
s
#
base=/home/
snow
/src/
#
extensions=cc,c
#
exclude=meteoio/meteoio/jnative
xmlpath
=
/home/
bavay
/src/inishell/
inishell-app
s
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment