Browse Source

Do not build external plugins in DEBUG mode

They make bigger binaries, take longer to build and sometimes even fail.
We do not need them in DEBUG mode, since they are assumed to be tested and work well

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha1-winvst
falkTX 6 years ago
parent
commit
b93b877fa1
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      source/Makefile.mk
  2. +4
    -0
      source/native-plugins/Makefile

+ 2
- 0
source/Makefile.mk View File

@@ -570,10 +570,12 @@ LINK := ln -sf


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------


ifneq ($(DEBUG),true)
ifneq (,$(wildcard $(CWD)/native-plugins/external/Makefile.mk)) ifneq (,$(wildcard $(CWD)/native-plugins/external/Makefile.mk))
EXTERNAL_PLUGINS = true EXTERNAL_PLUGINS = true
BASE_FLAGS += -DHAVE_EXTERNAL_PLUGINS BASE_FLAGS += -DHAVE_EXTERNAL_PLUGINS
include $(CWD)/native-plugins/external/Makefile.mk include $(CWD)/native-plugins/external/Makefile.mk
endif endif
endif


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------

+ 4
- 0
source/native-plugins/Makefile View File

@@ -44,8 +44,12 @@ OBJS = \
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# Include external plugins, if present # Include external plugins, if present


ifeq ($(EXTERNAL_PLUGINS),true)
ifneq (,$(wildcard external/Makefile.mk2)) ifneq (,$(wildcard external/Makefile.mk2))
include external/Makefile.mk2 include external/Makefile.mk2
else
$(error External plugins build requested but submodule not present, cannot build)
endif
endif endif


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save