I have multiple projects using CMake that have lots of asset files, which I would like to try building with Emscripten.
Already for cross-platform reasons, I have an explicit CMake list containing every asset file that must be bundled with the app. I would love to just pass this list to some function, similar to the em_link_js_library() function for the —js-library flag.
I did give some thought about bundling an entire directory containing resource files. Unfortunately, it isn’t always the case that all the files in a directory need to be bundled. Sometimes multiple build target (executables) share the same resource directory. Sometimes there are platform specific versions of assets in those directories that get bundled conditionally.
And I would like to avoid copying all the files to an intermediate temp directory because there are so many of them and I would hate to slow down the build every time. (And copying directories recursively is a PITA in CMake too.)
Is there already something that can be done with CMake for this?
Thanks,
Eric
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.