VirtualBox

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


Ignore:
Timestamp:
Jan 29, 2008 9:33:09 PM (17 years ago)
Author:
vboxsync
Message:

Cleanup.

File:
1 edited

Legend:

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

    r6469 r6579  
    2020
    2121if1of ($(BUILD_TARGET),linux l4)
    22 ifneq ($(USERNAME),bird) # crap
    23  PROGRAMS = vboxadd-xclient
    24 endif
    2522
    26 OTHER_CLEAN              = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
    27 
     23#
     24# vboxadd-xclient.
     25#
     26PROGRAMS += vboxadd-xclient
    2827vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
    2928vboxadd-xclient_SOURCES  = clipboard.cpp main.cpp
    3029vboxadd-xclient_DEFS    += VBOX_X11_CLIPBOARD
     30vboxadd-xclient_DEFS    += _GNU_SOURCE VBOX_HGCM
     31vboxadd-xclient_LIBPATH  = \
     32        $(VBOX_LIBPATH32_X11)
     33vboxadd-xclient_LIBS     = \
     34        $(PATH_LIB)/RuntimeLnx32GuestR3.a \
     35        $(PATH_LIB)/VBoxGuestR3LibLinux.a \
     36        $(PATH_LIB)/RuntimeLnx32GuestR3.a \
     37        pthread \
     38        rt \
     39        Xt \
     40        Xext \
     41        X11
    3142
    32 ifdef VBOX_X11_SEAMLESS_GUEST
    33  vboxadd-xclient_SOURCES += \
    34                  seamless-host.cpp \
    35                  seamless-x11.cpp \
    36                  thread.cpp
    37 endif
    38 vboxadd-xclient_LIBPATH  = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
    39 # Ugly recursive dependency between the runtime and the guest library.  Sorry.
    40 vboxadd-xclient_LIBS     = \
    41                 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
    42                 $(PATH_LIB)/VBoxGuestR3LibLinux.a \
    43                 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
    44                 pthread \
    45                 rt \
    46                 Xt \
    47                 Xext \
    48                 X11
    49 vboxadd-xclient_DEFS    += _GNU_SOURCE VBOX_HGCM
    50 
    51 ifdef VBOX_X11_SEAMLESS_GUEST
    52  vboxadd-xclient_DEFS     += SEAMLESS_X11
    53 endif
    54 
    55 # link agaginst libstdc++.a (http://www.trilithium.com/johan/2005/06/static-libstdc/)
    56 $(PATH_TARGET)/vboxadd-xclient/vboxadd-xclient: $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
    57 
     43#
     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...)
     46#
     47vboxadd-xclient_LIBPATH.linux = $(PATH_TARGET)/vboxadd-xclient
     48vboxadd-xclient_DEPS.linux    = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
     49vboxadd-xclient_CLEAN.linux   = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
    5850$(PATH_TARGET)/vboxadd-xclient/libstdc++.a:
    5951        $(call MSG_L1,Forcing static libstdc++)
     
    6153
    6254ifdef VBOX_X11_SEAMLESS_GUEST
     55 vboxadd-xclient_DEFS += SEAMLESS_X11
     56 vboxadd-xclient_SOURCES += \
     57        seamless-host.cpp \
     58        seamless-x11.cpp \
     59        thread.cpp
     60
    6361 ifdef VBOX_WITH_TESTCASES
    64  # Additional testcase designed to be run manually, which initiates and starts the Linux
    65  # guest client part of the seamless additions in the host, faking seamless events from
    66  # the host and writing information about guest events to standard output.
    67   PROGRAMS                  += tstSeamlessX11
    68   tstSeamlessX11_TEMPLATE  = VBOXR3EXE
     62  #
     63  # Additional testcase designed to be run manually, which initiates and starts the Linux
     64  # guest client part of the seamless additions in the host, faking seamless events from
     65  # the host and writing information about guest events to standard output.
     66  #
     67  PROGRAMS += tstSeamlessX11
     68  tstSeamlessX11_TEMPLATE  = VBOXR3TSTEXE
    6969  tstSeamlessX11_SOURCES   = \
    70           testcase/tstSeamlessX11.cpp \
    71           seamless-host.cpp \
    72           seamless-x11.cpp \
    73           thread.cpp
     70        testcase/tstSeamlessX11.cpp \
     71        seamless-host.cpp \
     72        seamless-x11.cpp \
     73        thread.cpp
    7474  tstSeamlessX11_LIBS      = \
    75           $(LIB_RUNTIME) \
    76           Xext \
    77           X11
    78   tstSeamlessX11_INST      = $(INST_TESTCASE)
     75        $(LIB_RUNTIME) \
     76        Xext \
     77        X11
    7978 endif
    8079endif
    81 endif # target linux l4
    8280
    83 ifeq ($(BUILD_TARGET),solaris)
    84 PROGRAMS = VBoxClient
    85 
     81else ifeq ($(BUILD_TARGET),solaris)
     82#
     83# VBoxClient.
     84#
     85## @todo r=bird: merge this with the linux additions one way or the other, pleaaaase!
     86PROGRAMS += VBoxClient
    8687VBoxClient_TEMPLATE = VBOXGUESTR3EXE
    8788VBoxClient_DEFS    += VBOX_X11_CLIPBOARD VBOX_HGCM
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