[bcl] Only build Mono.Btls.Interface and btls tool when BTLS is enabled
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 25 Oct 2016 17:49:17 +0000 (19:49 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 25 Oct 2016 19:26:49 +0000 (21:26 +0200)
mcs/build/executable.make
mcs/class/Mono.Btls.Interface/Makefile
mcs/tools/btls/Makefile

index afcad223f8e969f9261f2d7c631a2b624beefbc7..8acb0f5df619f789fd717207654d9178d6d9d178 100644 (file)
@@ -42,7 +42,9 @@ executable_CLEAN_FILES += $(build_lib) $(build_lib).so $(build_lib).mdb $(build_
 
 makefrag = $(depsdir)/$(PROFILE)_$(base_prog).makefrag
 
+ifndef NO_BUILD
 all-local: $(the_lib) $(PROGRAM_config)
+endif
 
 install-local: all-local
 test-local: all-local
index ea7e128a3f01c52de628895687af170131cc3bcf..aa5b54c83f9bbf51a2a45fe22a64c38b2fca451e 100644 (file)
@@ -6,6 +6,13 @@ LIBRARY = Mono.Btls.Interface.dll
 LIB_REFS = System Mono.Security
 LIB_MCS_FLAGS = -unsafe -nowarn:1030 -keyfile:../mono.pub -delaysign -d:SECURITY_DEP
 
+ifndef HAVE_BTLS
+NO_INSTALL = yes
+NO_SIGN_ASSEMBLY = yes
+NO_TEST = yes
+NO_BUILD = yes
+endif
+
 include ../../build/library.make
 
 $(the_lib): ../Mono.Security/Makefile
index b871a0f5e14ee95af074ce1db6a962ec50c33407..b551fa782c6852c06adbf366c711836a0b2ee039 100644 (file)
@@ -6,4 +6,12 @@ LOCAL_MCS_FLAGS =
 LIB_REFS = System Mono.Security Mono.Btls.Interface
 PROGRAM = btls-cert-sync.exe
 
+ifndef HAVE_BTLS
+PROGRAM_NAME = dummy-btls-cert-sync.exe
+NO_INSTALL = yes
+NO_SIGN_ASSEMBLY = yes
+NO_TEST = yes
+NO_BUILD = yes
+endif
+
 include ../../build/executable.make