VirtualBox

Changeset 6687 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jan 31, 2008 8:46:46 PM (17 years ago)
Author:
vboxsync
Message:

Use the generic guest template.

File:
1 edited

Legend:

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

    r6675 r6687  
    2020
    2121#
    22 # VBoxClient (clipboard)
     22# VBoxClient - clipboard and seamless.
    2323#
    2424PROGRAMS += VBoxClient
    25 if1of ($(BUILD_TARGET),linux l4) ## @todo Elimiate this too.
    26  VBoxClient_TEMPLATE = VBOXLNX32GUESTR3EXE
    27 else
    28  VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
    29 endif
    30 VBoxClient_DEFS    += VBOX_X11_CLIPBOARD VBOX_HGCM
     25VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
     26VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
    3127VBoxClient_DEFS.linux += _GNU_SOURCE
    32 VBoxClient_SOURCES  = \
     28VBoxClient_SOURCES = \
    3329        main.cpp
    34 
    35 if1of ($(BUILD_TARGET),linux l4)
     30if1of ($(BUILD_TARGET),linux l4) ## @todo use clipboard-new.cpp everywhere.
    3631 VBoxClient_SOURCES += \
    3732        clipboard.cpp
    38  VBoxClient_LIBPATH  = \
    39         $(VBOX_LIBPATH32_X11)
    40  VBoxClient_LIBS     = \
    41         $(PATH_LIB)/RuntimeLnx32GuestR3.a \
    42         $(PATH_LIB)/VBoxGuestR3LibLinux.a \
    43         $(PATH_LIB)/RuntimeLnx32GuestR3.a \
    44         pthread \
    45         rt \
    46         Xt \
    47         X11
    4833else
    4934 VBoxClient_SOURCES += \
    5035        clipboard-new.cpp
    51  VBoxClient_LIBS    = \
     36endif
     37VBoxClient_LIBPATH = \
     38        $(VBOX_LIBPATH32_X11)
     39VBoxClient_LIBS = \
    5240        $(VBOX_LIB_IPRT_GUEST_R3) \
    5341        $(VBOX_LIB_VBGL_R3) \
     42        $(VBOX_LIB_IPRT_GUEST_R3)
     43if1of ($(BUILD_TARGET),linux l4) ## @todo solaris and linux has to agree upon something that works for both here, this is kinda silly.
     44 VBoxClient_LIBS += \
    5445        X11 \
    5546        Xt
    56 endif # ! linux || l4
    57 
    58 #
    59 # VBoxClient (seamless)
    60 #
     47else
     48 VBoxClient_LIBS += \
     49        X11 \
     50        Xt
     51endif
    6152ifdef VBOX_X11_SEAMLESS_GUEST
    6253 VBoxClient_DEFS += SEAMLESS_X11
     
    6758 VBoxClient_LIBS += \
    6859        Xext
     60endif
    6961
     62#
     63# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
     64# (It would've been preferred to avoid features depending on libstdc++, of course...)
     65#
     66VBoxClient_LIBPATH  += $(PATH_TARGET)/VBoxClient
     67VBoxClient_ORDERDEPS = $(PATH_TARGET)/VBoxClient/libstdc++.a
     68VBoxClient_CLEAN     = $(PATH_TARGET)/VBoxClient/libstdc++.a
     69$(PATH_TARGET)/VBoxClient/libstdc++.a:
     70        $(call MSG_L1,Forcing static libstdc++)
     71        $(QUIET)$(MKDIR) -p $(@D)
     72        $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ \
     73             || $(CP_EXT) -f  `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
     74
     75
     76ifdef VBOX_X11_SEAMLESS_GUEST
    7077 ifdef VBOX_WITH_TESTCASES
    7178  #
     
    7582  #
    7683  PROGRAMS += tstSeamlessX11
    77   tstSeamlessX11_TEMPLATE  = VBOXR3TSTEXE
    78   tstSeamlessX11_SOURCES   = \
     84  tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
     85  tstSeamlessX11_SOURCES = \
    7986        testcase/tstSeamlessX11.cpp \
    8087        seamless-host.cpp \
    8188        seamless-x11.cpp \
    8289        thread.cpp
    83   tstSeamlessX11_LIBS      = \
     90  tstSeamlessX11_LIBS = \
    8491        $(LIB_RUNTIME) \
    8592        Xext \
     
    8895endif
    8996
    90 
    91 #
    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...)
    94 #
    95 VBoxClient_LIBPATH        += $(PATH_TARGET)/VBoxClient
    96 VBoxClient_ORDERDEPS       = $(PATH_TARGET)/VBoxClient/libstdc++.a
    97 VBoxClient_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` $@
    103 
    10497include $(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