Changeset 2535 in kBuild
- Timestamp:
- Aug 2, 2011 7:05:34 PM (13 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer-pass2-compiling-targets.kmk
r2531 r2535 390 390 # @param debug_dir The directory name. 391 391 define def_link_install_debug_dir_rule 392 local dir := $(debug_inst_path)/$(debug_inst )$(debug_dir)392 local dir := $(debug_inst_path)/$(debug_inst2)$(debug_dir) 393 393 $$(call KB_FN_ASSERT_ABSPATH,dir) 394 394 $$(dir): | $$$$(dir $$$$(patsubst %/,%,$$$$@)) … … 402 402 # @param debug_file Src=>Dst file pair. 403 403 define def_link_install_debug_file_rule 404 local dst := $(debug_inst_path)/$(debug_inst )$(word 2, $(subst =>,$(SP),$(debug_file)))404 local dst := $(debug_inst_path)/$(debug_inst2)$(word 2, $(subst =>,$(SP),$(debug_file))) 405 405 $$(call KB_FN_ASSERT_ABSPATH,dst) 406 406 local src := $(word 1, $(subst =>,$(SP),$(debug_file))) 407 407 $$(call KB_FN_ASSERT_ABSPATH,src) 408 408 $$(dst): $$(src) | $$$$(dir $$$$@) 409 %$$(call MSG_INST_FILE,$$ @,$$<)409 %$$(call MSG_INST_FILE,$$<,$$@) 410 410 $$(QUIET)$(debug_install_cmd) $(if $(mode),-m $(mode)) $(if $(uid),-o $(uid)) $(if $(gid),-g $(gid)) -- $$< $$@ 411 411 $(target)_2_DEBUG_$(debug_var)_TARGET_FILES += $$(dst) … … 418 418 if "$(substr $(debug_inst),-1,1)" == "/" 419 419 if "$(debug_inst)" == "./" 420 local debug_inst := 420 local debug_inst2 := 421 else 422 local debug_inst2 := $(debug_inst) 421 423 endif 422 424 local debug_dirs := $(patsubst $($(target)_0_OUTDIR)/%,%,$($(target)_2_OUTPUT_DEBUG_DIRS)) … … 427 429 ,$($(target)_0_OUTDIR)/$(file)=>$(file)) 428 430 else 429 local debug_files := $(call TOOL_$(tool)_$(tool_do)_DEBUG_INSTALL_FN,$(out),$(outbase),$(debug_inst)) 431 local debug_notdir:= $(notdir $(debug_inst)) 432 local debug_inst2 := $(dir $(debug_inst)) 433 local debug_files := $(call TOOL_$(tool)_$(tool_do)_DEBUG_INSTALL_FN,$(out),$(outbase),$(debug_notdir)) 430 434 local debug_dirs := $(filter %/,$(debug_files)) 431 435 local debug_files := $(filter-out %/,$(debug_files)) -
trunk/kBuild/tools/GCC4MACHO.kmk
r2523 r2535 106 106 TOOL_GCC4MACHO_LDFLAGS.profile ?= -g 107 107 108 TOOL_GCC4MACHO_STRIP_PROGRAM ?= strip -SXxru 109 TOOL_GCC4MACHO_STRIP_DLL ?= strip -Sxru 110 TOOL_GCC4MACHO_STRIP_SYSMOD ?= strip -Sru 111 108 112 109 113 ## 110 114 # Calculate the files in the debug bundle. 111 115 # @param 1 The whole output filename. 112 # @param 2 The output filename sans suffix. 116 # @param 2 The output filename sans suffix. 113 117 TOOL_GCC4MACHO_DEBUG_BUNDLE_FN = \ 114 118 $(1).dSYM/ \ … … 122 126 # Calculate the files in the debug bundle. 123 127 # @param 1 The whole linker output filename. 124 # @param 2 The linker output filename sans suffix. 128 # @param 2 The linker output filename sans suffix. 125 129 # @param 3 The desired install name (no dir slash). 130 # @remarks The Info.plist has some reference to the original name, but gdb 131 # does not care and only check for a symbol file in the DWARF 132 # directory with the same name as the debugged module. 126 133 TOOL_GCC4MACHO_DEBUG_INSTALL_FN= \ 127 134 $(3).dSYM/ \ … … 130 137 $(3).dSYM/Contents/Resources/DWARF/ \ 131 138 $(1).dSYM/Contents/Info.plist=>$(3).dSYM/Contents/Info.plist \ 132 $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $( 1))139 $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $(3)) 133 140 134 141 … … 388 395 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 389 396 ifeq ($(ld_debug),split) 390 $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out) 397 $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out) 398 $(QUIET)$(TOOL_GCC4MACHO_STRIP_PROGRAM) $(out) 391 399 endif 392 400 endef … … 420 428 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 421 429 ifeq ($(ld_debug),split) 422 $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out) 430 $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out) 431 $(QUIET)$(TOOL_GCC4MACHO_STRIP_DLL) $(out) 423 432 endif 424 433 endef … … 450 459 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 451 460 ifeq ($(ld_debug),split) 452 $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out) 461 $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out) 462 $(QUIET)$(TOOL_GCC4MACHO_STRIP_SYSMOD) $(out) 453 463 endif 454 464 endef -
trunk/kBuild/tools/GXX4MACHO.kmk
r2527 r2535 106 106 TOOL_GXX4MACHO_LDFLAGS.profile ?= -g 107 107 108 TOOL_GXX4MACHO_STRIP_PROGRAM ?= strip -SXxru 109 TOOL_GXX4MACHO_STRIP_DLL ?= strip -Sxru 110 TOOL_GXX4MACHO_STRIP_SYSMOD ?= strip -Sru 111 108 112 109 113 ## … … 124 128 # @param 2 The linker output filename sans suffix. 125 129 # @param 3 The desired install name (no dir slash). 130 # @remarks The Info.plist has some reference to the original name, but gdb 131 # does not care and only check for a symbol file in the DWARF 132 # directory with the same name as the debugged module. 126 133 TOOL_GXX4MACHO_DEBUG_INSTALL_FN= \ 127 134 $(3).dSYM/ \ … … 130 137 $(3).dSYM/Contents/Resources/DWARF/ \ 131 138 $(1).dSYM/Contents/Info.plist=>$(3).dSYM/Contents/Info.plist \ 132 $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $( 1))139 $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $(3)) 133 140 134 141 … … 388 395 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 389 396 ifeq ($(ld_debug),split) 390 $(QUIET)$(TOOL_GXX4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out) 397 $(QUIET)$(TOOL_GXX4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out) 398 $(QUIET)$(TOOL_GXX4MACHO_STRIP_PROGRAM) $(out) 391 399 endif 392 400 endef … … 419 427 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 420 428 ifeq ($(ld_debug),split) 421 $(QUIET)$(TOOL_GXX4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out) 429 $(QUIET)$(TOOL_GXX4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out) 430 $(QUIET)$(TOOL_GXX4MACHO_STRIP_DLL) $(out) 422 431 endif 423 432 endef … … 449 458 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 450 459 ifeq ($(ld_debug),split) 451 $(QUIET)$(TOOL_GXX4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out) 460 $(QUIET)$(TOOL_GXX4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out) 461 $(QUIET)$(TOOL_GXX4MACHO_STRIP_SYSMOD) $(out) 452 462 endif 453 463 endef
Note:
See TracChangeset
for help on using the changeset viewer.