Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
a92e4962
Commit
a92e4962
authored
Dec 10, 2008
by
shiqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tweaks to the build systems.
parent
c6cece77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
22 deletions
+36
-22
Makefile.am
Makefile.am
+4
-0
configure.ac
configure.ac
+31
-21
gmock_config.vsprops
msvc/gmock_config.vsprops
+1
-1
No files found.
Makefile.am
View file @
a92e4962
# Nonstandard package files for distribution.
# Nonstandard package files for distribution.
EXTRA_DIST
=
EXTRA_DIST
=
# We may need to build our internally packaged gtest. If so, it will be
# included in the 'subdirs' variable.
SUBDIRS
=
$(subdirs)
# Scripts and utilities to be installed by 'make install'.
# Scripts and utilities to be installed by 'make install'.
dist_bin_SCRIPTS
=
scripts/gmock_doctor.py
dist_bin_SCRIPTS
=
scripts/gmock_doctor.py
...
...
configure.ac
View file @
a92e4962
...
@@ -48,8 +48,14 @@ AC_ARG_WITH([gtest],
...
@@ -48,8 +48,14 @@ AC_ARG_WITH([gtest],
that prefix will be used.])],
that prefix will be used.])],
[],
[],
[with_gtest=yes])
[with_gtest=yes])
AC_ARG_ENABLE([external-gtest],
[AS_HELP_STRING([--disable-external-gtest],
[Disables any detection or use of a system
installed or user provided gtest. Any option to
'--with-gtest' is ignored. (Default is enabled.)])
], [], [enable_external_gtest=yes])
AS_IF([test "x$with_gtest" == "xno"],
AS_IF([test "x$with_gtest" == "xno"],
[AC_MSG_ERROR([
[AC_MSG_ERROR([
dnl
Support for GoogleTest was explicitly disabled. Currently GoogleMock has a hard
Support for GoogleTest was explicitly disabled. Currently GoogleMock has a hard
dependency upon GoogleTest to build, please provide a version, or allow
dependency upon GoogleTest to build, please provide a version, or allow
GoogleMock to use any installed version and fall back upon its internal
GoogleMock to use any installed version and fall back upon its internal
...
@@ -78,35 +84,39 @@ HAVE_BUILT_GTEST="no"
...
@@ -78,35 +84,39 @@ HAVE_BUILT_GTEST="no"
# at that point it will become more meaningful.
# at that point it will become more meaningful.
GTEST_MIN_VERSION="1.0.0"
GTEST_MIN_VERSION="1.0.0"
# Begin filling in variables as we are able.
AS_IF([test "x${enable_external_gtest}" = "xyes"],
AS_IF([test "x${with_gtest}" != "xyes"],
[# Begin filling in variables as we are able.
[AS_IF([test -x "${with_gtest}/scripts/gtest-config"],
AS_IF([test "x${with_gtest}" != "xyes"],
[GTEST_CONFIG="${with_gtest}/scripts/gtest-config"],
[AS_IF([test -x "${with_gtest}/scripts/gtest-config"],
[GTEST_CONFIG="${with_gtest}/bin/gtest-config"])
[GTEST_CONFIG="${with_gtest}/scripts/gtest-config"],
AS_IF([test -x "${GTEST_CONFIG}"], [],
[GTEST_CONFIG="${with_gtest}/bin/gtest-config"])
[AC_MSG_ERROR([
AS_IF([test -x "${GTEST_CONFIG}"], [],
[AC_MSG_ERROR([dnl
Unable to locate either a built or installed Google Test at '${with_gtest}'.])
Unable to locate either a built or installed Google Test at '${with_gtest}'.])
])])
])])
AS_IF([test -x "${GTEST_CONFIG}"], [],
AS_IF([test -x "${GTEST_CONFIG}"], [],
[AC_PATH_PROG([GTEST_CONFIG], [gtest-config])])
[AC_PATH_PROG([GTEST_CONFIG], [gtest-config])])
AS_IF([test -x "${GTEST_CONFIG}"],
AS_IF([test -x "${GTEST_CONFIG}"],
[AC_MSG_CHECKING([for Google Test with
version >= ${GTEST_MIN_VERSION}])
[AC_MSG_CHECKING([for Google Test
version >= ${GTEST_MIN_VERSION}])
AS_IF([${GTEST_CONFIG} --min-version=${GTEST_MIN_VERSION}],
AS_IF([${GTEST_CONFIG} --min-version=${GTEST_MIN_VERSION}],
[AC_MSG_RESULT([yes])
[AC_MSG_RESULT([yes])
HAVE_BUILT_GTEST="yes"],
HAVE_BUILT_GTEST="yes"],
[AC_MSG_RESULT([no
])])])
[AC_MSG_RESULT([no])
])])])
# TODO(chandlerc@google.com): Need to add support for passing a custom prefix
# into the gtest-config script..
AS_IF([test "x${HAVE_BUILT_GTEST}" = "xyes"],
AS_IF([test "x${HAVE_BUILT_GTEST}" = "xyes"],
[GTEST_CPPFLAGS=`${GTEST_CONFIG} --cppflags`
[GTEST_CPPFLAGS=`${GTEST_CONFIG} --cppflags`
GTEST_CXXFLAGS=`${GTEST_CONFIG} --cxxflags`
GTEST_CXXFLAGS=`${GTEST_CONFIG} --cxxflags`
GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
GTEST_LIBS=`${GTEST_CONFIG} --libs`
GTEST_LIBS=`${GTEST_CONFIG} --libs`
GTEST_VERSION=`${GTEST_CONFIG} --version`],
GTEST_VERSION=`${GTEST_CONFIG} --version`],
[AC_MSG_ERROR([TODO(chandlerc@google.com): Need to add support for
[AC_CONFIG_SUBDIRS([gtest])
building the internal gtest.])])
GTEST_CONFIG='$(builddir)/gtest/scripts/gtest-config'
GTEST_CPPFLAGS='-I$(srcdir)/gtest/include -I$(srcdir)/gtest'
GTEST_CXXFLAGS='-g'
GTEST_LDFLAGS=''
GTEST_LIBS='$(builddir)/gtest/lib/libgtest.la'
GTEST_VERSION="${GTEST_MIN_VERSION}"])
# TODO(chandlerc@google.com) Check the types, structures, and other compiler
# TODO(chandlerc@google.com) Check the types, structures, and other compiler
# and architecture characteristics.
# and architecture characteristics.
...
...
msvc/gmock_config.vsprops
View file @
a92e4962
...
@@ -15,6 +15,6 @@
...
@@ -15,6 +15,6 @@
/>
/>
<UserMacro
<UserMacro
Name=
"BoostDir"
Name=
"BoostDir"
Value=
"../boost
/v1_36_0
"
Value=
"../boost"
/>
/>
</VisualStudioPropertySheet>
</VisualStudioPropertySheet>
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