Explorar el Código

HUE-8740 [librdbms] Make the build of dbproxy.jar optional

Romain hace 6 años
padre
commit
6f6bf9b359
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      desktop/libs/librdbms/Makefile

+ 5 - 1
desktop/libs/librdbms/Makefile

@@ -47,7 +47,8 @@ BLD_DIR_PLUGINS := $(PLUGIN_DIR)/java/target
 
 compile: $(DB_PROXY_JAR)
 
-# Build the plugin jar iff the source is present
+# Build the plugin jar iff BUILD_DB_PROXY is set and the source is present
+ifneq (,$(BUILD_DB_PROXY))
 ifneq (,$(wildcard $(PLUGIN_JAVA_DIR)))
 $(DB_PROXY_JAR): $(shell find $(PLUGIN_JAVA_DIR) -type f)
 	mkdir -p $(PLUGIN_JAVA_LIB)
@@ -62,3 +63,6 @@ else
 $(DB_PROXY_JAR):
 	$(error Cannot build DBProxy plugin without source)
 endif
+else:
+	@echo 'Skipping DB Proxy Jar build as BUILD_DB_PROXY not set.'
+endif