VirtualBox

vbox的更動 63009 路徑 trunk/src/VBox/NetworkServices


忽略:
時間撮記:
2016-8-4 下午08:54:40 (8 年 以前)
作者:
vboxsync
訊息:

Reduced lwip-new/Config.kmk to just the two list (incs and sources), cannot see any reason for the current complexity.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/NetworkServices/NAT/Makefile.kmk

    r63007 r63009  
    5050  PROGRAMS += VBoxNetLwipNAT
    5151 endif
    52  VBoxNetLwipNAT_TEMPLATE := VBOXMAIN$(if-expr defined(VBOX_WITH_HARDENING),DLL,CLIENTEXE)
    53  VBoxNetLwipNAT_NAME = VBoxNetNAT
    54  VBoxNetLwipNAT_DEFS += ${LWIP_DEFS} IPv6
    55  # VBoxNetLwipNAT_DEFS.linux += WITH_VALGRIND # instrument lwip memp.c
    56  VBoxNetLwipNAT_DEFS.win += VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x501 # Windows XP
    57  VBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp   \
    58         $(VBOX_PATH_NAT_SRC)/../NetLib/VBoxNetBaseService.cpp \
    59         $(VBOX_PATH_NAT_SRC)/../NetLib/VBoxNetPortForwardString.cpp \
    60         $(VBOX_PATH_NAT_SRC)/../NetLib/VBoxNetIntIf.cpp \
    61         $(VBOX_PATH_NAT_SRC)/../NetLib/VBoxNetUDP.cpp \
    62         $(VBOX_PATH_NAT_SRC)/../NetLib/VBoxNetARP.cpp \
    63         $(VBOX_PATH_NAT_SRC)/../NetLib/ComHostUtils.cpp
    64 
    65  VBoxNetLwipNAT_LIBS = \
    66         $(LIB_RUNTIME)
    67  VBoxNetLwipNAT_LIBS.solaris += socket nsl
    68  VBoxNetLwipNAT_LDFLAGS.win = /SUBSYSTEM:windows
    69 
     52 VBoxNetLwipNAT_TEMPLATE := $(if-expr defined(VBOX_WITH_HARDENING),VBOXMAINDLL,VBOXMAINCLIENTEXE)
     53 VBoxNetLwipNAT_NAME     := VBoxNetNAT
     54 VBoxNetLwipNAT_DEFS      = IPv6
     55 # VBoxNetLwipNAT_DEFS.linux = WITH_VALGRIND # instrument lwip memp.c
     56 VBoxNetLwipNAT_DEFS.win  = VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x501 # Windows XP
    7057 # Convince Solaris headers to expose socket stuff we need.
    7158 #
     
    9582 endif
    9683
    97  VBoxNetLwipNAT_SOURCES += \
     84 # (current dir is for for lwipopts.h)
     85 VBoxNetLwipNAT_INCS += . $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_INCS))
     86
     87 VBoxNetLwipNAT_SOURCES = \
     88        VBoxNetLwipNAT.cpp \
     89        ../NetLib/VBoxNetBaseService.cpp \
     90        ../NetLib/VBoxNetPortForwardString.cpp \
     91        ../NetLib/VBoxNetIntIf.cpp \
     92        ../NetLib/VBoxNetUDP.cpp \
     93        ../NetLib/VBoxNetARP.cpp \
     94        ../NetLib/ComHostUtils.cpp \
     95        $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_SOURCES)) \
    9896        proxy_pollmgr.c \
    9997        proxy_rtadvd.c \
     
    110108
    111109 ifeq ($(KBUILD_TARGET),win)
    112   # unprivileged Icmp API
    113   VBoxNetLwipNAT_SOURCES += pxping_win.c
     110  VBoxNetLwipNAT_SOURCES += pxping_win.c # unprivileged Icmp API
    114111 else
    115   # raw sockets
    116   VBoxNetLwipNAT_SOURCES += pxping.c
     112  VBoxNetLwipNAT_SOURCES += pxping.c     # raw sockets
    117113 endif
     114
     115 VBoxNetLwipNAT_SOURCES.darwin  += rtmon_bsd.c
     116 VBoxNetLwipNAT_SOURCES.freebsd += rtmon_bsd.c
     117 VBoxNetLwipNAT_SOURCES.linux   += rtmon_linux.c
     118 VBoxNetLwipNAT_SOURCES.solaris += rtmon_bsd.c
     119 VBoxNetLwipNAT_SOURCES.win     += \
     120        rtmon_win.c \
     121        RTWinPoll.cpp \
     122        RTWinSocketPair.cpp
     123
     124 VBoxNetLwipNAT_LIBS = \
     125        $(LIB_RUNTIME)
     126 VBoxNetLwipNAT_LIBS.solaris += socket nsl
     127
     128 VBoxNetLwipNAT_LDFLAGS.win = /SUBSYSTEM:windows
    118129
    119130 # ifeq ($(VBOX_WITH_HARDENING),)
     
    124135 #  endif
    125136 # endif
    126 
    127  VBoxNetLwipNAT_SOURCES.darwin  += rtmon_bsd.c
    128  VBoxNetLwipNAT_SOURCES.freebsd += rtmon_bsd.c
    129  VBoxNetLwipNAT_SOURCES.linux   += rtmon_linux.c
    130  VBoxNetLwipNAT_SOURCES.solaris += rtmon_bsd.c
    131  VBoxNetLwipNAT_SOURCES.win     += rtmon_win.c
    132 
    133  VBoxNetLwipNAT_SOURCES.win += \
    134         RTWinPoll.cpp \
    135         RTWinSocketPair.cpp
    136 
    137  VBoxNetLwipNAT_INCS += . # for lwipopts.h
    138  $(eval $(call def_vbox_lwip_public, VBoxNetLwipNAT, $(PATH_SUB_CURRENT)/../../Devices/Network/lwip-new))
    139137
    140138 ifeq ($(KBUILD_TARGET),win)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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