]> Git Repo - buildroot-mgba.git/blob - package/meson/meson.mk
package/meson: bump to version 0.55.0
[buildroot-mgba.git] / package / meson / meson.mk
1 ################################################################################
2 #
3 # meson
4 #
5 ################################################################################
6
7 MESON_VERSION = 0.55.0
8 MESON_SITE = https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSION)
9 MESON_LICENSE = Apache-2.0
10 MESON_LICENSE_FILES = COPYING
11 MESON_SETUP_TYPE = setuptools
12
13 HOST_MESON_DEPENDENCIES = host-ninja
14 HOST_MESON_NEEDS_HOST_PYTHON = python3
15
16 HOST_MESON_TARGET_ENDIAN = $(call qstrip,$(call LOWERCASE,$(BR2_ENDIAN)))
17 HOST_MESON_TARGET_CPU = $(GCC_TARGET_CPU)
18
19 # https://mesonbuild.com/Reference-tables.html#cpu-families
20 ifeq ($(BR2_arcle)$(BR2_arceb),y)
21 HOST_MESON_TARGET_CPU_FAMILY = arc
22 else ifeq ($(BR2_arm)$(BR2_armeb),y)
23 HOST_MESON_TARGET_CPU_FAMILY = arm
24 else ifeq ($(BR2_aarch64)$(BR2_aarch64_be),y)
25 HOST_MESON_TARGET_CPU_FAMILY = aarch64
26 else ifeq ($(BR2_i386),y)
27 HOST_MESON_TARGET_CPU_FAMILY = x86
28 else ifeq ($(BR2_mips)$(BR2_mipsel),y)
29 HOST_MESON_TARGET_CPU_FAMILY = mips
30 else ifeq ($(BR2_mips64)$(BR2_mips64el),y)
31 HOST_MESON_TARGET_CPU_FAMILY = mips64
32 else ifeq ($(BR2_powerpc),y)
33 HOST_MESON_TARGET_CPU_FAMILY = ppc
34 else ifeq ($(BR2_powerpc64)$(BR2_powerpc64le),y)
35 HOST_MESON_TARGET_CPU_FAMILY = ppc64
36 else ifeq ($(BR2_riscv),y)
37 HOST_MESON_TARGET_CPU_FAMILY = riscv64
38 else ifeq ($(BR2_sparc),y)
39 HOST_MESON_TARGET_CPU_FAMILY = sparc
40 else ifeq ($(BR2_sparc64),y)
41 HOST_MESON_TARGET_CPU_FAMILY = sparc64
42 else ifeq ($(BR2_x86_64),y)
43 HOST_MESON_TARGET_CPU_FAMILY = x86_64
44 else
45 HOST_MESON_TARGET_CPU_FAMILY = $(ARCH)
46 endif
47
48 # Avoid interpreter shebang longer than 128 chars
49 define HOST_MESON_SET_INTERPRETER
50         $(SED) '1s:.*:#!/usr/bin/env python3:' $(HOST_DIR)/bin/meson
51 endef
52 HOST_MESON_POST_INSTALL_HOOKS += HOST_MESON_SET_INTERPRETER
53
54 $(eval $(host-python-package))
This page took 0.034153 seconds and 4 git commands to generate.