shared-macros.mk: simplify java settings
[oi-userland.git] / components / developer / meson / Makefile
blobb0d859a96942e70b82becc4d3d48bae3e3ff1f10
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project -d developer/meson meson
17 BUILD_STYLE = pyproject
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = meson
22 HUMAN_VERSION = 1.6.0
23 COMPONENT_SUMMARY = A high performance build system
24 COMPONENT_PROJECT_URL = https://mesonbuild.com
25 COMPONENT_ARCHIVE_HASH = \
26 sha256:999b65f21c03541cf11365489c1fad22e2418bb0c3d50ca61139f2eec09d5496
27 COMPONENT_LICENSE = Apache-2.0
28 COMPONENT_LICENSE_FILE = COPYING
30 # Manifest options for developer/build/meson package
31 COMPONENT_FMRI.meson-meta = developer/build/meson
32 COMPONENT_CLASSIFICATION.meson-meta = Development/Distribution Tools
34 TEST_STYLE = custom
36 include $(WS_MAKE_RULES)/common.mk
38 # We have no polkit
39 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOUSRSHAREDIR)/polkit-1 ;
41 # Rename section 1 man page(s) to contain version number
42 COMPONENT_POST_INSTALL_ACTION += \
43 for f in $(PROTOUSRSHAREMAN1DIR)/*.1 ; do \
44 [[ -f $$f ]] || continue ; \
45 for v in $(PYTHON_VERSIONS) ; do \
46 [[ "$$f" == "$${f%%$$v.1}" ]] || continue 2 ; \
47 done ; \
48 $(MV) $$f $${f%%.1}-$(PYTHON_VERSION).1 ; \
49 done ;
51 # Custom test style
52 # See also: https://mesonbuild.com/MesonCI.html
53 COMPONENT_TEST_CMD = $(PYTHON) run_tests.py
54 COMPONENT_TEST_ARGS =
55 COMPONENT_TEST_ARGS += -v # verbose
56 COMPONENT_TEST_ARGS += --failfast
57 COMPONENT_TEST_TARGETS =
58 COMPONENT_TEST_ENV += PYTEST_ADDOPTS="$(PYTEST_ADDOPTS)"
59 # Testing expects GNU msgfmt and GNU make
60 COMPONENT_TEST_ENV += PATH="$(PATH.gnu)"
61 # Testing needs to find Qt5/Qt6 libraries
62 COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(QT5_LIBDIR):$(QT6_LIBDIR)
64 # Exhausts memory
65 PYTEST_ADDOPTS += --deselect unittests/linuxliketests.py::LinuxlikeTests::test_generate_gir_with_address_sanitizer
66 # Uses valgrind and fails (needs further investigation)
67 PYTEST_ADDOPTS += --deselect unittests/allplatformstests.py::AllPlatformTests::test_testsetups
68 # Python 2 test that fails in our environment
69 PYTEST_ADDOPTS += --deselect unittests/machinefiletests.py::NativeFileTests::test_python_module
71 # Remove timing
72 COMPONENT_TEST_TRANSFORMS += "-e '/^Total .*time:/d'"
74 # This project does not support tox so we need to provide test requirements
75 # manually.
76 TEST_REQUIRED_PACKAGES.python += library/python/pytest-xdist
78 # Manually added test dependencies to make sure we test as much as possible and
79 # to get consistent test results
80 TEST_REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
81 TEST_REQUIRED_PACKAGES += library/c++/hdf5
82 TEST_REQUIRED_PACKAGES += library/qt5
83 TEST_REQUIRED_PACKAGES += library/qt6
85 # Auto-generated dependencies
86 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
87 PYTHON_REQUIRED_PACKAGES += library/python/wheel
88 PYTHON_REQUIRED_PACKAGES += runtime/python