Skip to content

Commit

Permalink
Build gtest/gmock libraries on cross targets supporting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphlange committed May 25, 2020
1 parent 58290d1 commit 67fad8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions googletest/googlemock/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ SHARED_LIBRARIES = NO
LIBRARY_HOST += gmock
LIBRARY_HOST += gmock_main

ifneq (,$(findstring $(T_A),$(CROSS_COMPILER_RUNTEST_ARCHS)))
LIBRARY_IOC += gmock
LIBRARY_IOC += gmock_main
endif

SRC_DIRS += ../..

gmock_SRCS += gmock-all.cc
Expand Down
5 changes: 5 additions & 0 deletions googletest/googletest/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ SHARED_LIBRARIES = NO
LIBRARY_HOST += gtest
LIBRARY_HOST += gtest_main

ifneq (,$(findstring $(T_A),$(CROSS_COMPILER_RUNTEST_ARCHS)))
LIBRARY_IOC += gtest
LIBRARY_IOC += gtest_main
endif

SRC_DIRS += ../..

gtest_SRCS += gtest-all.cc
Expand Down

0 comments on commit 67fad8e

Please sign in to comment.