get findunusedcode target working
This commit is contained in:
parent
51bd0803b3
commit
bc340ff02d
1 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||
#
|
||||
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
|
||||
#
|
||||
|
@ -74,17 +74,18 @@ cross_toolset: $(WORKDIR)/bootstrap $(SRCDIR)/src.downloaded
|
|||
findunusedcode:
|
||||
@which callcatcher > /dev/null 2>&1 || \
|
||||
(echo "callcatcher not installed" && false)
|
||||
@sed -e s,$(INPATH),callcatcher,g $(SRCDIR)/Env.Host.sh > $(SRCDIR)/Env.callcatcher.sh
|
||||
@mkdir -p $(SRCDIR)/solenv/callcatcher/bin && \
|
||||
ln -sf $(SRCDIR)/solenv/$(INPATH)/bin/dmake \
|
||||
$(SRCDIR)/solenv/callcatcher/bin/dmake && \
|
||||
source <(sed -e s,$(INPATH),callcatcher,g $(SRCDIR)/Env.Host.sh) && \
|
||||
source $(SRCDIR)/Env.callcatcher.sh && \
|
||||
source $(SRCDIR)/solenv/bin/callcatchEnv.Set.sh && \
|
||||
$(call gb_BuildplTarget_command,instsetoo_native,--all)
|
||||
@source <(sed -e s,$(INPATH),callcatcher,g $(SRCDIR)/Env.Host.sh) && \
|
||||
@source $(SRCDIR)/Env.callcatcher.sh && \
|
||||
callanalyse \
|
||||
$(WORKDIR)/LinkTarget/*/* \
|
||||
*/$(OUTPATH)/bin/* \
|
||||
*/$(OUTPATH)/lib/* > unusedcode.all
|
||||
$$WORKDIR/LinkTarget/*/* \
|
||||
*/$$OUTPATH/bin/* \
|
||||
*/$$OUTPATH/lib/* > unusedcode.all
|
||||
#because non-c++ symbols could be dlsymed lets make a list of class level
|
||||
#unused methods which don't require much effort to determine if they need
|
||||
#to be just removed, or put behind appropiate platform or debug level ifdefs
|
||||
|
@ -98,5 +99,4 @@ build: instsetoo_native
|
|||
|
||||
endif # gb_PARTIALBUILD
|
||||
|
||||
# vim:set shiftwidth=4 softtabstop=4 noexpandtab:
|
||||
|
||||
# vim: set noet sw=4:
|
||||
|
|
Loading…
Reference in a new issue