xref: /OK3568_Linux_fs/buildroot/package/gtest/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_GTEST
2	bool "gtest"
3	depends on BR2_USE_WCHAR
4	depends on BR2_TOOLCHAIN_HAS_THREADS
5	depends on BR2_INSTALL_LIBSTDCPP
6	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
7	depends on BR2_USE_MMU # fork()
8	help
9	  Google's framework for writing C++ tests on a variety of
10	  platforms (Linux, Mac OS X, Windows, Cygwin, Windows CE, and
11	  Symbian). Based on the xUnit architecture. Supports
12	  automatic test discovery, a rich set of assertions,
13	  user-defined assertions, death tests, fatal and non-fatal
14	  failures, value- and type-parameterized tests, various
15	  options for running the tests, and XML test report
16	  generation.
17
18	  Gtest also allows to easily build testsuites for C programs.
19
20	  This package allows running testsuites on the target which
21	  might be advantageous in certain cases.
22
23	  https://github.com/google/googletest
24
25if BR2_PACKAGE_GTEST
26
27config BR2_PACKAGE_GTEST_GMOCK
28	bool "gmock"
29	help
30	  Inspired by jMock, EasyMock, and Hamcrest, and designed with
31	  C++'s specifics in mind, Google C++ Mocking Framework (or
32	  Google Mock for short) is a library for writing and using C++
33	  mock classes.
34
35	  Google Mock:
36
37	    * lets you create mock classes trivially using simple
38	      macros, supports a rich set of matchers and actions,
39	    * handles unordered, partially ordered, or completely
40	      ordered expectations,
41	    * is extensible by users, and
42	    * works on Linux, Mac OS X, Windows, Windows Mobile, minGW,
43	      and Symbian.
44
45	  There are both host and target packages. The target one has
46	  include files required to compile the tests and the static
47	  libraries required to link/run them. The host package installs
48	  gmock_gen, a Python script used to generate code mocks.
49
50endif # BR2_PACKAGE_GTEST
51
52comment "gtest needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"
53	depends on BR2_USE_MMU
54	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
55		!BR2_INSTALL_LIBSTDCPP || \
56		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
57