You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by da...@apache.org on 2019/02/10 07:59:40 UTC

svn commit: r1853299 - in /openoffice/trunk/main: Module_ooo.mk packimages/Makefile packimages/Module_packimages.mk packimages/Package_packimages.mk packimages/prj/build.lst packimages/prj/d.lst packimages/prj/makefile.mk

Author: damjan
Date: Sun Feb 10 07:59:40 2019
New Revision: 1853299

URL: http://svn.apache.org/viewvc?rev=1853299&view=rev
Log:
Port main/packimages to gbuild.

Patch by: me


Added:
    openoffice/trunk/main/packimages/Makefile   (with props)
    openoffice/trunk/main/packimages/Module_packimages.mk
    openoffice/trunk/main/packimages/Package_packimages.mk
    openoffice/trunk/main/packimages/prj/makefile.mk
Modified:
    openoffice/trunk/main/Module_ooo.mk
    openoffice/trunk/main/packimages/prj/build.lst
    openoffice/trunk/main/packimages/prj/d.lst

Modified: openoffice/trunk/main/Module_ooo.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/Module_ooo.mk?rev=1853299&r1=1853298&r2=1853299&view=diff
==============================================================================
--- openoffice/trunk/main/Module_ooo.mk (original)
+++ openoffice/trunk/main/Module_ooo.mk Sun Feb 10 07:59:40 2019
@@ -72,6 +72,7 @@ $(eval $(call gb_Module_add_moduledirs,o
 	oovbaapi \
 	oox \
 	package \
+	packimages \
 	padmin \
 	psprint_config \
 	pyuno \

Added: openoffice/trunk/main/packimages/Makefile
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/packimages/Makefile?rev=1853299&view=auto
==============================================================================
--- openoffice/trunk/main/packimages/Makefile (added)
+++ openoffice/trunk/main/packimages/Makefile Sun Feb 10 07:59:40 2019
@@ -0,0 +1,32 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#    http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#  
+#**************************************************************
+
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set!)
+endif
+
+gb_PARTIALBUILD := T
+GBUILDDIR := $(SOLARENV)/gbuild
+include $(GBUILDDIR)/gbuild.mk
+
+$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
+
+# vim: set noet sw=4 ts=4:

Propchange: openoffice/trunk/main/packimages/Makefile
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openoffice/trunk/main/packimages/Module_packimages.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/packimages/Module_packimages.mk?rev=1853299&view=auto
==============================================================================
--- openoffice/trunk/main/packimages/Module_packimages.mk (added)
+++ openoffice/trunk/main/packimages/Module_packimages.mk Sun Feb 10 07:59:40 2019
@@ -0,0 +1,31 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#    http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#  
+#**************************************************************
+
+
+
+$(eval $(call gb_Module_Module,packimages))
+
+$(eval $(call gb_Module_add_targets,packimages,\
+	Package_packimages \
+))
+
+
+# vim: set noet sw=4 ts=4:

Added: openoffice/trunk/main/packimages/Package_packimages.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/packimages/Package_packimages.mk?rev=1853299&view=auto
==============================================================================
--- openoffice/trunk/main/packimages/Package_packimages.mk (added)
+++ openoffice/trunk/main/packimages/Package_packimages.mk Sun Feb 10 07:59:40 2019
@@ -0,0 +1,123 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#    http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#  
+#**************************************************************
+
+
+
+$(eval $(call gb_Package_Package,packimages_packimages,$(WORKDIR)/CustomTarget/packimages,packimages))
+
+# Custom sets, at 24x24 & 16x16 fall-back to industrial preferentially
+CUSTOM_IMAGE_SETS := hicontrast industrial classic
+CUSTOM_PREFERRED_FALLBACK_1 := -c $(SRCDIR)/ooo_custom_images/industrial
+CLASSIC_TARBALL=$(SRCDIR)/ooo_custom_images/classic/classic_images.tar.gz
+
+$(eval $(call gb_Package_add_file,packimages_packimages,bin/images.zip,bin/images.zip))
+$(foreach imageset,$(CUSTOM_IMAGE_SETS),$(eval $(call gb_Package_add_file,packimages_packimages,bin/images_$(imageset).zip,bin/images_$(imageset).zip)))
+$(eval $(call gb_Package_add_file,packimages_packimages,bin/images_brand.zip,bin/images_brand.zip))
+
+ifeq ($(VERBOSE_PACKIMG),TRUE)
+VERBOSESWITCH := -vv
+else ifeq ($(VERBOSE),TRUE)
+VERBOSESWITCH := -v
+else
+VERBOSESWITCH :=
+endif
+
+RSCDEFIMG := default_images
+SORTED_LIST := $(WORKDIR)/CustomTarget/packimages/res/img/sorted.lst
+COMMAND_IMAGE_LIST := $(WORKDIR)/CustomTarget/packimages/res/img/commandimagelist.ilst
+
+$(WORKDIR)/CustomTarget/packimages/bin/images.zip : $(COMMAND_IMAGE_LIST)
+	mkdir -p $(dir $@) && \
+	$(PERL) $(SOLARENV)/bin/packimages.pl \
+		$(VERBOSESWITCH) \
+		-g $(SOLARSRC)/$(RSCDEFIMG) \
+		-m $(SOLARSRC)/$(RSCDEFIMG) \
+		-c $(SRCDIR)/packimages \
+		-l $(OUTDIR)/res/img \
+		-s $(SORTED_LIST) \
+		-l $(OUTDIR)/res/img \
+		-o $@
+
+$(WORKDIR)/CustomTarget/packimages/bin/images_% : $(COMMAND_IMAGE_LIST)
+	mkdir -p $(dir $@) && \
+	$(PERL) $(SOLARENV)/bin/packimages.pl \
+		$(VERBOSESWITCH) \
+		-g $(SRCDIR)/$(RSCDEFIMG) \
+		-m $(SRCDIR)/$(RSCDEFIMG) \
+		-c $(SRCDIR)/packimages \
+		-c $(SRCDIR)/ooo_custom_images/$* \
+		-c $(WORKDIR)/CustomTarget/packimages/$* \
+		$(CUSTOM_PREFERRED_FALLBACK_1) \
+		$(CUSTOM_PREFERRED_FALLBACK_2) \
+		-l $(OUTDIR)/res/img \
+		-l $(WORKDIR)/CustomTarget/packimages/res/img \
+		-s $(SORTED_LIST) \
+		-o $@
+
+# make sure to have one to keep packing happy
+$(WORKDIR)/CustomTarget/packimages/bin/images_brand.zip :
+	mkdir -p $(dir $@) && \
+	touch $@
+
+$(COMMAND_IMAGE_LIST) : $(SORTED_LIST)
+	mkdir -p $(dir $@) && \
+	find $(SRCDIR)/$(RSCDEFIMG)/res/commandimagelist -name "*.png" | sed "s#$(SRCDIR)/$(RSCDEFIMG)/res#%GLOBALRES%#" | $(PERL) $(SOLARENV)/bin/sort.pl > $@.$(INPATH) && \
+	$(PERL) $(SOLARENV)/bin/diffmv.pl $@.$(INPATH) $@
+
+$(SORTED_LIST) : $(SRCDIR)/packimages/pack/image-sort.lst
+	mkdir -p $(dir $@) && \
+	$(PERL) $(SOLARENV)/bin/image-sort.pl $^ $(OUTDIR)/xml $@
+
+
+
+# generate the HiContrast icon set
+
+$(WORKDIR)/CustomTarget/packimages/bin/images_hicontrast.zip : $(WORKDIR)/CustomTarget/packimages/hicontrast.flag
+
+$(WORKDIR)/CustomTarget/packimages/hicontrast.flag :
+	$(PERL) $(SOLARENV)/bin/hicontrast-to-theme.pl \
+		$(SRCDIR)/default_images \
+		$(WORKDIR)/CustomTarget/packimages/hicontrast && \
+	touch $@
+
+
+
+# unpack the classic icon set
+
+$(WORKDIR)/CustomTarget/packimages/bin/images_classic.zip : $(WORKDIR)/CustomTarget/packimages/classic.flag
+
+ifeq ($(GUI),OS2)
+$(WORKDIR)/CustomTarget/packimages/classic.flag :
+	mkdir -p $(dir $@) && \
+	cd $(dir $@) && \
+	tar zxf $(CLASSIC_TARBALL) && \
+	touch $@
+	cat $@ || echo "ERROR: unpacking $(CLASSIC_TARBALL) failed"
+else
+$(WORKDIR)/CustomTarget/packimages/classic.flag :
+	mkdir -p $(dir $@) && \
+	cd $(dir $@) && \
+	gunzip -c $(CLASSIC_TARBALL) | ( tar -xf - ) && \
+	touch $@
+	$(if $(filter UNX,$(GUI)),chmod -R g+w $(WORKDIR)/CustomTarget/packimages/classic)
+	cat $@ || echo "ERROR: unpacking $(CLASSIC_TARBALL) failed"
+endif
+

Modified: openoffice/trunk/main/packimages/prj/build.lst
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/packimages/prj/build.lst?rev=1853299&r1=1853298&r2=1853299&view=diff
==============================================================================
--- openoffice/trunk/main/packimages/prj/build.lst (original)
+++ openoffice/trunk/main/packimages/prj/build.lst Sun Feb 10 07:59:40 2019
@@ -1,3 +1,2 @@
 pim	packimages	::	postprocess NULL
-pim	packimages						usr1	-	all	pim_mkout NULL
-pim	packimages\pack				nmake	-	all	pim_pack NULL
+pim	packimages\prj				nmake	-	all	pim_prj NULL

Modified: openoffice/trunk/main/packimages/prj/d.lst
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/packimages/prj/d.lst?rev=1853299&r1=1853298&r2=1853299&view=diff
==============================================================================
--- openoffice/trunk/main/packimages/prj/d.lst (original)
+++ openoffice/trunk/main/packimages/prj/d.lst Sun Feb 10 07:59:40 2019
@@ -1,2 +0,0 @@
-mkdir: %COMMON_DEST%\bin%_EXT%
-..\%__SRC%\bin\*.zip %COMMON_DEST%\bin%_EXT%

Added: openoffice/trunk/main/packimages/prj/makefile.mk
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/packimages/prj/makefile.mk?rev=1853299&view=auto
==============================================================================
--- openoffice/trunk/main/packimages/prj/makefile.mk (added)
+++ openoffice/trunk/main/packimages/prj/makefile.mk Sun Feb 10 07:59:40 2019
@@ -0,0 +1,44 @@
+#**************************************************************
+#  
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#  
+#    http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#  
+#**************************************************************
+
+
+
+PRJ=..
+TARGET=prj
+
+.INCLUDE : settings.mk
+
+.IF "$(VERBOSE)"!=""
+VERBOSEFLAG :=
+.ELSE
+VERBOSEFLAG := -s
+.ENDIF
+
+.IF "$(DEBUG)"!=""
+DEBUG_ARGUMENT=DEBUG=$(DEBUG)
+.ELIF "$(debug)"!=""
+DEBUG_ARGUMENT=debug=$(debug)
+.ELSE
+DEBUG_ARGUMENT=
+.ENDIF
+
+all:
+	cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) $(DEBUG_ARGUMENT) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog