Changeset 11725 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 27, 2008 10:21:47 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r10637 r11725 34 34 # The targets. 35 35 # 36 PROGRAMS = VirtualBox 36 ifdef VBOX_WITH_HARDENING 37 PROGRAMS += VirtualBox3Hardened 38 DLLS += VirtualBox 39 else 40 PROGRAMS += VirtualBox 41 endif 37 42 ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11 38 DLLS = VBoxKeyboard339 OTHERS = $(PATH_BIN)/vboxkeyboard3.tar.gz43 DLLS += VBoxKeyboard3 44 OTHERS += $(PATH_BIN)/vboxkeyboard3.tar.gz 40 45 endif 41 46 DLLS.os2 += VBoxHlp 42 47 ifndef USE_KBUILD_QT3_UNIT 43 INSTALLS = VirtualBox.nls48 INSTALLS += VirtualBox.nls 44 49 endif 45 50 … … 104 109 $(call MSG_TOOL,tar/gzip,,$@) 105 110 $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(SOURCE_DIRECTORY)/,$(subst $(DIRECTORY_PREFIX),,$(VBoxKeyboard3_TARSOURCES))) | gzip - > $@ 111 112 113 # 114 # Hardened VirtualBox4. 115 # 116 VirtualBox3Hardened_TEMPLATE = VBOXR3HARDENEDEXE 117 VirtualBox3Hardened_SOURCES = src/hardenedmain.cpp 118 VirtualBox3Hardened_NAME = VirtualBox3 119 ifeq ($(KBUILD_TARGET),darwin) ## @todo use .darwin when ticket 36 has been fixed. 120 #VirtualBox3Hardened_INST.darwin = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3 121 VirtualBox3Hardened_INST = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3 122 endif 106 123 107 124 … … 163 180 # VirtualBox - The GUI program. 164 181 # 165 VirtualBox_TEMPLATE = VBOXQTGUIEXE182 VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE) 166 183 VirtualBox_NAME = VirtualBox3 184 ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers. 185 ifeq ($(KBUILD_TARGET),darwin) ## @todo use .darwin when ticket 36 has been fixed. 186 #VirtualBox_INST.darwin = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3 187 VirtualBox_INST = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3 188 endif 189 endif 167 190 ifdef USE_KBUILD_QT3_UNIT 168 191 USES += qt3 … … 177 200 endif 178 201 179 ifeq ($(KBUILD_TARGET),darwin) 180 # For the launch trick we need different inode numbers. 181 VirtualBox_INST = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3 182 # For testing iChat Theater stuff change the sdk path (HACK ALERT) 183 ifdef VBOX_WITH_ICHAT_THEATER 184 VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk 185 endif 186 endif # darwin 202 # For testing iChat Theater stuff change the sdk path (HACK ALERT) 203 ifdef VBOX_WITH_ICHAT_THEATER 204 VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk 205 endif 187 206 188 207 # Import translation sources … … 405 424 endif 406 425 VirtualBox_LDFLAGS.os2 = -Zlinker /PM:PM -Zno-fork 407 VirtualBox_LDFLAGS.darwin = -framework IOKit 426 VirtualBox_LDFLAGS.darwin = \ 427 -framework IOKit -framework Carbon -framework QuickTime \ 428 $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox3.dylib) 408 429 ifdef VBOX_WITH_ICHAT_THEATER 409 430 VirtualBox_LDFLAGS.darwin += -framework Foundation -framework AppKit -framework InstantMessage -framework QuartzCore -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r8155 r11725 114 114 } 115 115 116 int main (int argc, char **argv)116 extern "C" DECLEXPORT(int) TrustedMain (int argc, char **argv, char **envp) 117 117 { 118 /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we119 * are really about to start a VM. Don't do this if we are only starting120 * the selector window. */121 bool fInitGC = false;122 for (int i = 0; i < argc; i++)123 {124 if (!::strcmp(argv[i], "-startvm" ))125 {126 fInitGC = true;127 break;128 }129 }130 RTR3Init (fInitGC, ~(size_t)0);131 132 118 LogFlowFuncEnter(); 133 119 … … 281 267 return rc; 282 268 } 269 270 271 #ifndef VBOX_WITH_HARDENING 272 int main (int argc, char **argv, char **envp) 273 { 274 /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we 275 * are really about to start a VM. Don't do this if we are only starting 276 * the selector window. */ 277 bool fInitGC = false; 278 for (int i = 0; i < argc; i++) 279 { 280 if (!::strcmp (argv[i], "-startvm" )) 281 { 282 fInitGC = true; 283 break; 284 } 285 } 286 RTR3Init (fInitGC, ~(size_t)0); 287 288 return TrustedMain (argc, argv, envp); 289 } 290 #endif /* !VBOX_WITH_HARDENING */ 291
Note:
See TracChangeset
for help on using the changeset viewer.