Browse Source

compile python files to reduce program startup time

pull/1426/head
houston 3 years ago
parent
commit
7a3a805b70
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      Makefile

+ 7
- 1
Makefile View File

@@ -23,7 +23,7 @@ MODULEDIR := $(CURDIR)/build/modules/Release
endif endif


VERSION := 2.3.0 VERSION := 2.3.0
PYTHON := python3
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------


all: backend discovery bridges-plugin bridges-ui frontend interposer libjack plugin theme all: backend discovery bridges-plugin bridges-ui frontend interposer libjack plugin theme
@@ -608,6 +608,8 @@ endif
bin/resources/carla-plugin-patchbay \ bin/resources/carla-plugin-patchbay \
bin/resources/*-ui \ bin/resources/*-ui \
$(DESTDIR)$(DATADIR)/carla/resources $(DESTDIR)$(DATADIR)/carla/resources
endif # CPPMODE endif # CPPMODE


ifeq ($(HAVE_THEME),true) ifeq ($(HAVE_THEME),true)
@@ -767,6 +769,10 @@ ifeq ($(CAN_GENERATE_LV2_TTL),true)
endif endif
endif endif


# -------------------------------------------------------------------------------------------------------------
# compile all python .pyc files to __pycache__ for faster application start
$(PYTHON) -m compileall $(DATADIR)/carla
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------


ifneq ($(EXTERNAL_PLUGINS),true) ifneq ($(EXTERNAL_PLUGINS),true)


Loading…
Cancel
Save