VirtualBox

Changeset 6595 in vbox for trunk


Ignore:
Timestamp:
Jan 30, 2008 12:10:22 PM (17 years ago)
Author:
vboxsync
Message:

Merge VBoxClient on solaris and linux.

Location:
trunk/src/VBox/Additions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r6165 r6595  
    4848                $(INSTARGET_vboxmod-bin) \
    4949                $(PATH_BIN)/additions/vboxadd-timesync \
    50                 $(PATH_BIN)/additions/vboxadd-xclient \
     50                $(PATH_BIN)/additions/VBoxClient \
    5151                installer/vboxadd-timesync.sh \
    5252                installer/98vboxadd-xclient \
     
    8383        $(QUIET)$(INSTALL) -m 0644 installer/test.c $(PATH_TARGET)/install/module/test/
    8484        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-timesync $(PATH_TARGET)/install/vboxadd-timesync
    85         $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-xclient $(PATH_TARGET)/install/vboxadd-xclient
     85        $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/VBoxClient $(PATH_TARGET)/install/VBoxClient
    8686        $(QUIET)$(SED) "s;_VERSION_;$(VBOX_VERSION_STRING);g" installer/install.sh | $(SED) "s;_BUILD_;$(shell date);g" | $(SED) "s;_OSE_;$(VBOX_OSE);g" | $(SED) "s;_BUILDTYPE_;$(BUILD_TYPE);g" > $(PATH_TARGET)/install/install_.sh
    8787        $(QUIET)$(INSTALL) -m 0755 $(PATH_TARGET)/install/install_.sh $(PATH_TARGET)/install/install.sh
  • trunk/src/VBox/Additions/x11/xclient/Makefile.kmk

    r6580 r6595  
    11# $Id$
    22## @file
    3 # Makefile for the VirtualBox Linux Guest Addition X11 Client.
     3# Makefile for the VirtualBox Guest Addition X11 Client.
    44#
    55
     
    1919include $(PATH_KBUILD)/header.kmk
    2020
    21 if1of ($(BUILD_TARGET),linux l4)
     21#
     22# VBoxClient (clipboard)
     23#
     24PROGRAMS += VBoxClient
     25ifneq ($(BUILD_TARGET),linux)
     26 VBoxClient_TEMPLATE = VBOXGUESTR3EXE
     27else
     28 VBoxClient_TEMPLATE = VBOXLNX32GUESTR3EXE
     29endif
     30VBoxClient_DEFS    += VBOX_X11_CLIPBOARD VBOX_HGCM
     31VBoxClient_DEFS    += _GNU_SOURCE
     32VBoxClient_SOURCES  = \
     33        main.cpp
    2234
    23 #
    24 # vboxadd-xclient.
    25 #
    26 PROGRAMS += vboxadd-xclient
    27 vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
    28 vboxadd-xclient_SOURCES  = clipboard.cpp main.cpp
    29 vboxadd-xclient_DEFS    += VBOX_X11_CLIPBOARD
    30 vboxadd-xclient_DEFS    += _GNU_SOURCE VBOX_HGCM
    31 vboxadd-xclient_LIBPATH  = \
     35ifneq ($(BUILD_TARGET),linux)
     36 VBoxClient_SOURCES += \
     37        clipboard-new.cpp
     38 VBoxClient_LIBS    = \
     39        $(VBOX_LIB_IPRT_GUEST_R3) \
     40        $(VBOX_LIB_VBGL_R3) \
     41        X11 \
     42        Xt
     43else
     44 VBoxClient_SOURCES += \
     45        clipboard.cpp
     46 VBoxClient_LIBPATH  = \
    3247        $(VBOX_LIBPATH32_X11)
    33 vboxadd-xclient_LIBS     = \
     48 VBoxClient_LIBS     = \
    3449        $(PATH_LIB)/RuntimeLnx32GuestR3.a \
    3550        $(PATH_LIB)/VBoxGuestR3LibLinux.a \
     
    3853        rt \
    3954        Xt \
    40         Xext \
    4155        X11
     56endif   # target linux
    4257
    4358#
    44 # Link aginst libstdc++.a on linux. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
    45 # (It would've been preferred to avoid features depending on libstdc++, of course...)
     59# VBoxClient (seamless)
    4660#
    47 vboxadd-xclient_LIBPATH.linux   = $(PATH_TARGET)/vboxadd-xclient
    48 vboxadd-xclient_ORDERDEPS.linux = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
    49 vboxadd-xclient_CLEAN.linux     = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
    50 $(PATH_TARGET)/vboxadd-xclient/libstdc++.a:
    51         $(call MSG_L1,Forcing static libstdc++)
    52         $(QUIET)$(MKDIR) -p $(@D)
    53         $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ \
    54              || $(CP_EXT) -f  `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
    55 
    5661ifdef VBOX_X11_SEAMLESS_GUEST
    57  vboxadd-xclient_DEFS += SEAMLESS_X11
    58  vboxadd-xclient_SOURCES += \
    59         seamless-host.cpp \
    60         seamless-x11.cpp \
    61         thread.cpp
     62 VBoxClient_DEFS += SEAMLESS_X11
     63 VBoxClient_SOURCES += \
     64        seamless-host.cpp \
     65        seamless-x11.cpp \
     66        thread.cpp
     67 VBoxClient_LIBS += \
     68        Xext
    6269
    6370 ifdef VBOX_WITH_TESTCASES
     
    8188endif
    8289
    83 else ifeq ($(BUILD_TARGET),solaris)
     90
    8491#
    85 # VBoxClient.
     92# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
     93# (It would've been preferred to avoid features depending on libstdc++, of course...)
    8694#
    87 ## @todo r=bird: merge this with the linux additions one way or the other, pleaaaase!
    88 PROGRAMS += VBoxClient
    89 VBoxClient_TEMPLATE = VBOXGUESTR3EXE
    90 VBoxClient_DEFS    += VBOX_X11_CLIPBOARD VBOX_HGCM
    91 VBoxClient_SOURCES  = \
    92         clipboard-new.cpp \
    93         main.cpp
    94 VBoxClient_LIBS = \
    95         $(VBOX_LIB_IPRT_GUEST_R3) \
    96         $(VBOX_LIB_VBGL_R3) \
    97         X11 \
    98         Xt
    99 endif # target solaris
     95VBoxClient_LIBPATH         = $(PATH_TARGET)/VBoxClient
     96VBoxClient_ORDERDEPS       = $(PATH_TARGET)/VBoxClient/libstdc++.a
     97VBoxClient_CLEAN           = $(PATH_TARGET)/VBoxClient/libstdc++.a
     98$(PATH_TARGET)/VBoxClient/libstdc++.a:
     99        $(call MSG_L1,Forcing static libstdc++)
     100        $(QUIET)$(MKDIR) -p $(@D)
     101        $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ \
     102             || $(CP_EXT) -f  `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
    100103
    101104include $(PATH_KBUILD)/footer.kmk
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette