Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
59a8bd1b
Commit
59a8bd1b
authored
6 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
CONFIG: wmake -show-xyz in more places (issue
#1256
)
parent
04419bc1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Allwmake-scan
+2
-2
2 additions, 2 deletions
Allwmake-scan
bin/foamInstallationTest
+9
-5
9 additions, 5 deletions
bin/foamInstallationTest
wmake/scripts/cmakeFunctions
+6
-4
6 additions, 4 deletions
wmake/scripts/cmakeFunctions
wmake/scripts/sysFunctions
+8
-5
8 additions, 5 deletions
wmake/scripts/sysFunctions
with
25 additions
and
16 deletions
Allwmake-scan
+
2
−
2
View file @
59a8bd1b
#!/bin/sh
#!/bin/sh
# Allwmake with scan-build (clang)
# Allwmake with scan-build (clang)
c_compiler
=
"
$(
command
-v
$WM_CC
)
"
c_compiler
=
"
$(
command
-v
"
$(
wmake
-show-c
)
"
)
"
cxx_compiler
"
$(
command
-v
$WM_CXX
)
"
cxx_compiler
=
"
$(
command
-v
"
$(
wmake
-show-cxx
)
"
)
"
set
-x
set
-x
...
...
This diff is collapsed.
Click to expand it.
bin/foamInstallationTest
+
9
−
5
View file @
59a8bd1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# ========= |
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / O peration |
# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
# \\ / A nd | Copyright (C) 2004-2011
, 2019
OpenCFD Ltd.
# \\/ M anipulation |
# \\/ M anipulation |
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# | Copyright (C) 2011-2015 OpenFOAM Foundation
# | Copyright (C) 2011-2015 OpenFOAM Foundation
...
@@ -236,10 +236,13 @@ reportExecutable()
...
@@ -236,10 +236,13 @@ reportExecutable()
|
sed
-ne
's/^.*Version: *\([^ ][^ ]*\).*/\1/p'
)
|
sed
-ne
's/^.*Version: *\([^ ][^ ]*\).*/\1/p'
)
;;
;;
flex
)
flex
)
VERSION
=
$(
$APP_NAME
--version
/dev/null 2>&1
\
VERSION
=
$(
flex
--version
/dev/null 2>&1
\
|
sed
-ne
's/flex \([0-9][0-9.]*\).*/\1/p'
)
|
sed
-ne
's/flex \([0-9][0-9.]*\).*/\1/p'
)
;;
;;
gcc
*
|
g++
*
)
wmake
)
VERSION
=
"
$(
wmake
-show-api
2> /dev/null
)
"
;;
*
gcc
*
|
*
g++
*
)
VERSION
=
$(
$APP_NAME
-v
2>&1
\
VERSION
=
$(
$APP_NAME
-v
2>&1
\
|
sed
-ne
's/^gcc version \([0-9][0-9.]*\).*/\1/p'
)
|
sed
-ne
's/^gcc version \([0-9][0-9.]*\).*/\1/p'
)
...
@@ -424,8 +427,9 @@ hline
...
@@ -424,8 +427,9 @@ hline
echo
"
$(
fixlen Software 9
)
$(
fixlen Version 10
)
$(
fixlen Location 10
)
"
echo
"
$(
fixlen Software 9
)
$(
fixlen Version 10
)
$(
fixlen Location 10
)
"
hline
hline
reportExecutable flex
reportExecutable flex
reportExecutable
"
$WM_CC
"
reportExecutable wmake
reportExecutable
"
$WM_CXX
"
reportExecutable
"
$(
wmake
-show-c
)
"
reportExecutable
"
$(
wmake
-show-cxx
)
"
reportExecutable
gzip
reportExecutable
gzip
if
[
"
$OSTYPE
"
=
Linux
]
if
[
"
$OSTYPE
"
=
Linux
]
then
then
...
...
This diff is collapsed.
Click to expand it.
wmake/scripts/cmakeFunctions
+
6
−
4
View file @
59a8bd1b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# ========= |
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / O peration |
# \\ / A nd | Copyright (C) 2017-201
8
OpenCFD Ltd.
# \\ / A nd | Copyright (C) 2017-201
9
OpenCFD Ltd.
# \\/ M anipulation |
# \\/ M anipulation |
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# License
# License
...
@@ -17,10 +17,12 @@
...
@@ -17,10 +17,12 @@
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
.
$WM_PROJECT_DIR
/wmake/scripts/wmakeFunctions
# Require some wmake functions
.
$WM_PROJECT_DIR
/wmake/scripts/wmakeFunctions
# Require some wmake functions
# E
nsure CMake gets the correct C/C++ compilers
# E
xport compiler information for cmake
[
-n
"
$WM_CC
"
]
&&
export
CC
=
"
$WM_CC
"
export
CC
=
"
$(
wmake
-show-c
)
"
[
-n
"
$WM_CXX
"
]
&&
export
CXX
=
"
$WM_CXX
"
export
CXX
=
"
$(
wmake
-show-cxx
)
"
export
CFLAGS
=
"
$(
wmake
-show-cflags
)
"
export
CXXFLAGS
=
"
$(
wmake
-show-cxxflags
)
"
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
wmake/scripts/sysFunctions
+
8
−
5
View file @
59a8bd1b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# ========= |
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / O peration |
# \\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
# \\ / A nd | Copyright (C) 2018
-2019
OpenCFD Ltd.
# \\/ M anipulation |
# \\/ M anipulation |
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# License
# License
...
@@ -34,16 +34,19 @@ then
...
@@ -34,16 +34,19 @@ then
# Load once, but do not rely on this variable elsewhere
# Load once, but do not rely on this variable elsewhere
WMAKE_SCRIPTS_SYSFUNCTIONS
=
loaded
WMAKE_SCRIPTS_SYSFUNCTIONS
=
loaded
# Static library extension
. D
efault=.a
# Static library extension
(d
efault=
"
.a
")
extLiba
=
".a"
extLiba
=
".a"
# Shared library extension. Default=.so
# Shared library extension (default=".so")
extLibso
=
".so"
# Adjustments
case
"
$(
uname
-s
2>/dev/null
)
"
in
case
"
$(
uname
-s
2>/dev/null
)
"
in
Darwin
)
Darwin
)
extLibso
=
".dylib"
extLibso
=
".dylib"
;;
;;
*
)
*
)
extLibso
=
".so
"
## Other. Eg, extLibso=".dll" or extLibso=".dll.a
"
;;
;;
esac
esac
...
@@ -59,7 +62,7 @@ then
...
@@ -59,7 +62,7 @@ then
# Uses cached value from libso extension
# Uses cached value from libso extension
isWindows
()
isWindows
()
{
{
test
"
$extLibso
"
=
".dll"
test
"
$extLibso
"
=
".dll"
||
"
$extLibso
"
=
".dll.a"
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment