Replies: 3 comments
-
What you describe sounds like the typical use case for the amalgamation build. Except that you expect to require patches to the library in the future. The amalgamation build essentially just copies all headers and source files into two large files. I would suggest you apply your patches to the source and header files as you find them in the repository and only then generate the amalgamation files. That way, you can maintain your custom patches and benefit from the amalgamation build via your toolchain. I hope I understand your question correctly. 😊 |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your answer reneme, The question is your answer is not good to me. Thank you again reneme. |
Beta Was this translation helpful? Give feedback.
-
Judging from your latest answer, I'm assuming you want to specifically select the functionality of the library that you require for your project. Indeed there's a way to do that: When you enable only the modules that you require for your project, the amalgamation files will be created from those modules only. This can reduce the overall size of the amalgamation files significantly. Please see the documentation on how to configure a build for all the details. As well as the list of all modules the library provides. ExampleLets assume that the only things your project requires is a fast implementation of SHA-256 and an adapter to the operating system's RNG. Also, I'm assuming that you target a reasonably recent ARM platform. You might configure the library with: ./configure.py --minimized-build --enable-modules=sha2_32_armv8,system_rng --amalgamation This should generate a pair of Use Typically, it requires a bit of experimentation to reach a useful list of modules for your needs. Note that, as shown above, some algorithms might provide modules with platform-specific implementations that must be enabled explicitly. For instance, |
Beta Was this translation helpful? Give feedback.
-
Hi,
The question is easy and I hope the answer too.
I need to create the include path with all declarative files with their structure; and the src path with all cpp files.
The question is that I can't use the amalgamation command because I must change perhaps one or more files in the future. Besides, I prefer to compile the library with my tools.
Does there exist a parameter that I can do this?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions