initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
From ae92a466e203c8aec43f682a3a7aa617b820c3ba Mon Sep 17 00:00:00 2001
|
||||
From: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
Date: Sat, 10 Apr 2021 11:03:38 -0300
|
||||
Subject: [PATCH] Build unit tests only when --enable-unit-tests is passed
|
||||
|
||||
Building unit tests by default requires all dependencies to be
|
||||
installed (jpeg, tiff, etc) and users may not want that.
|
||||
|
||||
So let's disable the build of unit tests by default and introduce
|
||||
--enable-unit-tests configure option to enable it.
|
||||
|
||||
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
|
||||
---
|
||||
Makefile.am | 8 ++++++--
|
||||
configure.ac | 4 ++++
|
||||
2 files changed, 10 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index f40bdee0c2e9..152e0d64fdd9 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,7 +1,11 @@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
-SUBDIRS = src tests
|
||||
-DIST_SUBDIRS = src tests
|
||||
+if BUILD_UNIT_TESTS
|
||||
+SUBDIRS_TESTS = tests
|
||||
+endif
|
||||
+
|
||||
+SUBDIRS = src $(SUBDIRS_TESTS)
|
||||
+DIST_SUBDIRS = src $(SUBDIRS_TESTS)
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 098fd0a664bd..c126ff091e58 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -39,6 +39,10 @@ if test $warnaserror = "yes"; then
|
||||
GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -Werror -Wno-unknown-warning-option -Wno-clobbered -Wno-typedef-redefinition"
|
||||
fi
|
||||
|
||||
+AC_ARG_ENABLE(unittests, AS_HELP_STRING([--enable-unittests],[Enable building unit tests.]),[unittests=yes],[unittests=no])
|
||||
+
|
||||
+AM_CONDITIONAL([BUILD_UNIT_TESTS], [test x$unittests = xyes])
|
||||
+
|
||||
AC_ARG_ENABLE(asan, AS_HELP_STRING([--enable-asan],[Enable address sanitizer.]),[asan=yes],[asan=no])
|
||||
|
||||
if test $asan = "yes"; then
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_LIBGDIPLUS
|
||||
bool "libgdiplus"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_USE_WCHAR # libglib2 -> gettext
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
select BR2_PACKAGE_XLIB_LIBXFT
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_CAIRO
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
help
|
||||
An Open Source implementation of the GDI+ API.
|
||||
|
||||
https://github.com/mono/libgdiplus
|
||||
|
||||
comment "libgdiplus needs a toolchain w/ wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 1fd034f4b636214cc24e94c563cd10b3f3444d9f0660927b60e63fd4131d97fa libgdiplus-6.0.5.tar.gz
|
||||
sha256 81317bf837e02a116dc20b032fa1d0cbf9ec357621f141ff2c2daf26c17cbb5d LICENSE
|
||||
@@ -0,0 +1,56 @@
|
||||
################################################################################
|
||||
#
|
||||
# libgdiplus
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGDIPLUS_VERSION = 6.0.5
|
||||
LIBGDIPLUS_SITE = $(call github,mono,libgdiplus,$(LIBGDIPLUS_VERSION))
|
||||
|
||||
LIBGDIPLUS_LICENSE = MIT
|
||||
LIBGDIPLUS_LICENSE_FILES = LICENSE
|
||||
LIBGDIPLUS_CPE_ID_VENDOR = mono-project
|
||||
|
||||
LIBGDIPLUS_INSTALL_STAGING = YES
|
||||
|
||||
# github tarball doesn't have configure
|
||||
LIBGDIPLUS_AUTORECONF = YES
|
||||
|
||||
LIBGDIPLUS_DEPENDENCIES = xlib_libXft libglib2 cairo libpng host-pkgconf
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GIFLIB),y)
|
||||
LIBGDIPLUS_CONF_OPTS += --with-libgif
|
||||
LIBGDIPLUS_DEPENDENCIES += giflib
|
||||
else
|
||||
LIBGDIPLUS_CONF_OPTS += --without-libgif
|
||||
endif
|
||||
|
||||
# there is a bug in the configure script that enables pango support
|
||||
# when passing --without-pango, so let's just not use it
|
||||
ifeq ($(BR2_PACKAGE_PANGO),y)
|
||||
LIBGDIPLUS_CONF_OPTS += --with-pango
|
||||
LIBGDIPLUS_DEPENDENCIES += pango
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
|
||||
LIBGDIPLUS_CONF_OPTS += --with-libexif
|
||||
LIBGDIPLUS_DEPENDENCIES += libexif
|
||||
else
|
||||
LIBGDIPLUS_CONF_OPTS += --without-libexif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
LIBGDIPLUS_CONF_OPTS += --with-libjpeg=$(STAGING_DIR)/usr
|
||||
LIBGDIPLUS_DEPENDENCIES += jpeg
|
||||
else
|
||||
LIBGDIPLUS_CONF_OPTS += --without-libjpeg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TIFF),y)
|
||||
LIBGDIPLUS_CONF_OPTS += --with-libtiff=$(STAGING_DIR)/usr
|
||||
LIBGDIPLUS_DEPENDENCIES += tiff
|
||||
else
|
||||
LIBGDIPLUS_CONF_OPTS += --without-libtiff
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user