소스 검색

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

Romain 6 년 전
부모
커밋
6f6bf9b359
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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)
 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)))
 ifneq (,$(wildcard $(PLUGIN_JAVA_DIR)))
 $(DB_PROXY_JAR): $(shell find $(PLUGIN_JAVA_DIR) -type f)
 $(DB_PROXY_JAR): $(shell find $(PLUGIN_JAVA_DIR) -type f)
 	mkdir -p $(PLUGIN_JAVA_LIB)
 	mkdir -p $(PLUGIN_JAVA_LIB)
@@ -62,3 +63,6 @@ else
 $(DB_PROXY_JAR):
 $(DB_PROXY_JAR):
 	$(error Cannot build DBProxy plugin without source)
 	$(error Cannot build DBProxy plugin without source)
 endif
 endif
+else:
+	@echo 'Skipping DB Proxy Jar build as BUILD_DB_PROXY not set.'
+endif