2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2024 Andreas Wacknitz
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= googletest
19 COMPONENT_VERSION
= 1.15.2
20 COMPONENT_SUMMARY
= Google
test framework
21 COMPONENT_PROJECT_URL
= https
://google.github.io
/googletest
/
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= sha256
:7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926
25 COMPONENT_ARCHIVE_URL
= https
://github.com
/google
/googletest
/releases
/download
/v
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
26 COMPONENT_FMRI
= developer
/$(COMPONENT_NAME
)
27 COMPONENT_CLASSIFICATION
= Development
/C
++
28 COMPONENT_LICENSE
= BSD-3-Clause
29 COMPONENT_LICENSE_FILE
= LICENSE
31 TEST_TARGET
= $(NO_TESTS
)
32 include $(WS_MAKE_RULES
)/common.mk
34 DROP_STATIC_LIBRARIES
= yes
36 CMAKE_OPTIONS
+= -DCMAKE_BUILD_TYPE
=Release
37 CMAKE_OPTIONS
+= -DBUILD_SHARED_LIBS
=ON
39 # Auto-generated dependencies
40 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
41 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
42 REQUIRED_PACKAGES
+= system
/library
43 REQUIRED_PACKAGES
+= system
/library
/math