Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
buildblocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Pmodules
buildblocks
Commits
53586401
Commit
53586401
authored
Nov 04, 2019
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gtest: support for version 1.8.1 added
parent
2f67d0fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
40 deletions
+28
-40
Compiler/gtest/build
Compiler/gtest/build
+28
-40
No files found.
Compiler/gtest/build
View file @
53586401
#!/usr/bin/env modbuild
pbuild
::
set_download_url
"https://github.com/google/googletest/archive/release-1.7.0.tar.gz"
declare
-
a
config_args
=
()
case
"${OS}"
in
Darwin
)
#config_args+=( '-DCMAKE_OSX_SYSROOT=/' )
#config_args+=( "-DCMAKE_OSX_DEPLOYMENT_TARGET=''" )
;;
esac
pbuild
::
install_docfiles
\
CHANGES
\
CONTRIBUTORS
\
LICENSE
\
README
pbuild
::
configure
()
{
cmake
\
-
DCMAKE_INSTALL_PREFIX
=
"${PREFIX}"
\
-
DCMAKE_BUILD_TYPE
=
RELEASE
\
"${config_args[@]}"
\
"${SRC_DIR}"
}
pbuild
::
install
()
{
local
-
r
_include_srcdir
=
"${SRC_DIR}/include/gtest"
local
-
r
_include_dstdir
=
"${PREFIX}/include/gtest"
if
[[
-
e
"${_include_dstdir}"
]];
then
chmod
-
R
u
+
w
"${_include_dstdir}"
fi
mkdir
-
p
"${_include_dstdir}"
cp
-
rv
"${_include_srcdir}"
/*
"${_include_dstdir}"
local
-
r
_lib_dstdir
=
"${PREFIX}/lib"
mkdir
-
p
"${_lib_dstdir}"
cp
-
v
*
.
a
"${_lib_dstdir}"
}
pbuild
::
set_download_url
"https://github.com/google/googletest/archive/release-1.8.1.tar.gz"
pbuild
::
add_to_group
'Compiler'
pbuild
::
make_all
if
((
V_MAJOR
==
1
))
&&
((
V_MINOR
<=
7
));
then
pbuild
::
install_docfiles
\
CHANGES
\
CONTRIBUTORS
\
LICENSE
\
README
pbuild
::
install
()
{
local
-
r
_include_srcdir
=
"${SRC_DIR}/include/gtest"
local
-
r
_include_dstdir
=
"${PREFIX}/include/gtest"
if
[[
-
e
"${_include_dstdir}"
]];
then
chmod
-
R
u
+
w
"${_include_dstdir}"
fi
mkdir
-
p
"${_include_dstdir}"
cp
-
rv
"${_include_srcdir}"
/*
"${_include_dstdir}"
local
-
r
_lib_dstdir
=
"${PREFIX}/lib"
mkdir
-
p
"${_lib_dstdir}"
cp
-
v
*
.
a
"${_lib_dstdir}"
}
else
pbuild
::
install_docfiles
\
CONTRIBUTING
.
md
\
LICENSE
\
README
.
md
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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