solus-project / ypkg

Modern, declarative, structured build format
https://solus-project.com/
GNU General Public License v3.0
56 stars 20 forks source link

rc: Add options to precompile python and qml files #54

Closed sunnyflunk closed 6 years ago

sunnyflunk commented 6 years ago

While most python builds currently include .pyc files, packages which aren't primarily python don't include pre-compiled files for faster load and performance. Macros are included for python2 and python3 that by default compile all .py files in the installdir (which can be overridden).

The qml_cache macro is taken from extra-cmake-modules which is already in heavy use, but unbundles the macro from the package.

Signed-off-by: Peter O'Connor peter@solus-project.com