mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/3] assimp: new package
@ 2025-01-28 12:40 Philipp Zabel
  2025-01-28 12:40 ` [ptxdist] [PATCH 2/3] glm: " Philipp Zabel
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Philipp Zabel @ 2025-01-28 12:40 UTC (permalink / raw)
  To: ptxdist; +Cc: Philipp Zabel

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-14  9:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-28 12:40 [ptxdist] [PATCH 1/3] assimp: new package Philipp Zabel
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox