[vbox-dev] [PATH] Build script fix when enable VBOX_WITHOUT_COM
Howard Su
howard0su at gmail.com
Sat Jun 11 00:07:16 PDT 2011
i am playing vbox without xpcom. the following patch fixes the build errors
(the folders needs COM related stuffs to build.)
diff --git a/VirtualBox_OSE/src/VBox/Frontends/Makefile.kmk
b/VirtualBox_OSE/src/VBox/Frontends/Makefile.kmk
index 2019ce7..9f02f5b 100644
--- a/VirtualBox_OSE/src/VBox/Frontends/Makefile.kmk
+++ b/VirtualBox_OSE/src/VBox/Frontends/Makefile.kmk
@@ -23,7 +23,9 @@ ifdef VBOX_WITH_MAIN
include $(PATH_SUB_CURRENT)/VBoxManage/Makefile.kmk
endif
ifndef VBOX_ONLY_DOCS
- include $(PATH_SUB_CURRENT)/VBoxBalloonCtrl/Makefile.kmk
+ ifdef VBOX_WITH_MAIN
+ include $(PATH_SUB_CURRENT)/VBoxBalloonCtrl/Makefile.kmk
+ endif
ifdef VBOX_WITH_VBOXSDL
include $(PATH_SUB_CURRENT)/VBoxSDL/Makefile.kmk
endif
diff --git a/VirtualBox_OSE/src/VBox/HostServices/auth/Makefile.kmk
b/VirtualBox_OSE/src/VBox/HostServices/auth/Makefile.kmk
index fa6d596..85995df 100644
--- a/VirtualBox_OSE/src/VBox/HostServices/auth/Makefile.kmk
+++ b/VirtualBox_OSE/src/VBox/HostServices/auth/Makefile.kmk
@@ -19,7 +19,7 @@ SUB_DEPTH = ../../../..
include $(KBUILD_PATH)/subheader.kmk
# The plugin.
-ifndef VBOX_ONLY_SDK
+if !defined(VBOX_ONLY_SDK) && defined(VBOX_WITH_MAIN)
if ("$(KBUILD_TARGET)" != "linux" && "$(KBUILD_TARGET)" != "solaris") ||
defined(VBOX_WITH_PAM)
DLLS += VBoxAuth
endif
@@ -37,7 +37,7 @@ VBoxAuth_LIBS.darwin = $(LIB_RUNTIME)
VBoxAuth_LDFLAGS.darwin = -framework DirectoryService
# The simple plugin.
-ifndef VBOX_ONLY_SDK
+if !defined(VBOX_ONLY_SDK) && defined(VBOX_WITH_MAIN)
DLLS += VBoxAuthSimple
endif
VBoxAuthSimple_TEMPLATE = VBOXMAINCLIENTDLL
--
-Howard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110611/60d6204d/attachment-0001.html
More information about the vbox-dev
mailing list