Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
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>
|
||||
Upstream: https://github.com/mono/libgdiplus/pull/701
|
||||
[Dario: make the patch to be applied with fuzz factor 0]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.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
|
||||
@@ -47,6 +47,10 @@
|
||||
GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -Werror -Wno-unknown-warning-option -Wno-clobbered"
|
||||
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
|
||||
|
||||
21
package/libgdiplus/Config.in
Normal file
21
package/libgdiplus/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
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, C++"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_INSTALL_LIBSTDCPP
|
||||
3
package/libgdiplus/libgdiplus.hash
Normal file
3
package/libgdiplus/libgdiplus.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 97d5a83d6d6d8f96c27fb7626f4ae11d3b38bc88a1726b4466aeb91451f3255b libgdiplus-6.1.tar.gz
|
||||
sha256 81317bf837e02a116dc20b032fa1d0cbf9ec357621f141ff2c2daf26c17cbb5d LICENSE
|
||||
56
package/libgdiplus/libgdiplus.mk
Normal file
56
package/libgdiplus/libgdiplus.mk
Normal file
@@ -0,0 +1,56 @@
|
||||
################################################################################
|
||||
#
|
||||
# libgdiplus
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGDIPLUS_VERSION = 6.1
|
||||
LIBGDIPLUS_SITE = https://download.mono-project.com/sources/libgdiplus
|
||||
|
||||
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