Changeset 960 in vbox
- Timestamp:
- Feb 17, 2007 9:12:10 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18727
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r957 r960 49 49 # Install paths. 50 50 PATH_INS := $(PATH_OUT) 51 PATH_BIN = $(PATH_INS)/bin 52 PATH_DLL = $(PATH_INS)/bin 53 PATH_SYS = $(PATH_INS)/bin 54 PATH_LIB = $(PATH_INS)/lib 55 PATH_DOC = $(PATH_INS)/doc 56 INST_TESTCASE = bin/testcase/ 57 INST_ADDITIONS = bin/additions/ 58 INST_ADDITIONS_LIB = lib/additions/ 59 INST_SDK = bin/sdk 60 INST_SDK_SAMPLES = $(INST_SDK)/samples 51 ifeq ($(BUILD_TARGET),darwin) 52 INST_DIST = dist/ 53 INST_SDK = $(INST_DIST)sdk/ 54 INST_SDK_SAMPLES = $(INST_SDK)samples 55 56 # the bundles 57 INST_VIRTUALBOX = $(INST_DIST)VirtualBox.app/ 58 INST_VBOXDRV = $(INST_DIST)VBoxDrv.kext/ 59 INST_VBOXTAP = $(INST_DIST)VBoxTAP.kext/ 60 INST_VBOXUSB = $(INST_DIST)VBoxUSB.kext/ 61 62 # put everything in the VirtualBox app bundle. 63 INST_BIN = $(INST_VIRTUALBOX)Contents/MacOS/ 64 INST_DLL = $(INST_BIN) 65 INST_SYS = $(INST_BIN) 66 INST_TESTCASE = $(INST_BIN)testcase/ 67 INST_ADDITIONS = $(INST_BIN)MacOS/additions/ 68 69 # other paths 70 INST_LIB = lib/ 71 INST_ADDITIONS_LIB = $(PATH_LIB)/additions/ 72 73 else 74 75 INST_BIN = bin/ 76 INST_DIST = $(INST_BIN) 77 INST_DLL = $(INST_BIN) 78 INST_SDK = $(INST_BIN)sdk/ 79 INST_SDK_SAMPLES = $(INST_SDK)samples 80 INST_DLL = $(INST_BIN) 81 INST_SYS = $(INST_BIN) 82 INST_TESTCASE = $(INST_BIN)testcase/ 83 INST_ADDITIONS = $(INST_BIN)additions/ 84 85 INST_LIB = lib/ 86 INST_ADDITIONS_LIB = $(INST_LIB)additions/ 87 endif 88 89 PATH_BIN = $(patsubst %/,%,$(PATH_INS)/$(INST_BIN)) 90 PATH_DLL = $(patsubst %/,%,$(PATH_INS)/$(INST_DLL)) 91 PATH_SYS = $(patsubst %/,%,$(PATH_INS)/$(INST_SYS)) 92 PATH_LIB = $(patsubst %/,%,$(PATH_INS)/$(INST_LIB)) 93 PATH_DOC = $(PATH_OUT)/doc 94 VBOX_PATH_SDK = $(patsubst %/,%,$(PATH_INS)/$(INST_SDK)) 95 96 61 97 62 98 # Delete targets on failure. … … 602 638 LIB_VMM = $(PATH_BIN)/VBoxVMM.dylib 603 639 LIB_VMMGC = $(PATH_BIN)/VMMGC.gc 604 LIB_REM = $(PATH_ BIN)/VBoxREMImp.dylib640 LIB_REM = $(PATH_LIB)/VBoxREMImp.dylib 605 641 endif 606 642 ifeq ($(BUILD_TARGET),l4) … … 701 737 VBOX_WITH_XPCOM = 1 702 738 VBOX_XPIDL ?= $(PATH_OBJ)/src/libs/xpcom18a4/xpidl/xpidl$(HOSTSUFF_EXE) 703 VBOX_PATH_XPCOM_IDL ?= $( PATH_BIN)/sdk/idl739 VBOX_PATH_XPCOM_IDL ?= $(VBOX_PATH_SDK)/idl 704 740 VBOX_XPCOM_INCS ?= \ 705 $( PATH_BIN)/sdk/include \706 $( PATH_BIN)/sdk/include/xpcom \707 $( PATH_BIN)/sdk/include/xpcom/nsprpub \708 $( PATH_BIN)/sdk/include/xpcom/string \709 $( PATH_BIN)/sdk/include/xpcom/xpcom \710 $( PATH_BIN)/sdk/include/xpcom/ipcd741 $(VBOX_PATH_SDK)/include \ 742 $(VBOX_PATH_SDK)/include/xpcom \ 743 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \ 744 $(VBOX_PATH_SDK)/include/xpcom/string \ 745 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 746 $(VBOX_PATH_SDK)/include/xpcom/ipcd 711 747 # libIDL-config (for xpcom18a4) 712 748 ifeq ($(origin VBOX_LIBIDL_CONFIG),undefined) … … 1523 1559 TEMPLATE_VBOXMAINCLIENT_EXTENDS = VBOXMAINEXE 1524 1560 TEMPLATE_VBOXMAINCLIENT_INCS = $(TEMPLATE_VBOXMAINEXE_INCS) \ 1525 $( PATH_BIN)/sdk/include1561 $(VBOX_PATH_SDK)/include 1526 1562 ifdef VBOX_WITH_XPCOM 1527 1563 TEMPLATE_VBOXMAINCLIENT_INCS += \ … … 1564 1600 TEMPLATE_VBOXQTGUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT $(ARCH_BITS_DEFS) 1565 1601 TEMPLATE_VBOXQTGUIEXE_INCS = \ 1566 $( PATH_BIN)/sdk/include \1602 $(VBOX_PATH_SDK)/include \ 1567 1603 $(VBOX_PATH_QT)/include 1568 1604 … … 1785 1821 TEMPLATE_VBOXW32GUESTR3_CFLAGS.kprofile = $(TEMPLATE_VBOXW32GUESTR3_CXXFLAGS.kprofile) 1786 1822 TEMPLATE_VBOXW32GUESTR3_INCS = \ 1787 $( PATH_BIN)/sdk/include1823 $(VBOX_PATH_SDK)/include 1788 1824 TEMPLATE_VBOXW32GUESTR3_LDFLAGS = \ 1789 1825 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LARGEADDRESSAWARE \ -
trunk/Makefile
r957 r960 35 35 INSTALLS = bin 36 36 37 bin_INST = bin/37 bin_INST = $(INST_BIN) 38 38 39 39 # The SDL DLLs -
trunk/src/VBox/Devices/Makefile
r923 r960 95 95 VBoxDD_LIBS.os2 = \ 96 96 $(PATH_BIN)/VBoxDD2.dll 97 VBoxDD_LDFLAGS.darwin = -install_name @executable_path/VBoxDD.dylib 97 98 VBoxDD_LDFLAGS.linux = -Wl,--no-undefined 98 99 VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined … … 117 118 $(LIB_VMM) \ 118 119 $(LIB_RUNTIME) 119 VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined120 120 ifeq ($(BUILD_TARGET),l4) 121 121 VBoxDD2_LIBS += \ … … 123 123 endif 124 124 VBoxDD2_LIBS.darwin += $(LIB_REM) 125 VBoxDD2_LDFLAGS.darwin = -install_name @executable_path/VBoxDD2.dylib 126 VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined 125 127 VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined 126 128 -
trunk/src/VBox/Devices/Storage/testcase/Makefile
r729 r960 29 29 TEMPLATE = VBOXR3EXE 30 30 ifeq ($(filter-out win,$(BUILD_TARGET)),) 31 LIBS= $(PATH_LIB)/VBoxDD.lib31 LIBS = $(PATH_LIB)/VBoxDD.lib 32 32 else 33 LIBS = $(PATH_BIN)/VBoxDD$(VBOX_SUFF_DLL) 33 LIBS = \ 34 $(PATH_BIN)/VBoxDD$(VBOX_SUFF_DLL) \ 35 $(PATH_BIN)/VBoxDD2$(VBOX_SUFF_DLL) \ 36 $(LIB_VMM) \ 37 $(LIB_REM) 34 38 endif 35 39 LIBS += $(LIB_RUNTIME) -
trunk/src/VBox/Frontends/VBoxManage/Makefile
r609 r960 44 44 $(PATH_BIN)/VBoxDD$(VBOX_SUFF_DLL) \ 45 45 $(PATH_BIN)/VBoxXML$(VBOX_SUFF_DLL) \ 46 $(LIB_VMM) \ 46 47 $(LIB_REM) 47 48 -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r382 r960 106 106 } 107 107 108 #ifdef __DARWIN__ 109 #include <iprt/path.h> 110 #include <iprt/process.h> 111 #include <iprt/env.h> 112 113 /** 114 * App bundle tweaks. 115 */ 116 static void DarwinInit (void) 117 { 118 static struct 119 { 120 char var[sizeof ("VBOX_XPCOM_HOME=") - 1]; 121 char path[RTPATH_MAX]; 122 } s; 123 124 strcpy (s.var, "VBOX_XPCOM_HOME="); 125 int rc = RTPathProgram (&s.path[0], sizeof (s.path)); 126 if (RT_FAILURE (rc)) 127 { 128 RTPrintf ("RTPathProgram failed!\n"); 129 exit (1); 130 } 131 132 if (!RTEnvGet ("VBOX_XPCOM_HOME")) 133 RTEnvPut (s.var); 134 } 135 #endif 136 108 137 int main( int argc, char ** argv ) 109 138 { … … 122 151 sigaction (SIGBUS, &sa, NULL); 123 152 sigaction (SIGUSR1, &sa, NULL); 153 #endif 154 155 #ifdef __DARWIN__ 156 DarwinInit(); 124 157 #endif 125 158 -
trunk/src/VBox/HostDrivers/Support/Makefile
r667 r960 184 184 VBoxDrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 185 185 VBoxDrv_LDFLAGS = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded 186 VBoxDrv_INST = bin/VBoxDrv.kext/Contents/MacOS/186 VBoxDrv_INST = $(INST_VBOXDRV)Contents/MacOS/ 187 187 VBoxDrv_SOURCES = \ 188 188 $(VBOX_PATH_SUPPORT)/SUPDRVShared.c \ … … 190 190 191 191 INSTALLS += VBoxDrv.kext 192 VBoxDrv.kext_INST = bin/VBoxDrv.kext/Contents/192 VBoxDrv.kext_INST = $(INST_VBOXDRV)Contents/ 193 193 VBoxDrv.kext_SOURCES = \ 194 194 $(PATH_TARGET)/Info.plist … … 204 204 205 205 INSTALLS += Scripts 206 Scripts_INST = bin/206 Scripts_INST = $(INST_DIST) 207 207 Scripts_SOURCES = \ 208 208 $(VBOX_PATH_SUPPORT)/darwin/load.sh -
trunk/src/VBox/Main/Makefile
r923 r960 46 46 ifeq ($(BUILD_TARGET),win) 47 47 OTHERS = $(PATH_BIN)/comregister.cmd 48 IDLFILE = $( PATH_BIN)/sdk/idl/VirtualBox.idl48 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox.idl 49 49 OTHER_CLEAN = \ 50 50 $(PATH_BIN)/comregister.cmd \ 51 $( PATH_BIN)/sdk/include/VirtualBox.h \51 $(VBOX_PATH_SDK)/include/VirtualBox.h \ 52 52 $(IDLFILE) \ 53 $( PATH_BIN)/sdk/lib/VirtualBox.tlb \54 $( PATH_BIN)/sdk/lib/VirtualBox_i.c \53 $(VBOX_PATH_SDK)/lib/VirtualBox.tlb \ 54 $(VBOX_PATH_SDK)/lib/VirtualBox_i.c \ 55 55 $(PATH_VBoxCOM)/VirtualBox.h \ 56 56 $(PATH_VBoxCOM)/VirtualBox_i.c \ … … 58 58 else 59 59 INSTALLS = xpcom-components 60 IDLFILE = $( PATH_BIN)/sdk/idl/VirtualBox_XPCOM.idl60 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox_XPCOM.idl 61 61 IDLTYPELIB = $(PATH_BIN)/VirtualBox_XPCOM.xpt 62 IDLHEADER = $( PATH_BIN)/sdk/include/VirtualBox_XPCOM.h62 IDLHEADER = $(VBOX_PATH_SDK)/include/VirtualBox_XPCOM.h 63 63 OTHERS = $(IDLTYPELIB) 64 64 OTHER_CLEAN = \ … … 122 122 $(PATH_VBoxSVC) \ 123 123 $(PATH_VBoxCOM) \ 124 $( PATH_BIN)/sdk/include124 $(VBOX_PATH_SDK)/include 125 125 ifneq ($(BUILD_TARGET),win) 126 126 VBoxSVC_INCS += \ … … 136 136 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 137 137 VBoxSVC_LIBS.darwin = \ 138 $(LIB_VMM) \ 138 139 $(LIB_REM) 139 140 else … … 224 225 $(PATH_VBoxC) \ 225 226 $(PATH_VBoxCOM) \ 226 $( PATH_BIN)/sdk/include227 $(VBOX_PATH_SDK)/include 227 228 ifneq ($(BUILD_TARGET),win) 228 229 VBoxC_INCS += \ 229 230 $(VBOX_XPCOM_INCS) 230 231 endif 232 VBoxC_LDFLAGS.darwin = -install_name @executable_path/VBoxC.dylib 231 233 ifdef VBOX_USE_VCC80 232 234 VBoxC_LDFLAGS.win = /MANIFEST … … 307 309 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 308 310 endif 311 VBoxXML_LDFLAGS.darwin = -install_name @executable_path/VBoxXML.dylib -Wl,-x # no debug info please. 309 312 310 313 ## @todo (dmik): temporarily embed SettingsConverter.xsl into VBoxXML, … … 355 358 $(PATH_VBoxCOM)/VirtualBox_i.c 356 359 VBoxCOM_INCS = \ 357 $( PATH_BIN)/sdk/include360 $(VBOX_PATH_SDK)/include 358 361 359 362 … … 366 369 linux/helpers.cpp 367 370 VBoxXPCOM_INCS = \ 368 $( PATH_BIN)/sdk/include \371 $(VBOX_PATH_SDK)/include \ 369 372 include \ 370 373 $(VBOX_XPCOM_INCS) … … 438 441 # Creates the symlinks necessary for making XPCOM work. 439 442 # 440 xpcom-components_INST = bin/components/443 xpcom-components_INST = $(INST_BIN)components/ 441 444 xpcom-components_SYMLINKS = \ 442 445 VBoxC$(SUFF_DLL)=>../VBoxC$(SUFF_DLL) \ … … 491 494 $(IDLFILE): idl/midl.xsl $(XIDLFILE) 492 495 $(call MSG_L1,xsltproc $<,=> $@) 493 $(QUIET)$(MKDIR) -p $( PATH_BIN)/sdk/idl496 $(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/idl 494 497 $(QUIET)$(VBOX_XSLTPROC) -o $@ $^ 495 498 … … 506 509 /I idl \ 507 510 $(subst /,\\,$<) 508 $(MKDIR) -p $( PATH_BIN)/sdk/include509 $(CP) $(PATH_VBoxCOM)/VirtualBox.h $( PATH_BIN)/sdk/include510 $(MKDIR) -p $( PATH_BIN)/sdk/lib511 $(CP) $(PATH_VBoxCOM)/VirtualBox.tlb $( PATH_BIN)/sdk/lib512 $(CP) $(PATH_VBoxCOM)/VirtualBox_i.c $( PATH_BIN)/sdk/lib511 $(MKDIR) -p $(VBOX_PATH_SDK)/include 512 $(CP) $(PATH_VBoxCOM)/VirtualBox.h $(VBOX_PATH_SDK)/include 513 $(MKDIR) -p $(VBOX_PATH_SDK)/lib 514 $(CP) $(PATH_VBoxCOM)/VirtualBox.tlb $(VBOX_PATH_SDK)/lib 515 $(CP) $(PATH_VBoxCOM)/VirtualBox_i.c $(VBOX_PATH_SDK)/lib 513 516 514 517 endif -
trunk/src/VBox/Runtime/Makefile
r939 r960 445 445 VBoxRT_TEMPLATE = VBOXR3 446 446 VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL 447 ifeq ($(BUILD_TARGET),darwin) 448 VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE) 449 endif 447 450 VBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3 448 451 VBoxRT_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE)) … … 466 469 VBoxRT_LIBPATH.freebsd = \ 467 470 /usr/local/lib 468 VBoxRT_LDFLAGS.darwin = -framework IOKit 471 VBoxRT_LDFLAGS.darwin = -framework IOKit -install_name @executable_path/VBoxRT.dylib 469 472 ifdef VBOX_USE_VCC80 470 473 VBoxRT_LDFLAGS.win = /MANIFEST … … 482 485 $(PATH_LIB)/VBox-uuid$(VBOX_SUFF_LIB) \ 483 486 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) 487 484 488 485 489 # -
trunk/src/VBox/VMM/Makefile
r1 r960 191 191 VMMGC_LIBS += \ 192 192 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) 193 endif 193 endif 194 194 ifeq ($(VBOX_LDR_FMT32),pe) 195 195 VMMGC_LDFLAGS = -Entry:VMMGCEntry … … 347 347 VBoxVMM_LDFLAGS.win = /DELAYLOAD:dbghelp.dll 348 348 VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined 349 VBoxVMM_LDFLAGS.darwin = -install_name @executable_path/VBoxVMM.dylib 349 350 350 351 include $(PATH_KBUILD)/footer.kmk -
trunk/src/libs/xpcom18a4/Makefile.kmk
r897 r960 77 77 ipc/ipcd/extensions/dconnect/src \ 78 78 ipc/ipcd/extensions/transmngr/common \ 79 $( PATH_BIN)/sdk/include \80 $( PATH_BIN)/sdk/include/xpcom \81 $( PATH_BIN)/sdk/include/xpcom/nsprpub \82 $( PATH_BIN)/sdk/include/xpcom/string \83 $( PATH_BIN)/sdk/include/xpcom/xpcom \84 $( PATH_BIN)/sdk/include/xpcom/ipcd79 $(VBOX_PATH_SDK)/include \ 80 $(VBOX_PATH_SDK)/include/xpcom \ 81 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \ 82 $(VBOX_PATH_SDK)/include/xpcom/string \ 83 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 84 $(VBOX_PATH_SDK)/include/xpcom/ipcd 85 85 TEMPLATE_XPCOM_INCS.darwin = /Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon 86 86 TEMPLATE_XPCOM_INCS.l4 = $(L4_INCDIR) $(VBOX_L4_GCC3_INCS) … … 99 99 TEMPLATE_XPCOMEXE_EXTENDS = XPCOM 100 100 ## @todo undo -fPIC. 101 TEMPLATE_XPCOMEXE_INCS = $(PATH_TARGET) ipc/ipcd/shared/src \ 102 $(PATH_BIN)/sdk/include \ 103 $(PATH_BIN)/sdk/include/xpcom \ 104 $(PATH_BIN)/sdk/include/xpcom/nsprpub \ 105 $(PATH_BIN)/sdk/include/xpcom/string \ 106 $(PATH_BIN)/sdk/include/xpcom/xpcom \ 107 $(PATH_BIN)/sdk/include/xpcom/ipcd 101 TEMPLATE_XPCOMEXE_INCS = $(PATH_TARGET) \ 102 ipc/ipcd/shared/src \ 103 $(VBOX_PATH_SDK)/include \ 104 $(VBOX_PATH_SDK)/include/xpcom \ 105 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \ 106 $(VBOX_PATH_SDK)/include/xpcom/string \ 107 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 108 $(VBOX_PATH_SDK)/include/xpcom/ipcd 108 109 TEMPLATE_XPCOMEXE_LIBS = \ 109 110 $(TARGET_VBox-xpcom-ipcshared) \ … … 138 139 TEMPLATE_XPCOMBLDPROG_CFLAGS.release = -O 139 140 TEMPLATE_XPCOMBLDPROG_CFLAGS.profile = -O 140 TEMPLATE_XPCOMBLDPROG_INCS = $( PATH_BIN)/sdk/include \141 $( PATH_BIN)/sdk/include/xpcom \142 $( PATH_BIN)/sdk/include/xpcom/nsprpub \143 $( PATH_BIN)/sdk/include/xpcom/string \144 $( PATH_BIN)/sdk/include/xpcom/xpcom \145 $( PATH_BIN)/sdk/include/xpcom/ipcd141 TEMPLATE_XPCOMBLDPROG_INCS = $(VBOX_PATH_SDK)/include \ 142 $(VBOX_PATH_SDK)/include/xpcom \ 143 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \ 144 $(VBOX_PATH_SDK)/include/xpcom/string \ 145 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 146 $(VBOX_PATH_SDK)/include/xpcom/ipcd 146 147 TEMPLATE_XPCOMBLDPROG_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $(TARGET_$(hdrinst))) 147 148 … … 507 508 xpidl_DEFS = EXPORT_XPT_API 508 509 ## @todo This assumes HOST == TARGET. 509 xpidl_INST = bin/$(INST_SDK)/bin/510 xpidl_INST = $(INST_SDK)/bin/ 510 511 xpidl_SOURCES = \ 511 512 xpcom/typelib/xpidl/xpidl.c \ … … 953 954 #VBoxXPCOM_LIBS += $(LIB_RUNTIME_EF) 954 955 #VBoxXPCOM_LDFLAGS = -Wl,--whole-archive $(VBoxXPCOM_LIBS) -Wl,--no-whole-archive $(LIB_RUNTIME) 956 VBoxXPCOM_LDFLAGS.darwin = -install_name @executable_path/VBoxXPCOM.dylib 955 957 956 958 ifdef VBOX_IPC_RELEASE_LOG … … 1021 1023 ipc/ipcd/client/src/ipcConnectionUnix.cpp \ 1022 1024 ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp 1025 VBoxXPCOMIPCC_LDFLAGS.darwin = -install_name @executable_path/VBoxXPCOMIPCC.dylib 1023 1026 VBoxXPCOMIPCC_LIBS = \ 1024 1027 $(TARGET_VBox-xpcom-ipcutils) \ … … 1195 1198 OTHER_CLEAN += \ 1196 1199 $(PATH_VBox-xpcom-string)/idl_ts \ 1197 $(addprefix $( PATH_BIN)/sdk/include/,$(notdir $(subst .idl,.h,$(IDLFILES)))) \1198 $(addprefix $( PATH_BIN)/sdk/include/,$(notdir $(subst .idl,.xpt,$(IDLFILES)))) \1199 $(addprefix $( PATH_BIN)/sdk/idl/,$(notdir $(IDLFILES)))1200 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES)))) \ 1201 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.xpt,$(IDLFILES)))) \ 1202 $(addprefix $(VBOX_PATH_SDK)/idl/,$(notdir $(IDLFILES))) 1200 1203 1201 1204 … … 1313 1316 XPIDL_INCS = -I xpcom/base/ -I xpcom/ds/ -I xpcom/components/ -I xpcom/io/ -I xpcom/threads/ -I xpcom/reflect/xptinfo/public/ 1314 1317 define def_IDL 1315 $(addprefix $( PATH_BIN)/sdk/include/,$(notdir $(subst .idl,.h,$(idl)))) \1318 $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(idl)))) \ 1316 1319 $(PATH_TARGET)/$(notdir $(subst .idl,.xpt,$(idl))): $(idl) | $(TARGET_xpidl) 1317 1320 $$(call MSG_L1,xpidl $$<) 1318 $$(QUIET)$(MKDIR) -p $( PATH_BIN)/sdk/include $(PATH_BIN)/sdk/idl1321 $$(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/include $(VBOX_PATH_SDK)/idl 1319 1322 $$(QUIET)$$(TARGET_xpidl) -m header $(XPIDL_INCS) -e $$@ $$< 1320 1323 $$(QUIET)$$(TARGET_xpidl) -m typelib $(XPIDL_INCS) -e $(addprefix $(PATH_TARGET)/,$(notdir $(subst .idl,.xpt,$(idl)))) $$< 1321 $$(QUIET)$(CP) $$< $$( PATH_BIN)/sdk/idl1324 $$(QUIET)$(CP) $$< $$(VBOX_PATH_SDK)/idl 1322 1325 endef 1323 1326 … … 1325 1328 1326 1329 # dummy target. 1327 $(PATH_VBox-xpcom-string)/idl_ts: $(addprefix $( PATH_BIN)/sdk/include/,$(notdir $(subst .idl,.h,$(IDLFILES))))1330 $(PATH_VBox-xpcom-string)/idl_ts: $(addprefix $(VBOX_PATH_SDK)/include/,$(notdir $(subst .idl,.h,$(IDLFILES)))) 1328 1331 $(call MSG_L1,IDL processing completed.) 1329 1332 $(QUIET)$(MKDIR) -p $(dir $@) -
trunk/src/libs/xpcom18a4/xpcom/glue/standalone/nsXPCOMGlue.cpp
r1 r960 111 111 112 112 xpcomLib = PR_LoadLibraryWithFlags(libSpec, PR_LD_LAZY|PR_LD_GLOBAL); 113 #ifdef __DARWIN__ 114 /* works around bundle problem. */ 115 if (!xpcomLib) { 116 const char *home = PR_GetEnv("VBOX_XPCOM_HOME"); 117 if (home) { 118 char path[PATH_MAX]; 119 snprintf(path, sizeof(path), "%s/%s", home, libSpec.value.pathname); 120 libSpec.value.pathname = path; 121 xpcomLib = PR_LoadLibraryWithFlags(libSpec, PR_LD_LAZY|PR_LD_GLOBAL); 122 } 123 } 124 #endif 113 125 if (!xpcomLib) 114 126 return NS_ERROR_FAILURE; … … 162 174 xpcomLib = nsnull; 163 175 } 164 176 165 177 memset(&xpcomFunctions, 0, sizeof(xpcomFunctions)); 166 178 return NS_OK; … … 170 182 #ifndef XPCOM_GLUE_NO_DYNAMIC_LOADING 171 183 extern "C" NS_COM nsresult 172 NS_InitXPCOM2(nsIServiceManager* *result, 184 NS_InitXPCOM2(nsIServiceManager* *result, 173 185 nsIFile* binDirectory, 174 186 nsIDirectoryServiceProvider* appFileLocationProvider) … … 442 454 } 443 455 } 444 456 445 457 #if XP_WIN32 446 // On windows, the current directory is searched before the 447 // PATH environment variable. This is a very bad thing 458 // On windows, the current directory is searched before the 459 // PATH environment variable. This is a very bad thing 448 460 // since libraries in the cwd will be picked up before 449 461 // any that are in either the application or GRE directory. … … 465 477 // Startup the XPCOM Glue that links us up with XPCOM. 466 478 nsresult rv = XPCOMGlueStartup(xpcomLocation); 467 479 468 480 if (NS_FAILED(rv)) { 469 481 NS_WARNING("gre: XPCOMGlueStartup failed"); -
trunk/src/recompiler/new/Makefile.kmk
r663 r960 6 6 # 7 7 # * op.c doesn't compile work correctly with gcc 4. For this we've 8 # checked in op.S, which is the reason why we don't compile op.c 8 # checked in op.S, which is the reason why we don't compile op.c 9 9 # directly but always compile via the assembly file.s 10 10 # * On 64-bit Windows we lack a compiler and have to resort to a 11 11 # linux cross compiler building an ELF relocatable module which 12 12 # we then load using a wrapper module. Thus the REM_MOD mess. 13 # * On platforms using the 64-bit GCC ABI, we're not allowed to 13 # * On platforms using the 64-bit GCC ABI, we're not allowed to 14 14 # generate non-PIC shared objects, and op.c requires the code 15 15 # to be non-PIC. We apply the same trick as we developed for … … 67 67 # L4 must use the no-crt path because it's lacking math stuff it seems... 68 68 # Darwin must use the non-crt path because it can't compile op.c nativly. 69 # All the AMD64 target must use the no-crt path because ELF doesn't like op.c 69 # All the AMD64 target must use the no-crt path because ELF doesn't like op.c 70 70 # when stuffed into a shared library and windows doesn't have 64-bit gcc (yet). 71 71 # … … 99 99 fpu 100 100 dyngen_SOURCES = dyngen.c 101 101 102 102 103 103 # … … 158 158 $(LIB_RUNTIME) 159 159 $(REM_MOD)_LIBS.darwin = \ 160 $(PATH_BIN)/VBoxREMImp.dylib 161 $(REM_MOD)_LDFLAGS.darwin = -read_only_relocs suppress 160 $(TARGET_VBoxREMImp) 161 # $(PATH_BIN)/VBoxREMImp.dylib 162 $(REM_MOD)_LDFLAGS.darwin = -read_only_relocs suppress -multiply_defined warning #-install_name @executable_path/$(REM_MOD).dylib# 162 163 else 163 164 $(REM_MOD)_LIBS = \ … … 182 183 $(REM_MOD)_INCS += $(VBOX_L4_GCC3_INCS) $(L4_INCDIR) 183 184 endif 184 185 185 186 $(REM_MOD)_DEFS += IN_RING3 LOG_USE_C99 186 187 #$(REM_MOD)_DEFS += DEBUG_DISAS DEBUG_PCALL DEBUG_EXEC DEBUG_FLUSH DEBUG_IOPORT DEBUG_SIGNAL DEBUG_TLB_CHECK DEBUG_TB_INVALIDATE DEBUG_TLB # Enables huge amounts of debug logging. … … 189 190 190 191 $(REM_MOD)_LDFLAGS.l4 = -T$(L4_LIBDIR)/../main_rel.ld -nostdlib -Wl,--no-undefined 192 $(REM_MOD)_LDFLAGS.darwin = -read_only_relocs suppress -install_name @executable_path/$(REM_MOD).dylib -multiple_defined warning 191 193 ifeq ($(BUILD_TARGET_ARCH),amd64) 192 194 $(REM_MOD)_LIBS = $(FILE_TOOL_GCC3_LIBGCC) … … 223 225 # 224 226 # The math testcase as a standalone program for testing and debugging purposes. 225 # 227 # 226 228 ## @todo This is a bit messy because of MINGW32. 227 229 #BLDPROGS += testmath … … 259 261 VBoxREMWrapper.cpp \ 260 262 VBoxREMWrapperA.asm 263 VBoxREM_LDFLAGS.darwin = -install_name @executable_path/VBoxREM.dylib 261 264 VBoxREM_LIBS = \ 262 265 $(LIB_VMM) \ … … 269 272 # 270 273 VBoxREMImp_TEMPLATE = VBOXR3 274 ifeq ($(BUILD_TARGET),darwin) 275 VBoxREMImp_INST = $(INST_LIB) 276 endif 271 277 VBoxREMImp_SOURCES.win = VBoxREM.def 272 278 VBoxREMImp_SOURCES.os2 = $(PATH_TARGET)/VBoxREMOS2.def … … 277 283 VBoxREMImp_SONAME.linux = VBoxREM.so 278 284 VBoxREMImp_SONAME.l4 = VBoxREM.s.so 279 VBoxREMImp_LDFLAGS.darwin = -install_name VBoxREM.dylib 285 VBoxREMImp_LDFLAGS.darwin = -install_name @executable_path/VBoxREM.dylib 286 #VBoxREMImp_LDFLAGS.darwin = -install_name VBoxREM.dylib 280 287 VBoxREMImp_LDFLAGS.l4 = -T$(L4_LIBDIR)/../main_rel.ld -nostdlib 281 288 … … 301 308 # Generate the op.S file somehow... 302 309 # 303 # Gathering the flags, defines and include dirs for the command is a lot 304 # of work. Unfortunately, there is only a highly specialized kBuild function 310 # Gathering the flags, defines and include dirs for the command is a lot 311 # of work. Unfortunately, there is only a highly specialized kBuild function 305 312 # for doing this, so we're currently left to our own devices here. 306 313 # 307 # Add something like VBOX_RECOMPILER_OP_GCC = gcc-3.4.6 to LocalConfig.kmk 308 # to be 100% sure that you get a working op.S. My gcc 4.1.1 seems to work 314 # Add something like VBOX_RECOMPILER_OP_GCC = gcc-3.4.6 to LocalConfig.kmk 315 # to be 100% sure that you get a working op.S. My gcc 4.1.1 seems to work 309 316 # fine, so feel free to try VBOX_RECOMPILER_OP_GCC = gcc. 310 317 # … … 325 332 VBOX_RECOMPILER_OP_GCC_OK := dunno 326 333 endif 327 else 334 else 328 335 # If set, assume it's an OK compiler. 329 336 VBOX_RECOMPILER_OP_GCC_OK := yes
Note:
See TracChangeset
for help on using the changeset viewer.