Changeset 3186 in vbox
- Timestamp:
- Jun 20, 2007 3:32:16 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r3182 r3186 538 538 ifeq ($(BUILD_TARGET),l4) 539 539 L4LINUX26_INCDIR := \ 540 540 $(L4LINUX26_DIR)/include \ 541 541 $(L4LINUX26_DIR)/include/asm-l4/i386-arch 542 542 # support splitted Linux kernels (make O=<build directory>) … … 549 549 endif 550 550 L4_INCDIR := \ 551 552 553 554 555 556 557 558 551 $(L4_OBJ)/include/uclibc++ \ 552 $(L4_OBJ)/include/x86/uclibc \ 553 $(L4_OBJ)/include/uclibc \ 554 $(L4LINUX26_INCDIR) \ 555 $(L4_OBJ)/include/x86/$(L4_API) \ 556 $(L4_OBJ)/include/x86 \ 557 $(L4_OBJ)/include \ 558 $(L4_DIR)/tool/dice/include 559 559 L4_LIBDIR := \ 560 560 $(L4_DIR)/build-x86-$(L4_CPU)-$(L4_API)/lib/x86_$(L4_CPU)/$(L4_API) 561 561 endif # BUILD_TARGET == l4 562 562 endif # L4_DIR … … 802 802 VBOX_PATH_XPCOM_IDL ?= $(VBOX_PATH_SDK)/idl 803 803 VBOX_XPCOM_INCS ?= \ 804 805 806 807 808 809 804 $(VBOX_PATH_SDK)/include \ 805 $(VBOX_PATH_SDK)/include/xpcom \ 806 $(VBOX_PATH_SDK)/include/xpcom/nsprpub \ 807 $(VBOX_PATH_SDK)/include/xpcom/string \ 808 $(VBOX_PATH_SDK)/include/xpcom/xpcom \ 809 $(VBOX_PATH_SDK)/include/xpcom/ipcd 810 810 ifneq ($(BUILD_TARGET),os2) 811 811 # libIDL-config (for xpcom18a4) … … 1051 1051 ifeq ($(filter-out win os2 darwin,$(BUILD_TARGET)),) 1052 1052 SDK_VBOX_FFMPEG_INCS ?= \ 1053 1053 $(PATH_ROOT)/src/libs/ffmpeg-20060710/libavutil \ 1054 1054 $(PATH_ROOT)/src/libs/ffmpeg-20060710/libavcodec \ 1055 1055 $(PATH_ROOT)/src/libs/ffmpeg-20060710/libavformat … … 1654 1654 1655 1655 # 1656 # Template for building executables that is part of the VBox MAIN component. 1657 # 1658 TEMPLATE_VBOXMAINEXE = VBox Main Executables 1656 # Template for building executables that are part of the VBox Main component 1657 # (COM/XPCOM interface to VirtualBox). 1658 # 1659 1660 TEMPLATE_VBOXMAINEXE = VBox Main Executable 1659 1661 TEMPLATE_VBOXMAINEXE_ASTOOL = $(VBOX_ASTOOL) 1660 1662 TEMPLATE_VBOXMAINEXE_ASFLAGS = $(VBOX_ASFLAGS) … … 1663 1665 TEMPLATE_VBOXMAINEXE_INCS = \ 1664 1666 $(VBOX_PATH_SDK)/include 1665 ifdef VBOX_WITH_XPCOM1666 TEMPLATE_VBOXMAINEXE_INCS += \1667 $(VBOX_XPCOM_INCS)1668 endif1669 1667 1670 1668 ifeq ($(BUILD_TARGET),win) … … 1684 1682 TEMPLATE_VBOXMAINEXE_CFLAGS.kprofile = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS.kprofile) 1685 1683 TEMPLATE_VBOXMAINEXE_INCS += \ 1686 1684 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) 1687 1685 TEMPLATE_VBOXMAINEXE_LDFLAGS = \ 1688 1686 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LARGEADDRESSAWARE /DEBUG\ … … 1703 1701 else # the GCC guys: 1704 1702 1705 TEMPLATE_VBOXMAINEXE_DEFS += VBOX_WITH_XPCOM1706 1703 TEMPLATE_VBOXMAINEXE_TOOL = $(VBOX_GCC_TOOL) 1707 1704 TEMPLATE_VBOXMAINEXE_CXXFLAGS = -g -Wall -Wno-long-long -Wno-trigraphs -pipe -Wno-non-virtual-dtor -fshort-wchar -fpermissive $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) … … 1711 1708 TEMPLATE_VBOXMAINEXE_CFLAGS.debug = -fno-inline 1712 1709 TEMPLATE_VBOXMAINEXE_CFLAGS.kprofile = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS.kprofile) 1713 TEMPLATE_VBOXMAINEXE_INCS += $(VBOX_XPCOM_INCS)1714 1710 ifeq ($(BUILD_TARGET),linux) 1715 TEMPLATE_VBOXMAINEXE_LIBS = pthread m rt 1711 TEMPLATE_VBOXMAINEXE_LIBS = pthread m rt $(LIB_RUNTIME) 1716 1712 else ifeq ($(BUILD_TARGET),l4) 1717 1713 TEMPLATE_VBOXMAINEXE_LIBS = $(LIB_RUNTIME) … … 1739 1735 endif # !win 1740 1736 1741 # 1742 # Template for building the Main components. 1743 # This differ from VBOXMAINEXE only in PIC handling and similar DLL stuff. 1744 # 1745 TEMPLATE_VBOXMAIN = VBox Main Components 1746 TEMPLATE_VBOXMAIN_EXTENDS = VBOXMAINEXE 1737 # Add COM/XPCOM stuff 1738 ifdef VBOX_WITH_XPCOM 1739 TEMPLATE_VBOXMAINEXE_DEFS += VBOX_WITH_XPCOM 1740 TEMPLATE_VBOXMAINEXE_INCS += \ 1741 $(VBOX_XPCOM_INCS) 1742 TEMPLATE_VBOXMAINEXE_LIBS += \ 1743 $(PATH_LIB)/VBoxXPCOM$(VBOX_SUFF_LIB) \ 1744 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) \ 1745 $(LIB_XPCOM) 1746 else 1747 ifeq ($(BUILD_TARGET),win) 1748 TEMPLATE_VBOXMAINEXE_LIBS += \ 1749 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 1750 endif 1751 endif 1752 1753 # 1754 # Template for building the Main DLL modules (such as in-process COM/XPCOM 1755 # components for Main). 1756 # 1757 # This differs from VBOXMAINEXE only in PIC handling and similar DLL stuff. 1758 # 1759 1760 TEMPLATE_VBOXMAINDLL = VBox Main Component (shared library) 1761 TEMPLATE_VBOXMAINDLL_EXTENDS = VBOXMAINEXE 1747 1762 ifeq ($(BUILD_TARGET_ARCH),amd64) 1748 1763 ifneq ($(BUILD_TARGET),win) 1749 TEMPLATE_VBOXMAIN_DEFS = PIC $(TEMPLATE_VBOXMAINEXE_DEFS) 1750 TEMPLATE_VBOXMAIN_CFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_CFLAGS) 1751 TEMPLATE_VBOXMAIN_CXXFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_CXXFLAGS) 1752 TEMPLATE_VBOXMAIN_LDFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_LDFLAGS) 1753 endif 1754 endif 1755 TEMPLATE_VBOXMAIN_LDFLAGS.darwin = $(filter-out -bind_at_load,$(TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin)) 1756 1757 # 1758 # Template for building executables that use the VBox MAIN component (COM stuff etc.). 1759 # 1760 TEMPLATE_VBOXMAINCLIENTEXE = VBox MAIN Client (executable) 1761 TEMPLATE_VBOXMAINCLIENTEXE_EXTENDS = VBOXMAINCLIENT 1762 1763 ## @todo Cleanup the EXE/DLL usage of this template. In the mean time, don't use this template. 1764 TEMPLATE_VBOXMAINCLIENT = VBox MAIN Client (executrable) 1765 TEMPLATE_VBOXMAINCLIENT_EXTENDS = VBOXMAINEXE 1764 TEMPLATE_VBOXMAINDLL_DEFS = PIC $(TEMPLATE_VBOXMAINEXE_DEFS) 1765 TEMPLATE_VBOXMAINDLL_CFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_CFLAGS) 1766 TEMPLATE_VBOXMAINDLL_CXXFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_CXXFLAGS) 1767 TEMPLATE_VBOXMAINDLL_LDFLAGS = -fPIC $(TEMPLATE_VBOXMAINEXE_LDFLAGS) 1768 endif 1769 endif 1770 TEMPLATE_VBOXMAINDLL_LDFLAGS.darwin = $(filter-out -bind_at_load,$(TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin)) 1771 1772 ifdef VBOX_WITH_XPCOM 1773 # XPCOM component modules don't need the XPCOM glue library 1774 TEMPLATE_VBOXMAINDLL_LIBS = $(filter-out \ 1775 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB),\ 1776 $(TEMPLATE_VBOXMAINEXE_LIBS)) 1777 endif 1778 1779 # 1780 # Template for building the Main static libraries. 1781 # 1782 # This differs from VBOXMAINEXE only that it zeroes out the _LIBS definition. 1783 # 1784 1785 TEMPLATE_VBOXMAINLIB = VBox Main Component (static library) 1786 TEMPLATE_VBOXMAINLIB_EXTENDS = VBOXMAINEXE 1787 TEMPLATE_VBOXMAINLIB_LIBS = 1788 1789 # 1790 # Template for building executables that use the VBox Main component. 1791 # 1792 1793 TEMPLATE_VBOXMAINCLIENTEXE = VBox Main Client (executable) 1794 TEMPLATE_VBOXMAINCLIENTEXE_EXTENDS = VBOXMAINEXE 1766 1795 ifeq ($(BUILD_TARGET),win) 1767 TEMPLATE_VBOXMAINCLIENT _LIBS.win = $(TEMPLATE_VBOXMAINEXE_LIBS.win) \1796 TEMPLATE_VBOXMAINCLIENTEXE_LIBS.win = $(TEMPLATE_VBOXMAINEXE_LIBS.win) \ 1768 1797 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \ 1769 1798 $(PATH_SDK_WINPSDK_LIB)/User32.Lib \ … … 1774 1803 $(PATH_SDK_WINPSDK_LIB)/Uuid.Lib 1775 1804 else 1776 TEMPLATE_VBOXMAINCLIENT_LIBS = $(TEMPLATE_VBOXMAINEXE_LIBS) \ 1777 $(PATH_LIB)/VBoxXPCOM$(VBOX_SUFF_LIB) \ 1778 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) \ 1779 $(LIB_XPCOM) \ 1780 $(LIB_RUNTIME) 1781 1782 TEMPLATE_VBOXMAINCLIENT_DEFS = $(TEMPLATE_VBOXMAINEXE_DEFS) \ 1805 TEMPLATE_VBOXMAINCLIENTEXE_DEFS = $(TEMPLATE_VBOXMAINEXE_DEFS) \ 1783 1806 NDEBUG TRIMMED 1784 ## Wonder why we compile main with defaults for these two and then drops it in the client executables... 1785 TEMPLATE_VBOXMAINCLIENT_CXXFLAGS = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS) \ 1786 -fno-rtti -fno-exceptions 1787 TEMPLATE_VBOXMAINCLIENT_CXXFLAGS.linux = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS.linux) \ 1807 ## @todo remove 1808 ## Wonder why we compile main with defaults for these two and then drops it 1809 ## in the client executables... 1810 #TEMPLATE_VBOXMAINCLIENTEXE_CXXFLAGS = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS) \ 1811 # -fno-rtti -fno-exceptions 1812 TEMPLATE_VBOXMAINCLIENTEXE_CXXFLAGS.linux = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS.linux) \ 1788 1813 -pthread 1789 TEMPLATE_VBOXMAINCLIENT_LDFLAGS.darwin = $(TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin) \ 1790 -bind_at_load -framework Carbon 1791 endif 1792 1793 # 1794 # Template for building shared libraries / DLLs that use the VBox MAIN component (COM stuff etc.). 1795 # This differ from VBOXMAINCLIENTEXE only in PIC handling and similar DLL stuff. 1796 # 1797 TEMPLATE_VBOXMAINCLIENTDLL = VBox MAIN Client Shared Libraries 1814 TEMPLATE_VBOXMAINCLIENTEXE_LDFLAGS.darwin = $(TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin) \ 1815 -bind_at_load -framework Carbon 1816 endif 1817 1818 # 1819 # Template for building shared libraries / DLLs that use the VBox Main component. 1820 # 1821 # This differs from VBOXMAINCLIENTEXE only in PIC handling and similar DLL stuff. 1822 # 1823 1824 TEMPLATE_VBOXMAINCLIENTDLL = VBox MAIN Client (shared library) 1798 1825 TEMPLATE_VBOXMAINCLIENTDLL_EXTENDS = VBOXMAINCLIENTEXE 1799 1826 ifeq ($(BUILD_TARGET_ARCH),amd64) … … 1811 1838 # Template for building Qt GUI executables. 1812 1839 # 1840 1813 1841 TEMPLATE_VBOXQTGUIEXE = VBox Qt GUI Executable 1814 1842 TEMPLATE_VBOXQTGUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT $(ARCH_BITS_DEFS) … … 1823 1851 ifdef VBOX_USE_VCC80 1824 1852 TEMPLATE_VBOXQTGUIEXE_CXXFLAGS = \ 1825 1853 -nologo -Zm200 -W3 -MD -EHsc -Zc:wchar_t- 1826 1854 TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.debug = -RTCsu 1827 1855 else … … 1831 1859 endif 1832 1860 TEMPLATE_VBOXQTGUIEXE_INCS += \ 1833 1861 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) 1834 1862 TEMPLATE_VBOXQTGUIEXE_LDFLAGS = \ 1835 1836 1863 /NOD /NOLOGO /INCREMENTAL:NO /MAPINFO:EXPORTS /DEBUG \ 1864 /DELAYLOAD:oleaut32.dll 1837 1865 TEMPLATE_VBOXQTGUIEXE_SDKS = WINPSDK 1838 1866 TEMPLATE_VBOXQTGUIEXE_LIBS = \ 1839 1867 $(LIB_QT) \ 1840 1868 $(LIB_QTMAIN) \ 1841 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \ 1842 $(LIB_RUNTIME) \ 1843 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcprt.lib \ 1844 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcrt.lib \ 1845 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \ 1846 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib \ 1847 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib 1869 $(LIB_RUNTIME) \ 1870 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcprt.lib \ 1871 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcrt.lib \ 1872 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \ 1873 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib \ 1874 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib 1848 1875 TEMPLATE_VBOXQTGUIEXE_POST_CMDS = $(VBOX_SIGN_IMAGE_CMDS) 1849 1876 1850 1877 else # the gcc guys: 1851 1878 TEMPLATE_VBOXQTGUIEXE_TOOL = $(VBOX_GCC_TOOL) 1852 TEMPLATE_VBOXQTGUIEXE_DEFS += VBOX_WITH_XPCOM1853 1879 TEMPLATE_VBOXQTGUIEXE_DEFS.linux = _REENTRANT 1854 1880 1855 1881 TEMPLATE_VBOXQTGUIEXE_INCS += \ 1856 $(LIB_SDL_INC) \ 1857 $(VBOX_XPCOM_INCS) 1882 $(LIB_SDL_INC) 1858 1883 TEMPLATE_VBOXQTGUIEXE_CXXFLAGS = \ 1859 1860 1884 -pipe -Wall -W -frtti -fno-exceptions -Wno-non-virtual-dtor \ 1885 -Wno-long-long -fshort-wchar -fno-strict-aliasing \ 1861 1886 $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) 1862 1887 TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.linux = -pthread 1863 1888 ## @todo no $(LIB_QTMAIN) here? 1864 1889 TEMPLATE_VBOXQTGUIEXE_LIBS = \ 1865 1890 $(LIB_QT) \ 1866 1891 $(LIB_SDL) \ 1867 $(PATH_LIB)/VBoxXPCOM$(VBOX_SUFF_LIB) \ 1868 $(LIB_RUNTIME) \ 1869 $(LIB_REM) \ 1870 $(LIB_VMM) \ 1871 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) \ 1872 $(LIB_XPCOM) 1892 $(LIB_RUNTIME) \ 1893 $(LIB_REM) \ 1894 $(LIB_VMM) 1873 1895 1874 1896 ifeq ($(BUILD_TARGET_ARCH),amd64) 1875 1897 TEMPLATE_VBOXQTGUIEXE_LIBPATH = \ 1876 1898 $(VBOX_PATH_QT)/lib64 $(VBOX_PATH_QT)/lib 1877 1899 else 1878 1900 TEMPLATE_VBOXQTGUIEXE_LIBPATH = \ 1879 1901 $(VBOX_PATH_QT)/lib 1880 1902 endif 1881 1903 … … 1890 1912 else 1891 1913 TEMPLATE_VBOXQTGUIEXE_LIBS += \ 1892 1893 1894 1914 Xext \ 1915 X11 \ 1916 m \ 1895 1917 $(LIB_PTHREAD) 1896 1918 TEMPLATE_VBOXQTGUIEXE_LIBPATH += \ … … 1898 1920 endif 1899 1921 1922 endif 1923 1924 # Add COM/XPCOM stuff 1925 ifdef VBOX_WITH_XPCOM 1926 TEMPLATE_VBOXQTGUIEXE_DEFS += VBOX_WITH_XPCOM 1927 TEMPLATE_VBOXQTGUIEXE_INCS += \ 1928 $(VBOX_XPCOM_INCS) 1929 TEMPLATE_VBOXQTGUIEXE_LIBS += \ 1930 $(PATH_LIB)/VBoxXPCOM$(VBOX_SUFF_LIB) \ 1931 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) \ 1932 $(LIB_XPCOM) 1933 else 1934 ifeq ($(BUILD_TARGET),win) 1935 TEMPLATE_VBOXQTGUIEXE_LIBS += \ 1936 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 1937 endif 1900 1938 endif 1901 1939 … … 1953 1991 TEMPLATE_VBOXBLDPROG_CFLAGS.kprofile = $(TEMPLATE_VBOXBLDPROG_CXXFLAGS.kprofile) 1954 1992 TEMPLATE_VBOXBLDPROG_LDFLAGS = \ 1955 1993 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LARGEADDRESSAWARE /DEBUG \ 1956 1994 /DISALLOWLIB:libcd.lib \ 1957 1995 /DISALLOWLIB:libcmtd.lib \ … … 1961 1999 /DISALLOWLIB:msvcprtd.lib 1962 2000 TEMPLATE_VBOXBLDPROG_LIBS = \ 1963 1964 1965 2001 $(PATH_TOOL_$(TEMPLATE_VBOXBLDPROG_TOOL)_LIB)/oldnames.lib \ 2002 $(PATH_TOOL_$(TEMPLATE_VBOXBLDPROG_TOOL)_LIB)/libcmt.lib \ 2003 $(PATH_TOOL_$(TEMPLATE_VBOXBLDPROG_TOOL)_LIB)/libcpmt.lib 1966 2004 1967 2005 else -
trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk
r2981 r3186 26 26 PROGRAMS = VBoxManage 27 27 28 VBoxManage_TEMPLATE = VBOXMAINCLIENT 28 VBoxManage_TEMPLATE = VBOXMAINCLIENTEXE 29 29 VBoxManage_SOURCES = \ 30 30 VBoxManage.cpp \ -
trunk/src/VBox/Frontends/VBoxSDL/Makefile.kmk
r2981 r3186 37 37 -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe 38 38 else 39 VBoxSDL_TEMPLATE = VBOXMAINCLIENT 39 VBoxSDL_TEMPLATE = VBOXMAINCLIENTEXE 40 40 endif 41 41 VBoxSDL_SDKS = LIBSDL -
trunk/src/VBox/Main/Makefile.kmk
r2981 r3186 55 55 OTHER_CLEAN = \ 56 56 $(PATH_BIN)/comregister.cmd \ 57 58 59 60 61 62 63 57 $(VBOX_PATH_SDK)/include/VirtualBox.h \ 58 $(IDLFILE) \ 59 $(VBOX_PATH_SDK)/lib/VirtualBox.tlb \ 60 $(VBOX_PATH_SDK)/lib/VirtualBox_i.c \ 61 $(PATH_VBoxCOM)/VirtualBox.h \ 62 $(PATH_VBoxCOM)/VirtualBox_i.c \ 63 $(PATH_VBoxCOM)/VirtualBox.tlb 64 64 else 65 65 INSTALLS = xpcom-components … … 73 73 OTHERS = $(IDLTYPELIB) 74 74 OTHER_CLEAN = \ 75 76 77 75 $(IDLFILE) \ 76 $(IDLHEADER) \ 77 $(IDLTYPELIB) 78 78 79 79 endif … … 105 105 # VBoxSVC executable 106 106 # 107 107 108 VBoxSVC_TEMPLATE = VBOXMAINEXE 108 109 VBoxSVC_DEFS = CFGLDR_HAVE_COM IN_CFGLDR_R3 … … 128 129 VBoxSVC_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H 129 130 endif 131 130 132 VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE 131 133 VBoxSVC_DEFS.win.x86 += _WIN32_WINNT=0x0500 … … 136 138 $(PATH_VBoxCOM) \ 137 139 $(PATH_CURRENT) 138 ifdef VBOX_WITH_XPCOM 140 ifeq ($(BUILD_TARGET),win) 141 VBoxSVC_LIBS += \ 142 $(PATH_LIB)/VBoxDDU$(VBOX_SUFF_LIB) \ 143 $(PATH_LIB)/VBoxXML$(VBOX_SUFF_LIB) 144 else 139 145 VBoxSVC_LIBS += \ 140 146 $(PATH_BIN)/VBoxDDU$(VBOX_SUFF_DLL) \ 141 $(PATH_BIN)/VBoxXML$(VBOX_SUFF_DLL) \ 142 $(TARGET_VBoxXPCOM) 143 VBoxSVC_LIBS += \ 144 $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) \ 145 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 146 VBoxSVC_LIBS.darwin = \ 147 $(PATH_BIN)/VBoxXML$(VBOX_SUFF_DLL) 148 endif 149 VBoxSVC_LIBS.darwin = \ 147 150 $(LIB_VMM) \ 148 151 $(LIB_REM) 149 else 150 VBoxSVC_LIBS = \ 151 $(PATH_LIB)/VBoxDDU$(VBOX_SUFF_LIB) \ 152 $(PATH_LIB)/VBoxXML$(VBOX_SUFF_LIB) \ 153 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 154 endif 152 155 153 ifdef VBOX_WITH_LIBHAL 156 154 VBoxSVC_CXXFLAGS += \ … … 226 224 # VBoxSVC wrapper module 227 225 # 226 228 227 ifdef VBOX_WITH_XPCOM 229 228 230 VBoxSVCM_TEMPLATE = VBOXMAIN 229 VBoxSVCM_TEMPLATE = VBOXMAINDLL 231 230 ifneq ($(BUILD_TARGET),linux) 232 231 VBoxSVCM_INST = $(INST_BIN)components/ … … 236 235 include \ 237 236 $(PATH_VBoxC) \ 238 $(PATH_VBoxCOM) \239 237 $(PATH_CURRENT) 240 238 VBoxSVCM_SOURCES = \ 241 239 linux/server_module.cpp 242 VBoxSVCM_LIBS = \243 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL)244 240 VBoxSVCM_LDFLAGS.darwin = \ 245 241 -install_name @executable_path/components/VBoxSVCM.dylib \ … … 258 254 # VBoxC module 259 255 # 260 VBoxC_TEMPLATE = VBOXMAIN 256 257 VBoxC_TEMPLATE = VBOXMAINDLL 261 258 ifneq ($(filter-out linux win,$(BUILD_TARGET)),) 262 259 VBoxC_INST = $(INST_BIN)components/ 263 260 endif 261 264 262 VBoxC_DEFS = IN_RING3 IN_CFGLDR_R3 265 263 VBoxC_DEFS += VBOX_COM_INPROC 264 266 265 ifdef VBOX_WITH_VRDP 267 266 VBoxC_DEFS += VBOX_VRDP IN_VRDP_R3 … … 282 281 VBoxC_DEFS += VBOX_WITH_WINMM 283 282 endif 283 284 284 VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500 285 285 VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510 286 286 287 VBoxC_INCS = \ 287 288 include \ … … 290 291 VBoxC_INCS.win := \ 291 292 $(PATH_SUB_CURRENT) 293 292 294 VBoxC_LDFLAGS.darwin = \ 293 295 -install_name @executable_path/components/VBoxSVCM.dylib \ … … 296 298 VBoxC_LDFLAGS.win = /MANIFEST 297 299 endif 298 ifdef VBOX_WITH_XPCOM 299 VBoxC_LIBS = \ 300 $(TARGET_VBoxXPCOM) \ 301 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 302 ifneq ($(BUILD_TARGET),darwin) # Why is a XPCOM component linking with the glue? Because of the old com.cpp? 303 VBoxC_LIBS += $(PATH_LIB)/VBoxXPCOMGlue$(VBOX_SUFF_LIB) 304 endif 305 else 306 VBoxC_LIBS = \ 307 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 308 endif 300 309 301 VBoxC_LIBS += \ 310 302 $(LIB_VMM) \ 311 303 $(LIB_REM) 304 312 305 VBoxC_SOURCES = \ 313 306 Logging.cpp \ … … 364 357 # VBoxXML 365 358 # 366 VBoxXML_TEMPLATE = VBOXMAIN 359 VBoxXML_TEMPLATE = VBOXMAINDLL 367 360 VBoxXML_SDKS = VBOX_XALAN VBOX_XERCES 368 361 ## @todo Why do we need this? Why isn't it in the template?!? … … 376 369 xml/cfgldr.cpp \ 377 370 xml/cfgldrhlp.cpp 378 ifdef VBOX_WITH_XPCOM379 VBoxXML_LIBS = \380 $(TARGET_VBoxXPCOM) \381 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL)382 endif383 371 VBoxXML_LDFLAGS.darwin = -install_name @executable_path/VBoxXML.dylib -Wl,-x # no debug info please. 384 372 … … 395 383 # tstCFGLdr - broken. 396 384 # 385 397 386 tstCFGLdr_TEMPLATE = VBOXR3 398 387 tstCFGLdr_SDKS = VBOX_XALAN VBOX_XERCES … … 417 406 # VBoxCOM - COM Abstraction Layer library 418 407 # 408 409 ## @todo rename VBoxXPCOM below to VBoxCOM as well (for simplicity!) 410 419 411 VBoxCOM_COMMON_SOURCES = \ 420 412 glue/com.cpp \ … … 424 416 glue/ErrorInfo.cpp 425 417 426 VBoxCOM_TEMPLATE = VBOXMAIN 418 VBoxCOM_TEMPLATE = VBOXMAINLIB 427 419 VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500 428 420 VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510 … … 435 427 # VBoxXPCOM 436 428 # 437 VBoxXPCOM_TEMPLATE = VBOXMAIN 429 VBoxXPCOM_TEMPLATE = VBOXMAINLIB 438 430 VBoxXPCOM_SOURCES = \ 439 431 $(VBoxCOM_COMMON_SOURCES) \ -
trunk/src/VBox/Main/testcase/Makefile.kmk
r2981 r3186 48 48 # tstAPI 49 49 # 50 tstAPI_TEMPLATE = VBOXMAINCLIENT 50 tstAPI_TEMPLATE = VBOXMAINCLIENTEXE 51 51 tstAPI_SOURCES = tstAPI.cpp 52 52 … … 71 71 # tstVBoxAPIWin 72 72 # 73 tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENT 73 tstVBoxAPIWin_TEMPLATE = VBOXMAINCLIENTEXE 74 74 tstVBoxAPIWin_SOURCES = \ 75 75 tstVBoxAPIWin.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.