VirtualBox

儲存庫 vbox 的更動 50058


忽略:
時間撮記:
2014-1-13 上午03:58:29 (11 年 以前)
作者:
vboxsync
訊息:

def_vbox_lwip_flags: Make it possible to supply additional compilation
flags to lwip from the client component by adding FOO_LWIP_INCS to
corresponding _INCS, ditto for _DEFS. This is intended for components
that use def_vbox_lwip_private and then call def_vbox_lwip_flags on a
few of its files that use lwip.

Adjust affected callers.

Not used by any component yet, but it makes it possible to supply
different lwipopt.h to different builds of lwip (coming soon in a
separate commit).

位置:
trunk/src/VBox/Devices
檔案:
修改 2 筆資料

圖例:

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

    r49983 r50058  
    375375                      VBoxDD, Network/lwip-new))
    376376    $(eval $(call def_vbox_lwip_flags, \
    377                       Network/DevINIP.cpp, Network/lwip-new))
     377                      VBoxDD, Network/DevINIP.cpp, Network/lwip-new))
    378378  endif
    379379 endif # VBOX_WITH_INIP
     
    450450    Storage/DrvVD.cpp_DEFS += VBOX_WITH_NEW_LWIP
    451451    $(eval $(call def_vbox_lwip_flags, \
    452                       Storage/DrvVD.cpp, Network/lwip-new))
     452                      VBoxDD, Storage/DrvVD.cpp, Network/lwip-new))
    453453  else
    454454    Storage/DrvVD.cpp_INCS = $(LWIP_INCS)
  • trunk/src/VBox/Devices/Network/lwip-new/Makefile.kmk

    r50057 r50058  
    9595
    9696
     97
    9798define _def_vbox_lwip_use # VAR_BaseName, path/to/lwip/dir
    9899  $(strip $1)_SOURCES += \
     
    103104endef
    104105
    105 define def_vbox_lwip_flags # VAR_BaseName, path/to/lwip/dir
    106   $(strip $1)_INCS += $(foreach incdir, $(LWIP_INCS), $(strip $2)/$(incdir))
     106
     107define def_vbox_lwip_flags # PROTO_BaseName, VAR_BaseName, path/to/lwip/dir
     108  # add anything configured for the component via PROTO_BaseName
     109  $(foreach suffix, INCS DEFS,
     110    $(if $(value $(strip $1)_LWIP_$(suffix)),
     111      $(eval #
     112        $(strip $2)_$(suffix) += $(value $(strip $1)_LWIP_$(suffix))
     113      )))
     114
     115  # add lwip's own includes
     116  $(strip $2)_INCS += $(foreach incdir, $(LWIP_INCS), $(strip $3)/$(incdir))
    107117endef
     118
    108119
    109120###
     
    117128define def_vbox_lwip_public # VAR_BaseName, path/to/lwip/dir
    118129  $(eval $(call _def_vbox_lwip_use, $1, $2))
    119   $(eval $(call def_vbox_lwip_flags, $1, $2))
     130  $(eval $(call def_vbox_lwip_flags, $1, $1, $2))
    120131endef
     132
    121133
    122134###
     
    131143  $(eval $(call _def_vbox_lwip_use, $1, $2))
    132144  $(foreach file, $(LWIP_SOURCES), \
    133     $(eval $(call def_vbox_lwip_flags, $(strip $2)/$(file), $2)))
     145    $(eval $(call def_vbox_lwip_flags, $1, $(strip $2)/$(file), $2)))
    134146endef
    135147
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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