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
39062f4e
Commit
39062f4e
authored
Sep 17, 2015
by
Simon Newton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the googlemock autotools build.
parent
de411c3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
configure.ac
googlemock/configure.ac
+5
-5
fuse_gmock_files.py
googlemock/scripts/fuse_gmock_files.py
+5
-5
gmock_test.cc
googlemock/test/gmock_test.cc
+0
-1
No files found.
googlemock/configure.ac
View file @
39062f4e
m4_include(
g
test/m4/acx_pthread.m4)
m4_include(
../google
test/m4/acx_pthread.m4)
AC_INIT([Google C++ Mocking Framework],
AC_INIT([Google C++ Mocking Framework],
[1.7.0],
[1.7.0],
...
@@ -129,14 +129,14 @@ AS_IF([test "x${HAVE_BUILT_GTEST}" = "xyes"],
...
@@ -129,14 +129,14 @@ AS_IF([test "x${HAVE_BUILT_GTEST}" = "xyes"],
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_CONFIG_SUBDIRS([
g
test])
[AC_CONFIG_SUBDIRS([
../google
test])
# GTEST_CONFIG needs to be executable both in a Makefile environmont and
# GTEST_CONFIG needs to be executable both in a Makefile environmont and
# in a shell script environment, so resolve an absolute path for it here.
# in a shell script environment, so resolve an absolute path for it here.
GTEST_CONFIG="`pwd -P`/
g
test/scripts/gtest-config"
GTEST_CONFIG="`pwd -P`/
../google
test/scripts/gtest-config"
GTEST_CPPFLAGS='-I$(top_srcdir)/
g
test/include'
GTEST_CPPFLAGS='-I$(top_srcdir)/
../google
test/include'
GTEST_CXXFLAGS='-g'
GTEST_CXXFLAGS='-g'
GTEST_LDFLAGS=''
GTEST_LDFLAGS=''
GTEST_LIBS='$(top_builddir)/
g
test/lib/libgtest.la'
GTEST_LIBS='$(top_builddir)/
../google
test/lib/libgtest.la'
GTEST_VERSION="${GTEST_MIN_VERSION}"])
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
...
...
googlemock/scripts/fuse_gmock_files.py
View file @
39062f4e
...
@@ -36,8 +36,8 @@ SYNOPSIS
...
@@ -36,8 +36,8 @@ SYNOPSIS
fuse_gmock_files.py [GMOCK_ROOT_DIR] OUTPUT_DIR
fuse_gmock_files.py [GMOCK_ROOT_DIR] OUTPUT_DIR
Scans GMOCK_ROOT_DIR for Google Mock and Google Test source
Scans GMOCK_ROOT_DIR for Google Mock and Google Test source
code, assuming Google Test is in the GMOCK_ROOT_DIR/
g
test
code, assuming Google Test is in the GMOCK_ROOT_DIR/
../google
test
sub-
directory, and generates three files:
directory, and generates three files:
OUTPUT_DIR/gtest/gtest.h, OUTPUT_DIR/gmock/gmock.h, and
OUTPUT_DIR/gtest/gtest.h, OUTPUT_DIR/gmock/gmock.h, and
OUTPUT_DIR/gmock-gtest-all.cc. Then you can build your tests
OUTPUT_DIR/gmock-gtest-all.cc. Then you can build your tests
by adding OUTPUT_DIR to the include search path and linking
by adding OUTPUT_DIR to the include search path and linking
...
@@ -70,8 +70,8 @@ import sys
...
@@ -70,8 +70,8 @@ import sys
# Mock root directory.
# Mock root directory.
DEFAULT_GMOCK_ROOT_DIR
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
)
DEFAULT_GMOCK_ROOT_DIR
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
)
# We need to call into gtest/scripts/fuse_gtest_files.py.
# We need to call into g
oogle
test/scripts/fuse_gtest_files.py.
sys
.
path
.
append
(
os
.
path
.
join
(
DEFAULT_GMOCK_ROOT_DIR
,
'
g
test/scripts'
))
sys
.
path
.
append
(
os
.
path
.
join
(
DEFAULT_GMOCK_ROOT_DIR
,
'
../google
test/scripts'
))
import
fuse_gtest_files
import
fuse_gtest_files
gtest
=
fuse_gtest_files
gtest
=
fuse_gtest_files
...
@@ -91,7 +91,7 @@ GMOCK_GTEST_ALL_CC_OUTPUT = 'gmock-gtest-all.cc'
...
@@ -91,7 +91,7 @@ GMOCK_GTEST_ALL_CC_OUTPUT = 'gmock-gtest-all.cc'
def
GetGTestRootDir
(
gmock_root
):
def
GetGTestRootDir
(
gmock_root
):
"""Returns the root directory of Google Test."""
"""Returns the root directory of Google Test."""
return
os
.
path
.
join
(
gmock_root
,
'
g
test'
)
return
os
.
path
.
join
(
gmock_root
,
'
../google
test'
)
def
ValidateGMockRootDir
(
gmock_root
):
def
ValidateGMockRootDir
(
gmock_root
):
...
...
googlemock/test/gmock_test.cc
View file @
39062f4e
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include <string>
#include <string>
#include "gtest/gtest.h"
#include "gtest/gtest.h"
#include "gtest/internal/custom/gtest.h"
#if !defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_)
#if !defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_)
...
...
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