nroduit / weasis-dicom-tools

Basic dicom API
Other
34 stars 33 forks source link

Allow building with JitPack, and using with mac-aarch64 #19

Closed jpwiedekopf closed 1 year ago

jpwiedekopf commented 2 years ago

We needed to package this library for a project and wanted to use the JitPack tool for this. However, by default, JitPack builds with Java 8, not with 11, which is required for weasis-dicom-tools. Adding a jitpack.yml at the project root resolves this.

Also, we've added a profile that activates on Mac computers with the aarch64 CPU architecture (M1, M2), required for building the openCV native library.

nroduit commented 1 year ago

I merged the Mac part but this is only used when running tests. To use this library, it is necessary to explicitly define transitive dependencies. For native dependencies, only the x86 architecture is defined, so it is necessary to adapt to the target architecture.

Unfortunately, I don't want to integrate a JitPack configuration in the code source to fix a problem related to a proprietary tool.