From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Subject: [ptxdist] [PATCH 1/3] assimp: new package
Date: Tue, 28 Jan 2025 13:40:56 +0100 [thread overview]
Message-ID: <20250128124058.1620435-1-p.zabel@pengutronix.de> (raw)
The Open Asset Import Library is a dependency of vkmark.
Only the .3ds and .ply format importers used by vkmark are enabled
and all exporters are disabled for now, reducing the library size
from 11 MiB to 1.5 MiB on x86_64.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/assimp.in | 10 ++++++
rules/assimp.make | 86 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+)
create mode 100644 rules/assimp.in
create mode 100644 rules/assimp.make
diff --git a/rules/assimp.in b/rules/assimp.in
new file mode 100644
index 000000000000..686cc18051f8
--- /dev/null
+++ b/rules/assimp.in
@@ -0,0 +1,10 @@
+## SECTION=multimedia_libs
+
+config ASSIMP
+ tristate
+ prompt "assimp"
+ select HOST_CMAKE
+ select ZLIB
+ help
+ Open Asset Import Library (assimp) to load various 3d file formats
+ into a shared, in-memory format.
diff --git a/rules/assimp.make b/rules/assimp.make
new file mode 100644
index 000000000000..c1764dfdb09f
--- /dev/null
+++ b/rules/assimp.make
@@ -0,0 +1,86 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_ASSIMP) += assimp
+
+#
+# Paths and names
+#
+ASSIMP_VERSION := 5.4.3
+ASSIMP_MD5 := fd64a9a57a3d81940ba7fc4a3a946502
+ASSIMP := assimp-$(ASSIMP_VERSION)
+ASSIMP_SUFFIX := tar.gz
+ASSIMP_URL := https://github.com/assimp/assimp/archive/refs/tags/v$(ASSIMP_VERSION).$(ASSIMP_SUFFIX)
+ASSIMP_SOURCE := $(SRCDIR)/$(ASSIMP).$(ASSIMP_SUFFIX)
+ASSIMP_DIR := $(BUILDDIR)/$(ASSIMP)
+ASSIMP_LICENSE := Open Asset Import Library (assimp)
+GLM_LICENSE_FILES := file://LICENSE;md5=462e4b97f73ef12f8171c3c546ce4e8d
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+ASSIMP_CONF_TOOL := cmake
+
+ASSIMP_CONF_OPT := \
+ $(CROSS_CMAKE_USR) \
+ -DASSIMP_ANDROID_JNIIOSYSTEM=OFF \
+ -DASSIMP_ASAN=OFF \
+ -DASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT=OFF \
+ -DASSIMP_BUILD_3DS_IMPORTER=ON \
+ -DASSIMP_BUILD_PLY_IMPORTER=ON \
+ -DASSIMP_BUILD_ASSIMP_TOOLS=OFF \
+ -DASSIMP_BUILD_DOCS=OFF \
+ -DASSIMP_BUILD_DRACO=OFF \
+ -DASSIMP_BUILD_FRAMEWORK=OFF \
+ -DASSIMP_BUILD_NONFREE_C4D_IMPORTER=OFF \
+ -DASSIMP_BUILD_SAMPLES=OFF \
+ -DASSIMP_BUILD_TESTS=OFF \
+ -DASSIMP_BUILD_USD_IMPORTER=OFF \
+ -DASSIMP_BUILD_USD_VERBOSE_LOGS=OFF \
+ -DASSIMP_BUILD_USE_CCACHE=OFF \
+ -DASSIMP_BUILD_ZLIB=OFF \
+ -DASSIMP_COVERALLS=OFF \
+ -DASSIMP_DOUBLE_PRECISION=OFF \
+ -DASSIMP_HUNTER_ENABLED=OFF \
+ -DASSIMP_IGNORE_GIT_HASH=OFF \
+ -DASSIMP_INJECT_DEBUG_POSTFIX=OFF \
+ -DASSIMP_INSTALL=ON \
+ -DASSIMP_LIBRARY_SUFFIX= \
+ -DASSIMP_NO_EXPORT=ON \
+ -DASSIMP_OPT_BUILD_PACKAGES=OFF \
+ -DASSIMP_PACKAGE_VERSION=0 \
+ -DASSIMP_RAPIDJSON_NO_MEMBER_ITERATOR=ON \
+ -DASSIMP_UBSAN=OFF \
+ -DASSIMP_WARNINGS_AS_ERRORS=OFF \
+ -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_DEBUG_POSTFIX=
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/assimp.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, assimp)
+ @$(call install_fixup, assimp, PRIORITY, optional)
+ @$(call install_fixup, assimp, SECTION, base)
+ @$(call install_fixup, assimp, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, assimp, DESCRIPTION, missing)
+
+ $(call install_lib, assimp, 0, 0, 0644, libassimp)
+
+ @$(call install_finish, assimp)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.39.5
next reply other threads:[~2025-01-28 12:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 12:40 Philipp Zabel [this message]
2025-01-28 12:40 ` [ptxdist] [PATCH 2/3] glm: " Philipp Zabel
2025-02-14 9:02 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-01-28 12:40 ` [ptxdist] [PATCH 3/3] vkmark: " Philipp Zabel
2025-02-03 8:21 ` [ptxdist] [PATCH 1/3] assimp: " Philipp Zabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250128124058.1620435-1-p.zabel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox