VirtualBox

Changeset 1256 in kBuild


Ignore:
Timestamp:
Oct 25, 2007 2:42:13 AM (17 years ago)
Author:
bird
Message:

Objective-C support - OBJC.

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1255 r1256  
    14581458# @param    $(target)     Normalized target name.
    14591459# @param    $(source)     Source file name.
    1460 # @param    $(type)       Source type. {C,CXX,AS}
     1460# @param    $(type)       Source type. {C,CXX,AS,OBJC}
    14611461# @param    bld_type      Build type.
    14621462# @param    bld_trg       Build target.
    14631463# @param    bld_trg_arch  Build target arch.
    14641464# @param    bld_trg_cpu   Build target cpu.
    1465 def_target_source_c_cpp_asm_rc_new = $(kb-src-one )
     1465def_target_source_c_cpp_objc_asm_rc_new = $(kb-src-one )
    14661466ifdef KMK_VERSION
    1467  def_target_source_c_cpp_asm_rc_var = def_target_source_c_cpp_asm_rc_new
     1467 def_target_source_c_cpp_objc_asm_rc_var = def_target_source_c_cpp_objc_asm_rc_new
    14681468else
    1469  def_target_source_c_cpp_asm_rc_var = def_target_source_c_cpp_asm_rc_old
     1469 def_target_source_c_cpp_objc_asm_rc_var = def_target_source_c_cpp_objc_asm_rc_old
    14701470endif
    14711471
     
    14791479type := C
    14801480$(foreach source, $(filter %.c             , $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\
    1481    ,$(eval $(value $(def_target_source_c_cpp_asm_rc_var))) )
     1481   ,$(eval $(value $(def_target_source_c_cpp_objc_asm_rc_var))) )
    14821482
    14831483# C++ sources
    14841484type := CXX
    14851485$(foreach source, $(filter %.cpp %.cxx %.xx, $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\
    1486         ,$(eval $(value $(def_target_source_c_cpp_asm_rc_var))) )
     1486        ,$(eval $(value $(def_target_source_c_cpp_objc_asm_rc_var))) )
     1487
     1488# Objective-C sources
     1489type := OBJC
     1490$(foreach source, $(filter %.m,              $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\
     1491        ,$(eval $(value $(def_target_source_c_cpp_objc_asm_rc_var))) )
    14871492
    14881493# ASM sources
    14891494type := AS
    14901495$(foreach source, $(filter %.asm %.s %.S   , $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\
    1491         ,$(eval $(value $(def_target_source_c_cpp_asm_rc_var))) )
     1496        ,$(eval $(value $(def_target_source_c_cpp_objc_asm_rc_var))) )
    14921497
    14931498# Resource sources
    14941499type := RC
    14951500$(foreach source, $(filter %.rc            , $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\
    1496         ,$(eval $(value $(def_target_source_c_cpp_asm_rc_var))) )
     1501        ,$(eval $(value $(def_target_source_c_cpp_objc_asm_rc_var))) )
    14971502
    14981503endef
     
    16041609        $($(target)_ARFLAGS.$(bld_trg).$(bld_trg_arch)) \
    16051610        $($(target)_ARFLAGS.$(bld_trg_cpu))
    1606 othersrc    := $(filter-out %.c %.cpp %.cxx %.cc %.s %.S %.asm %.rc %.o %.obj %.res,\
     1611othersrc    := $(filter-out %.c %.cpp %.cxx %.cc %.m %.s %.S %.asm %.rc %.o %.obj %.res,\
    16071612        $($(target)_SOURCES) \
    16081613        $($(target)_SOURCES.$(bld_trg)) \
     
    18511856        $($(target)_LDFLAGS.$(bld_trg).$(bld_trg_arch))\
    18521857        $($(target)_LDFLAGS.$(bld_trg_cpu))
    1853 othersrc    := $(filter-out %.c %.cpp %.cxx %.cc %.s %.S %.asm %.rc %.o %.obj %.res,\
     1858othersrc    := $(filter-out %.c %.cpp %.cxx %.cc %.m %.s %.S %.asm %.rc %.o %.obj %.res,\
    18541859        $($(target)_SOURCES)\
    18551860        $($(target)_SOURCES.$(bld_trg)) \
  • trunk/kBuild/header.kmk

    r1191 r1256  
    557557## PROPS_TOOLS
    558558# This is a subset of PROPS_SINGLE.
    559 PROPS_TOOLS := TOOL CTOOL CXXTOOL ASTOOL RCTOOL ARTOOL LDTOOL FETCHTOOL UNPACKTOOL PATCHTOOL
     559PROPS_TOOLS := TOOL CTOOL CXXTOOL OBJCTOOL ASTOOL RCTOOL ARTOOL LDTOOL FETCHTOOL UNPACKTOOL PATCHTOOL
    560560
    561561## PROPS_SINGLE
     
    564564# will do the necessary inheritance from templates to targets.
    565565PROPS_SINGLE := $(PROPS_TOOLS) INST NOINST BLD_TYPE BLD_TRG BLD_TRG_ARCH BLD_TRG_CPU FETCHDIR \
    566         OBJSUFF COBJSUFF CXXOBJSUFF ASOBJSUFF RCOBJSUFF SYSSUFF EXESUFF DLLSUFF LIBSUFF ARLIBSUFF
     566        OBJSUFF COBJSUFF CXXOBJSUFF OBJCOBJSUFF ASOBJSUFF RCOBJSUFF SYSSUFF EXESUFF DLLSUFF LIBSUFF ARLIBSUFF
    567567## PROPS_SINGLE_LNK
    568568# Subset of PROPS_SINGLE which applies to all linkable targets.
    569 PROPS_SINGLE_LNK := TOOL CTOOL CXXTOOL ASTOOL RCTOOL \
     569PROPS_SINGLE_LNK := TOOL CTOOL CXXTOOL OBJCTOOL ASTOOL RCTOOL \
    570570    INST NOINST BLD_TYPE BLD_TRG BLD_TRG_ARCH BLD_TRG_CPU \
    571         OBJSUFF COBJSUFF CXXOBJSUFF ASOBJSUFF RCOBJSUFF
     571        OBJSUFF COBJSUFF CXXOBJSUFF OBJCOBJSUFF ASOBJSUFF RCOBJSUFF
    572572
    573573## PROPS_DEFERRED
     
    586586        CFLAGS CDEFS \
    587587        CXXFLAGS CXXDEFS \
     588        OBJCFLAGS OBJCDEFS \
    588589        ASFLAGS ASDEFS \
    589590        RCFLAGS RCDEFS \
     
    597598        CFLAGS CDEFS \
    598599        CXXFLAGS CXXDEFS \
     600        OBJCFLAGS OBJCDEFS \
    599601        ASFLAGS ASDEFS \
    600602        RCFLAGS RCDEFS \
     
    608610PROPS_ACCUMULATE_L := \
    609611        SDKS SOURCES \
    610         INCS CINCS CXXINCX ASINCS RCINCS \
     612        INCS CINCS CXXINCS OBJCINCS ASINCS RCINCS \
    611613        LIBS LIBPATH \
    612614        DIRS BLDDIRS CLEAN
     
    615617PROPS_ACCUMULATE_L_LNK := \
    616618        SDKS SOURCES \
    617         INCS CINCS CXXINCX ASINCS RCINCS \
     619        INCS CINCS CXXINCS OBJCINCS ASINCS RCINCS \
    618620        BLDDIRS CLEAN
    619621
     
    907909 # @param 2     The source filename.
    908910 # @param 3     The primary link output file name.
    909  # @param 4     The source type (CXX,C,AS,RC,++).
     911 # @param 4     The source type (C,CXX,OBJC,AS,RC,++).
    910912 MSG_COMPILE  ?= $(call MSG_L1,Compiling $1 - $2,=> $3)
    911913 ## Tool
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