compile concat-deps in solenv; also put them into $(OUTDIR)
Change-Id: I4ef21f14a77442b60059c649b83435c775670060
This commit is contained in:
parent
d32878608e
commit
75a087c807
4
.gitignore
vendored
4
.gitignore
vendored
@ -104,10 +104,6 @@ TAGS
|
||||
/solenv/gdb/libreoffice/*.py[co]
|
||||
/solenv/gdb/libreoffice/util/*.py[co]
|
||||
|
||||
# botstrap generated tool
|
||||
/solenv/bin/concat-deps
|
||||
/solenv/bin/concat-deps.exe
|
||||
|
||||
# test output files
|
||||
test/user-template/user/psprint/pspfontcache
|
||||
|
||||
|
@ -361,8 +361,7 @@ endif
|
||||
rm -fr config_host.mk config_build.mk aclocal.m4 autom4te.cache \
|
||||
config.log config.status configure \
|
||||
ooo.lst post_download post_download.log \
|
||||
config_host.mk.last set_soenv.stamp src.downloaded warn \
|
||||
solenv/bin/concat-deps.exe solenv/bin/concat-deps
|
||||
config_host.mk.last set_soenv.stamp src.downloaded warn
|
||||
find $(SOLARENV)/gdb -name "*.pyc" -exec rm {} \;
|
||||
|
||||
#
|
||||
@ -392,7 +391,7 @@ endif
|
||||
#
|
||||
bootstrap: $(WORKDIR)/bootstrap compilerplugins
|
||||
|
||||
$(WORKDIR)/bootstrap: solenv/bin/concat-deps.c
|
||||
$(WORKDIR)/bootstrap:
|
||||
@cd $(SRCDIR) && ./bootstrap
|
||||
@mkdir -p $(dir $@) && touch $@
|
||||
|
||||
|
@ -72,14 +72,6 @@ if test "$BUILD_DMAKE" != "NO"; then
|
||||
echo "dmake copied to $SOLARENV/$OUTPATH_FOR_BUILD/bin/dmake$EXEEXT"
|
||||
fi
|
||||
|
||||
# build concat-deps
|
||||
echo "building concat-deps"
|
||||
if [ "$COM_FOR_BUILD" = "MSC" ] ; then
|
||||
# on cygwin force the use of gcc
|
||||
gcc -O2 "$SOLARENV/bin/concat-deps.c" -o "$SOLARENV/bin/concat-deps" || exit
|
||||
else
|
||||
$CC_FOR_BUILD -O2 "$SOLARENV/bin/concat-deps.c" -o "$SOLARENV/bin/concat-deps" || exit
|
||||
fi
|
||||
#make sure build.pl is executable
|
||||
|
||||
chmod +x "$SRC_ROOT/solenv/bin/build.pl"
|
||||
|
26
solenv/CustomTarget_concat-deps.mk
Normal file
26
solenv/CustomTarget_concat-deps.mk
Normal file
@ -0,0 +1,26 @@
|
||||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
|
||||
$(eval $(call gb_CustomTarget_CustomTarget,solenv/concat-deps))
|
||||
|
||||
$(call gb_CustomTarget_get_target,solenv/concat-deps) : \
|
||||
$(call gb_CustomTarget_get_workdir,solenv/concat-deps)/concat-deps
|
||||
|
||||
$(call gb_CustomTarget_get_workdir,solenv/concat-deps)/concat-deps : \
|
||||
$(SRCDIR)/solenv/bin/concat-deps.c \
|
||||
| $(call gb_CustomTarget_get_workdir,solenv/concat-deps)/.dir
|
||||
$(call gb_Output_announce,solenv/concat-deps,$(true),GCC,1)
|
||||
ifeq ($(COM_FOR_BUILD),MSC)
|
||||
# on cygwin force the use of gcc
|
||||
gcc -O2 $< -o $@
|
||||
else
|
||||
$(CC_FOR_BUILD) -O2 $< -o $@
|
||||
endif
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
@ -33,6 +33,13 @@ $(eval $(call gb_Module_add_targets,solenv,\
|
||||
Package_minor \
|
||||
))
|
||||
|
||||
ifeq ($(CROSS_COMPILING),$(false))
|
||||
$(eval $(call gb_Module_add_targets,solenv,\
|
||||
CustomTarget_concat-deps \
|
||||
Package_concat-deps \
|
||||
))
|
||||
endif
|
||||
|
||||
ifeq ($(GUI),UNX)
|
||||
ifneq ($(OS),IOS)
|
||||
ifneq ($(OS),ANDROID)
|
||||
|
14
solenv/Package_concat-deps.mk
Normal file
14
solenv/Package_concat-deps.mk
Normal file
@ -0,0 +1,14 @@
|
||||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
|
||||
$(eval $(call gb_Package_Package,solenv_concat-deps,$(call gb_CustomTarget_get_workdir,solenv/concat-deps)))
|
||||
|
||||
$(eval $(call gb_Package_add_file,solenv_concat-deps,bin/concat-deps,concat-deps))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
@ -386,7 +386,7 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
$(foreach object,$(8),$(call gb_GenCObject_get_dep_target,$(object))) \
|
||||
$(foreach object,$(9),$(call gb_GenCxxObject_get_dep_target,$(object))) \
|
||||
) && \
|
||||
$(SOLARENV)/bin/concat-deps $${RESPONSEFILE} > $(1)) && \
|
||||
$(call gb_Executable_get_target_for_build,concat-deps) $${RESPONSEFILE} > $(1)) && \
|
||||
rm -f $${RESPONSEFILE}
|
||||
|
||||
endef
|
||||
|
@ -143,7 +143,7 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
mkdir -p $(dir $(1)) && \
|
||||
RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),200,\
|
||||
$(foreach idl,$(patsubst %.idl,%,$(3)),$(call gb_UnoApiPartTarget_get_dep_target,$(idl)))) && \
|
||||
$(SOLARENV)/bin/concat-deps $${RESPONSEFILE} > $(1)) && \
|
||||
$(call gb_Executable_get_target_for_build,concat-deps) $${RESPONSEFILE} > $(1)) && \
|
||||
rm -f $${RESPONSEFILE}
|
||||
|
||||
endef
|
||||
|
Loading…
x
Reference in New Issue
Block a user