VirtualBox

Changeset 2483 in kBuild


Ignore:
Timestamp:
Jul 21, 2011 1:33:41 PM (14 years ago)
Author:
bird
Message:

footer.kmk,header.kmk: Changing the default MODE of INSTALLS to non-executable, adding EXEC_SOURCES for listing files which should be installed as executable. There is also EXEC_IFFLAGS and EXEC_MODE props to go along with those files; MODE and IFFLAGS doesn't apply to them. Also fixed a bug in header where IFFLAGS was misspelled in IFDFLAGS and the installs pass was missing a number of properties (affect inhertiance IIRC).

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r2481 r2483  
    23052305        $($(target)_MODE.$(bld_trg)) \
    23062306        $($(target)_MODE.$(bld_type)) \
    2307         $($(target)_MODE) )
     2307        $($(target)_MODE) \
     2308        $(target_type_mode) )
    23082309 local uid := $(firstword \
    23092310        $($(target)_UID.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
     
    25212522
    25222523# installing and globals.
    2523 local target_type_mode := a+r,o+w
     2524local target_type_mode := a+r,u+w
    25242525$(evalval def_target_install_only)
    25252526
     
    30433044# mode, uid and gid
    30443045local mode := $(firstword \
    3045         $($(target)_$(srcsrc)_MODE.$(bld_trg).$(bld_trg_arch)) \
    3046         $($(target)_$(srcsrc)_MODE.$(bld_trg)) \
    3047         $($(target)_$(srcsrc)_MODE) \
    3048         $($(target)_$(srcdst)_MODE.$(bld_trg).$(bld_trg_arch)) \
    3049         $($(target)_$(srcdst)_MODE.$(bld_trg)) \
    3050         $($(target)_$(srcdst)_MODE) \
    3051         $($(srcsrc)_MODE.$(bld_trg).$(bld_trg_arch)) \
    3052         $($(srcsrc)_MODE.$(bld_trg)) \
    3053         $($(srcsrc)_MODE) \
    3054         $($(srcdst)_MODE.$(bld_trg).$(bld_trg_arch)) \
    3055         $($(srcdst)_MODE.$(bld_trg)) \
    3056         $($(srcdst)_MODE) \
    3057         $(top_mode))
     3046        $($(target)_$(srcsrc)$(source_type_prefix)_MODE.$(bld_trg).$(bld_trg_arch)) \
     3047        $($(target)_$(srcsrc)$(source_type_prefix)_MODE.$(bld_trg)) \
     3048        $($(target)_$(srcsrc)$(source_type_prefix)_MODE) \
     3049        $($(target)_$(srcdst)$(source_type_prefix)_MODE.$(bld_trg).$(bld_trg_arch)) \
     3050        $($(target)_$(srcdst)$(source_type_prefix)_MODE.$(bld_trg)) \
     3051        $($(target)_$(srcdst)$(source_type_prefix)_MODE) \
     3052        $($(srcsrc)$(source_type_prefix)_MODE.$(bld_trg).$(bld_trg_arch)) \
     3053        $($(srcsrc)$(source_type_prefix)_MODE.$(bld_trg)) \
     3054        $($(srcsrc)$(source_type_prefix)_MODE) \
     3055        $($(srcdst)$(source_type_prefix)_MODE.$(bld_trg).$(bld_trg_arch)) \
     3056        $($(srcdst)$(source_type_prefix)_MODE.$(bld_trg)) \
     3057        $($(srcdst)$(source_type_prefix)_MODE) \
     3058        $(source_type_mode))
    30583059local uid := $(firstword \
    30593060        $($(target)_$(srcsrc)_UID.$(bld_trg).$(bld_trg_arch)) \
     
    30863087local flags := \
    30873088        $(top_ifflags) \
    3088         $($(srcdst)_IFFLAGS) \
    3089         $($(srcdst)_IFFLAGS.$(bld_trg)) \
    3090         $($(srcdst)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
    3091         $($(srcsrc)_IFFLAGS) \
    3092         $($(srcsrc)_IFFLAGS.$(bld_trg)) \
    3093         $($(srcsrc)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
    3094         $($(target)_$(srcdst)_IFFLAGS) \
    3095         $($(target)_$(srcdst)_IFFLAGS.$(bld_trg)) \
    3096         $($(target)_$(srcdst)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
    3097         $($(target)_$(srcsrc)_IFFLAGS) \
    3098         $($(target)_$(srcsrc)_IFFLAGS.$(bld_trg)) \
    3099         $($(target)_$(srcsrc)_IFFLAGS.$(bld_trg).$(bld_trg_arch))
     3089        $($(srcdst)$(source_type_prefix)_IFFLAGS) \
     3090        $($(srcdst)$(source_type_prefix)_IFFLAGS.$(bld_trg)) \
     3091        $($(srcdst)$(source_type_prefix)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     3092        $($(srcsrc)$(source_type_prefix)_IFFLAGS) \
     3093        $($(srcsrc)$(source_type_prefix)_IFFLAGS.$(bld_trg)) \
     3094        $($(srcsrc)$(source_type_prefix)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     3095        $($(target)_$(srcdst)$(source_type_prefix)_IFFLAGS) \
     3096        $($(target)_$(srcdst)$(source_type_prefix)_IFFLAGS.$(bld_trg)) \
     3097        $($(target)_$(srcdst)$(source_type_prefix)_IFFLAGS.$(bld_trg).$(bld_trg_arch)) \
     3098        $($(target)_$(srcsrc)$(source_type_prefix)_IFFLAGS) \
     3099        $($(target)_$(srcsrc)$(source_type_prefix)_IFFLAGS.$(bld_trg)) \
     3100        $($(target)_$(srcsrc)$(source_type_prefix)_IFFLAGS.$(bld_trg).$(bld_trg_arch))
    31003101clean_files += \
    31013102        $($(srcdst)_CLEAN) \
     
    33633364        $($(target)_MODE.$(bld_trg)) \
    33643365        $($(target)_MODE) )
     3366 local top_exec_mode := $(firstword \
     3367        $($(target)_EXEC_MODE.$(bld_trg).$(bld_trg_arch)) \
     3368        $($(target)_EXEC_MODE.$(bld_trg)) \
     3369        $($(target)_EXEC_MODE) )
    33653370 local top_uid := $(firstword \
    33663371        $($(target)_UID.$(bld_trg).$(bld_trg_arch)) \
     
    34023407        $($(target)_CLEAN.$(bld_type))
    34033408
     3409 local source_type_prefix :=
     3410 local source_type_mode := $(firstword $(top_mode) a+r,u+w)
    34043411 $(foreach src,\
    34053412        $($(target)_SOURCES) \
     
    34093416        $($(target)_SOURCES.$(bld_trg_cpu)) \
    34103417        $($(target)_SOURCES.$(bld_type)), \
     3418        $(evalval def_install_src))
     3419
     3420 local source_type_prefix := EXEC_
     3421 local source_type_mode := $(firstword $(top_exec_mode) a+xr,u+w)
     3422 $(foreach src,\
     3423        $($(target)_EXEC_SOURCES) \
     3424        $($(target)_EXEC_SOURCES.$(bld_trg)) \
     3425        $($(target)_EXEC_SOURCES.$(bld_trg).$(bld_trg_arch)) \
     3426        $($(target)_EXEC_SOURCES.$(bld_trg_arch)) \
     3427        $($(target)_EXEC_SOURCES.$(bld_trg_cpu)) \
     3428        $($(target)_EXEC_SOURCES.$(bld_type)), \
    34113429        $(evalval def_install_src))
    34123430
  • trunk/kBuild/header.kmk

    r2479 r2483  
    916916        RCFLAGS RCDEFS \
    917917        LDFLAGS \
    918         IDFLAGS IFDLAGS ISFLAGS \
     918        IDFLAGS IFFLAGS EXEC_IFFLAGS ISFLAGS \
    919919        FETCHFLAGS UNPACKFLAGS PATCHFLAGS
    920920## PROPS_ACCUMULATE_R_LNK
     
    928928        ASFLAGS ASDEFS \
    929929        RCFLAGS RCDEFS \
    930         IDFLAGS IFDLAGS ISFLAGS
     930        IDFLAGS IFFLAGS ISFLAGS
    931931
    932932## PROPS_ACCUMULATE
     
    936936# will do the necessary inheritance from templates to targets.
    937937PROPS_ACCUMULATE_L := \
    938         SDKS USES SOURCES SRC_HANDLERS INTERMEDIATES \
     938        SDKS USES SOURCES EXEC_SOURCES SRC_HANDLERS INTERMEDIATES \
    939939        INCS CINCS CXXINCS OBJCINCS OBJCXXINCS ASINCS RCINCS \
    940940        LIBS LIBPATH \
     
    993993## @name Properties valid on installs (INSTALLS)
    994994## @{
    995 PROPS_INSTALLS_SINGLE        := TOOL TEMPLATE INST NOINST
     995PROPS_INSTALLS_SINGLE        := TOOL TEMPLATE INST NOINST BLD_TYPE BLD_TRG BLD_TRG_ARCH BLD_TRG_CPU MODE UID GID
    996996PROPS_INSTALLS_DEFERRED      := INSTFUN INSTALLER
    997 PROPS_INSTALLS_ACCUMULATE_R  := DEPS ORDERDEPS GOALS INST_ONLY_GOALS STAGE_ONLY_GOALS
    998 PROPS_INSTALLS_ACCUMULATE_L  := SOURCES DIRS CLEAN
     997PROPS_INSTALLS_ACCUMULATE_R  := DEPS ORDERDEPS GOALS INST_ONLY_GOALS STAGE_ONLY_GOALS IFFLAGS EXEC_IFFLAGS
     998PROPS_INSTALLS_ACCUMULATE_L  := SOURCES EXEC_SOURCES DIRS CLEAN
    999999## @}
    10001000
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