Changeset 1256 in kBuild
- Timestamp:
- Oct 25, 2007 2:42:13 AM (17 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r1255 r1256 1458 1458 # @param $(target) Normalized target name. 1459 1459 # @param $(source) Source file name. 1460 # @param $(type) Source type. {C,CXX,AS }1460 # @param $(type) Source type. {C,CXX,AS,OBJC} 1461 1461 # @param bld_type Build type. 1462 1462 # @param bld_trg Build target. 1463 1463 # @param bld_trg_arch Build target arch. 1464 1464 # @param bld_trg_cpu Build target cpu. 1465 def_target_source_c_cpp_ asm_rc_new = $(kb-src-one )1465 def_target_source_c_cpp_objc_asm_rc_new = $(kb-src-one ) 1466 1466 ifdef KMK_VERSION 1467 def_target_source_c_cpp_ asm_rc_var = def_target_source_c_cpp_asm_rc_new1467 def_target_source_c_cpp_objc_asm_rc_var = def_target_source_c_cpp_objc_asm_rc_new 1468 1468 else 1469 def_target_source_c_cpp_ asm_rc_var = def_target_source_c_cpp_asm_rc_old1469 def_target_source_c_cpp_objc_asm_rc_var = def_target_source_c_cpp_objc_asm_rc_old 1470 1470 endif 1471 1471 … … 1479 1479 type := C 1480 1480 $(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))) ) 1482 1482 1483 1483 # C++ sources 1484 1484 type := CXX 1485 1485 $(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 1489 type := 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))) ) 1487 1492 1488 1493 # ASM sources 1489 1494 type := AS 1490 1495 $(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))) ) 1492 1497 1493 1498 # Resource sources 1494 1499 type := RC 1495 1500 $(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))) ) 1497 1502 1498 1503 endef … … 1604 1609 $($(target)_ARFLAGS.$(bld_trg).$(bld_trg_arch)) \ 1605 1610 $($(target)_ARFLAGS.$(bld_trg_cpu)) 1606 othersrc := $(filter-out %.c %.cpp %.cxx %.cc %. s %.S %.asm %.rc %.o %.obj %.res,\1611 othersrc := $(filter-out %.c %.cpp %.cxx %.cc %.m %.s %.S %.asm %.rc %.o %.obj %.res,\ 1607 1612 $($(target)_SOURCES) \ 1608 1613 $($(target)_SOURCES.$(bld_trg)) \ … … 1851 1856 $($(target)_LDFLAGS.$(bld_trg).$(bld_trg_arch))\ 1852 1857 $($(target)_LDFLAGS.$(bld_trg_cpu)) 1853 othersrc := $(filter-out %.c %.cpp %.cxx %.cc %. s %.S %.asm %.rc %.o %.obj %.res,\1858 othersrc := $(filter-out %.c %.cpp %.cxx %.cc %.m %.s %.S %.asm %.rc %.o %.obj %.res,\ 1854 1859 $($(target)_SOURCES)\ 1855 1860 $($(target)_SOURCES.$(bld_trg)) \ -
trunk/kBuild/header.kmk
r1191 r1256 557 557 ## PROPS_TOOLS 558 558 # This is a subset of PROPS_SINGLE. 559 PROPS_TOOLS := TOOL CTOOL CXXTOOL ASTOOL RCTOOL ARTOOL LDTOOL FETCHTOOL UNPACKTOOL PATCHTOOL559 PROPS_TOOLS := TOOL CTOOL CXXTOOL OBJCTOOL ASTOOL RCTOOL ARTOOL LDTOOL FETCHTOOL UNPACKTOOL PATCHTOOL 560 560 561 561 ## PROPS_SINGLE … … 564 564 # will do the necessary inheritance from templates to targets. 565 565 PROPS_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 ARLIBSUFF566 OBJSUFF COBJSUFF CXXOBJSUFF OBJCOBJSUFF ASOBJSUFF RCOBJSUFF SYSSUFF EXESUFF DLLSUFF LIBSUFF ARLIBSUFF 567 567 ## PROPS_SINGLE_LNK 568 568 # Subset of PROPS_SINGLE which applies to all linkable targets. 569 PROPS_SINGLE_LNK := TOOL CTOOL CXXTOOL ASTOOL RCTOOL \569 PROPS_SINGLE_LNK := TOOL CTOOL CXXTOOL OBJCTOOL ASTOOL RCTOOL \ 570 570 INST NOINST BLD_TYPE BLD_TRG BLD_TRG_ARCH BLD_TRG_CPU \ 571 OBJSUFF COBJSUFF CXXOBJSUFF ASOBJSUFF RCOBJSUFF571 OBJSUFF COBJSUFF CXXOBJSUFF OBJCOBJSUFF ASOBJSUFF RCOBJSUFF 572 572 573 573 ## PROPS_DEFERRED … … 586 586 CFLAGS CDEFS \ 587 587 CXXFLAGS CXXDEFS \ 588 OBJCFLAGS OBJCDEFS \ 588 589 ASFLAGS ASDEFS \ 589 590 RCFLAGS RCDEFS \ … … 597 598 CFLAGS CDEFS \ 598 599 CXXFLAGS CXXDEFS \ 600 OBJCFLAGS OBJCDEFS \ 599 601 ASFLAGS ASDEFS \ 600 602 RCFLAGS RCDEFS \ … … 608 610 PROPS_ACCUMULATE_L := \ 609 611 SDKS SOURCES \ 610 INCS CINCS CXXINC XASINCS RCINCS \612 INCS CINCS CXXINCS OBJCINCS ASINCS RCINCS \ 611 613 LIBS LIBPATH \ 612 614 DIRS BLDDIRS CLEAN … … 615 617 PROPS_ACCUMULATE_L_LNK := \ 616 618 SDKS SOURCES \ 617 INCS CINCS CXXINC XASINCS RCINCS \619 INCS CINCS CXXINCS OBJCINCS ASINCS RCINCS \ 618 620 BLDDIRS CLEAN 619 621 … … 907 909 # @param 2 The source filename. 908 910 # @param 3 The primary link output file name. 909 # @param 4 The source type (C XX,C,AS,RC,++).911 # @param 4 The source type (C,CXX,OBJC,AS,RC,++). 910 912 MSG_COMPILE ?= $(call MSG_L1,Compiling $1 - $2,=> $3) 911 913 ## Tool
Note:
See TracChangeset
for help on using the changeset viewer.