VirtualBox

Ignore:
Timestamp:
Aug 4, 2016 8:54:40 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109621
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/Config.kmk

    r63007 r63009  
    11# $Id$
    22## @file
    3 # Adds sources list and defines required to LWIP pre-1.5.0 compilation
     3# Define the include dirs and source files for LWIP pre-1.5.0.
     4#
     5# This file is included by Devices/Makefile.kmk and NetworkServices/NAT/Makefile.kmk.
    46#
    57
     
    9597
    9698
    97 
    98 define _def_vbox_lwip_use # VAR_BaseName, path/to/lwip/dir
    99   $(strip $1)_SOURCES += $(foreach file, $(LWIP_SOURCES), $(strip $2)/$(file))
    100 endef
    101 
    102 
    103 define def_vbox_lwip_flags # PROTO_BaseName, VAR_BaseName, path/to/lwip/dir
    104   # add anything configured for the component via PROTO_BaseName
    105   $(foreach suffix, INCS DEFS,
    106     $(if $(value $(strip $1)_LWIP_$(suffix)), $(eval $(strip $2)_$(suffix) += $(value $(strip $1)_LWIP_$(suffix)) ),))
    107 
    108   # add lwip's own includes
    109   $(strip $2)_INCS += $(foreach incdir, $(LWIP_INCS), $(strip $3)/$(incdir))
    110 endef
    111 
    112 
    113 ###
    114 ### Call this if you want to expose lwip to your component as a whole.
    115 ### In this case individual lwip files (added to _SOURCES of your
    116 ### component) will pick up lwip includes etc from your component
    117 ### settings.
    118 ###
    119 ### This is, for example, how NetworkServices/NAT uses it.
    120 ###
    121 define def_vbox_lwip_public # VAR_BaseName, path/to/lwip/dir
    122   $(eval $(call _def_vbox_lwip_use, $1, $2))
    123   $(eval $(call def_vbox_lwip_flags, $1, $1, $2))
    124 endef
    125 
    126 
    127 ###
    128 ### Call this if you want to expose lwip only to a few selected files.
    129 ### In this case each lwip file is configured with lwip includes etc
    130 ### separately and you are supposed to call def_vbox_lwip_flags
    131 ### yourself for those of your files that use lwip.
    132 ###
    133 ### This is, for example, how Devices uses it.
    134 ###
    135 define def_vbox_lwip_private # VAR_BaseName, path/to/lwip/dir
    136   $(eval $(call _def_vbox_lwip_use, $1, $2))
    137   $(foreach file, $(LWIP_SOURCES), $(eval $(call def_vbox_lwip_flags, $1, $(strip $2)/$(file), $2)))
    138 endef
    139 
    140 
    14199ifeq ($(USERNAME), vvl)
    142100$(foreach lwip_file, $(LWIP_SOURCES), $(eval $(lwip_file)_DEFS=RTMEM_WRAP_TO_EF_APIS))
     
    150108    Network/lwip-new/test/unit/udp/test_udp.c
    151109endif
    152 
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