VirtualBox

Changeset 830 in kBuild


Ignore:
Timestamp:
Feb 3, 2007 11:09:10 AM (18 years ago)
Author:
bird
Message:

New properties for INSTALLS only (atm): IDFLAGS, IFFLAGS, ISFLAGS. directory, file and symlink flags. Also fixed (/broke - it's not tested) some import lib stuff.

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r828 r830  
    17631763definst := $(PATH_DLL)
    17641764typevar := _DLLS
    1765 mode    := 0755
     1765mode    := 0644
    17661766bld_trg_base_var := TARGET
    17671767$(foreach target, $(DLLS) $(DLLS.$(BUILD_TARGET)) $(DLLS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_link_common)))
     
    17691769
    17701770#
    1771 # Process import libraries.
     1771# IMPORT LIBRARIES
    17721772#
    17731773#   - On OS/2 and windows these are libraries.
    17741774#   - On other platforms they are fake DLLs.
     1775#
     1776EXTPRE  :=
     1777typevar := _IMPORT_LIBS
     1778mode    := 0644
     1779bld_trg_base_var := TARGET
    17751780ifeq ($(filter-out nt os2 win win64 win32,$(BUILD_TARGET)),)
    1776 $(foreach target, $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)) $(IMPORT_LIBS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_lib)))
     1781 EXT     := LIB
     1782 tool_do := LINK_LIBRARY
     1783 definst := $(PATH_LIB)
     1784 $(foreach target, $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)) $(IMPORT_LIBS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_lib)))
    17771785else
    1778 $(foreach target, $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)) $(IMPORT_LIBS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_link_common)))
    1779 endif
    1780 $(foreach target, $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)) $(IMPORT_LIBS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), \
    1781         $(eval _IMPORT_LIBS += $(if $(INSTARGET_$(target)),$(INSTARGET_$(target)), $(TARGET_$(target)))))
     1786 EXT     := DLL
     1787 tool_do := LINK_DLL
     1788 definst := $(PATH_DLL)
     1789 $(foreach target, $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)) $(IMPORT_LIBS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_link_common)))
     1790endif
    17821791
    17831792
     
    19161925        $($(target)_GID.$(bld_trg)) \
    19171926        $($(target)_GID))
     1927flags := \
     1928        $($(target)_IFFLAGS) \
     1929        $($(target)_IFFLAGS.$(bld_trg)) \
     1930        $($(target)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     1931        $($(srcdst)_IFFLAGS) \
     1932        $($(srcdst)_IFFLAGS.$(bld_trg)) \
     1933        $($(srcdst)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     1934        $($(srcsrc)_IFFLAGS) \
     1935        $($(srcsrc)_IFFLAGS.$(bld_trg)) \
     1936        $($(srcsrc)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     1937        $($(target)_$(srcdst)_IFFLAGS) \
     1938        $($(target)_$(srcdst)_IFFLAGS.$(bld_trg)) \
     1939        $($(target)_$(srcdst)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     1940        $($(target)_$(srcsrc)_IFFLAGS) \
     1941        $($(target)_$(srcsrc)_IFFLAGS.$(bld_trg)) \
     1942        $($(target)_$(srcsrc)_IFFLAGS.$(bld_trg).$(bld_trg_arch))
    19181943
    19191944
     
    19251950# create the command
    19261951ifdef $(srcsrc)_INSTALLER
    1927  inscmd := $(call $(srcsrc)_INSTALLER,$(srcsrc),$(insdst),$(target))
     1952 inscmd := $(call $(srcsrc)_INSTALLER,$(srcsrc),$(insdst),$(target),$(flags))
     1953else ifdef $(target)_INSTALLER
     1954 inscmd := $(call $(target)_INSTALLER,$(srcsrc),$(insdst),$(target),$(flags))
    19281955else
    1929  ifdef $(target)_INSTALLER
    1930   inscmd := $(call $(target)_INSTALLER,$(srcsrc),$(insdst),$(target))
    1931  else
    1932   inscmd := $$(INSTALL)\
     1956 inscmd := $$(INSTALL)\
    19331957                $(if $(uid),-o $(uid))\
    19341958                $(if $(gid),-g $(gid))\
    19351959                $(if $(mode),-m $(mode))\
     1960                $(flags)\
    19361961                $(srcsrc) $(insdst)
    1937  endif
    19381962endif
    19391963
     
    19661990 instfun := $(symlnk)_INSTFUN
    19671991else ifdef $(target)_INSTFUN
    1968 instfun := $(target)_INSTFUN
     1992 instfun := $(target)_INSTFUN
    19691993else
    19701994 instfun := _INSTALL_FILE
     
    20002024                $(if $(gid),-g $(gid))\
    20012025                $(if $(mode),-m $(mode))\
     2026                $(flags)\
    20022027                $(insdst)
    20032028
     
    20482073        $($(target)_GID.$(bld_trg)) \
    20492074        $($(target)_GID))
     2075flags := \
     2076        $($(target)_IDFLAGS)\
     2077        $($(target)_IDFLAGS.$(bld_trg)) \
     2078        $($(target)_IDFLAGS.$(bld_trg).$(bld_trg_arch)) \
     2079        $($(directory)_IDFLAGS) \
     2080        $($(directory)_IDFLAGS.$(bld_trg)) \
     2081        $($(directory)_IDFLAGS.$(bld_trg).$(bld_trg_arch)) \
     2082        $($(target)_$(directory)_IDFLAGS) \
     2083        $($(target)_$(directory)_IDFLAGS.$(bld_trg)) \
     2084        $($(target)_$(directory)_IDFLAGS.$(bld_trg).$(bld_trg_arch))
    20502085
    20512086insdst := $(inst)/$(directory)/
  • trunk/kBuild/header.kmk

    r829 r830  
    565565        RCFLAGS RCDEFS \
    566566        LDFLAGS \
     567        IDFLAGS IFDLAGS ISFLAGS \
    567568        FETCHFLAGS UNPACKFLAGS PATCHFLAGS
    568569
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