Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
9a8524d5
Commit
9a8524d5
authored
11 years ago
by
James Zern
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "test_libvpx: disable pthreads in gtest for win targets"
parents
11442353
e4d2c255
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+8
-0
configure
libs.mk
+5
-1
libs.mk
with
13 additions
and
1 deletion
configure
+
8
−
0
View file @
9a8524d5
...
...
@@ -682,6 +682,14 @@ process_toolchain() {
# iOS/ARM builds do not work with gtest. This does not match
# x86 targets.
;;
*
-win
*
)
# Some mingw toolchains don't have pthread available by default.
# Treat these more like visual studio where threading in gtest
# would be disabled for the same reason.
check_cxx
"
$@
"
<<
EOF
&& soft_enable unit_tests
int z;
EOF
;;
*
)
enabled pthread_h
&&
check_cxx
"
$@
"
<<
EOF
&& soft_enable unit_tests
int z;
...
...
This diff is collapsed.
Click to expand it.
libs.mk
+
5
−
1
View file @
9a8524d5
...
...
@@ -448,6 +448,10 @@ else
include
$(SRC_PATH_BARE)/third_party/googletest/gtest.mk
GTEST_SRCS
:=
$(
addprefix third_party/googletest/src/,
$(
call enabled,GTEST_SRCS
))
GTEST_OBJS
=
$(
call objs,
$(
GTEST_SRCS
))
ifeq
($(filter win%,$(TGT_OS)),$(TGT_OS))
# Disabling pthreads globally will cause issues on darwin and possibly elsewhere
$(GTEST_OBJS) $(GTEST_OBJS
:
.o=.d): CXXFLAGS += -DGTEST_HAS_PTHREAD=0
endif
$(GTEST_OBJS) $(GTEST_OBJS
:
.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/third_party/googletest/src
$(GTEST_OBJS) $(GTEST_OBJS
:
.o=.d): CXXFLAGS += -I$(SRC_PATH_BARE)/third_party/googletest/src/include
OBJS-$(BUILD_LIBVPX)
+=
$(
GTEST_OBJS
)
...
...
@@ -472,7 +476,7 @@ $(foreach bin,$(LIBVPX_TEST_BINS),\
lib
$(
CODEC_LIB
)$(
CODEC_LIB_SUF
)
libgtest.a
))
\
$(
if
$(
BUILD_LIBVPX
)
,
$(
eval
$(
call linkerxx_template,
$(
bin
)
,
\
$(
LIBVPX_TEST_OBJS
)
\
-L
.
-lvpx
-lgtest
-lpthread
-lm
)
\
-L
.
-lvpx
-lgtest
$(
extralibs
)
-lm
)
\
)))
\
$(
if
$(
LIPO_LIBS
)
,
$(
eval
$(
call lipo_bin_template,
$(
bin
))))
\
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets