1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ=../.. 25PRJNAME=odk 26TARGET=copying 27 28#---------------------------------------------------------------- 29.INCLUDE: settings.mk 30.INCLUDE: $(PRJ)/util/makefile.pmk 31#---------------------------------------------------------------- 32 33SCM_ROOT_PATH=$(shell dirname $(SRC_ROOT)) 34SCMREVISION=$(shell $(PERL) -I$(SOLARENV)/bin/modules -e "use RepoRevision; print RepoRevision::DetectRevisionId(\"$(SCM_ROOT_PATH)\")") 35 36IDLLIST:={$(subst,/,/ $(shell @$(FIND) $(IDLOUT)/com -type f))} 37DESTIDLLIST={$(subst,$(IDLOUT),$(DESTDIRIDL) $(IDLLIST))} 38 39DESTINCLUDELIST={$(subst,$(SOLARINCDIR),$(DESTDIRINC) $(INCLUDELIST))} 40DESTINCLUDELIST+=$(DESTDIRINC)/udkversion.mk 41 42DESTINCDIRLIST={$(subst,$(INCOUT),$(DESTDIRINC) $(INCLUDEDIRLIST))} 43 44IDL_DOCU_INDEX_FILE = $(DESTDIRGENIDLREF)/module-ix.html 45IDL_DOCU_CLEANUP_FLAG = $(MISC)/idl_docu_cleanup.flag 46 47IDL_CHAPTER_REFS=idl_chapter_refs.txt 48 49EXELIST = \ 50 $(DESTDIRBIN)/cppumaker$(EXEPOSTFIX) \ 51 $(DESTDIRBIN)/regcompare$(EXEPOSTFIX) \ 52 $(DESTDIRBIN)/ucpp$(EXEPOSTFIX) \ 53 $(DESTDIRBIN)/idlc$(EXEPOSTFIX) \ 54 $(DESTDIRBIN)/javamaker$(EXEPOSTFIX) \ 55 $(DESTDIRBIN)/autodoc$(EXEPOSTFIX) \ 56 $(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) \ 57 $(DESTDIRBIN)/uno-skeletonmaker$(EXEPOSTFIX) 58 59.IF "$(GUI)"=="WNT" 60EXELIST += \ 61 $(DESTDIRBIN)/climaker$(EXEPOSTFIX) 62.ENDIF 63 64.IF "$(GUI)"=="WNT" 65CLILIST = \ 66 $(DESTDIRCLI)/cli_basetypes.dll \ 67 $(DESTDIRCLI)/cli_uretypes.dll \ 68 $(DESTDIRCLI)/cli_oootypes.dll \ 69 $(DESTDIRCLI)/cli_ure.dll \ 70 $(DESTDIRCLI)/cli_cppuhelper.dll 71.ENDIF 72 73 74.IF "$(GUI)"=="WNT" 75LIBLIST = \ 76 $(DESTDIRLIB)/istore.lib \ 77 $(DESTDIRLIB)/ireg.lib \ 78 $(DESTDIRLIB)/isal.lib \ 79 $(DESTDIRLIB)/isalhelper.lib \ 80 $(DESTDIRLIB)/icppu.lib \ 81 $(DESTDIRLIB)/icppuhelper.lib \ 82 $(DESTDIRLIB)/irmcxt.lib \ 83 $(DESTDIRLIB)/ipurpenvhelper3MSC.lib 84 85.ENDIF 86 87.IF "$(OS)"=="LINUX" 88 LIBLIST = $(DESTDIRLIB)/libsalcpprt.a 89.ENDIF 90 91# note, that inner class files are copied implicitly 92DESTCLASSESLIST= \ 93 $(DESTDIRJAR)/com/sun/star/lib/loader/Loader.class \ 94 $(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder.class \ 95 $(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKey.class \ 96 $(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKeyException.class 97# $(DESTDIRJAR)/com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class \ 98# $(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class \ 99 100SETTINGSLIST= \ 101 $(DESTDIRSETTINGS)/settings.mk \ 102 $(DESTDIRSETTINGS)/platform.mk \ 103 $(DESTDIRSETTINGS)/std.mk \ 104 $(DESTDIRSETTINGS)/stdtarget.mk \ 105 $(DESTDIRSETTINGS)/dk.mk 106 107 108.IF "$(GUI)"=="WNT" 109SETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.def 110.ENDIF 111 112.IF "$(GUI)"=="UNX" 113SETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.map 114.ENDIF 115 116 117DOCUHTMLFILES+= \ 118 $(DESTDIR)/index.html \ 119 $(DESTDIRDOCU)/tools.html \ 120 $(DESTDIRDOCU)/notsupported.html \ 121 $(DESTDIRDOCU)/install.html \ 122 $(DESTDIREXAMPLES)/examples.html \ 123 $(DESTDIREXAMPLES)/DevelopersGuide/examples.html 124 125DOCUFILES= \ 126 $(DOCUHTMLFILES) \ 127 $(DESTDIRDOCU)/sdk_styles.css \ 128 $(DESTDIRGENIDLREF)/idl.css \ 129 $(DESTDIRDOCUIMAGES)/nada.gif \ 130 $(DESTDIRDOCUIMAGES)/arrow-2.gif \ 131 $(DESTDIRDOCUIMAGES)/blueball.png \ 132 $(DESTDIRDOCUIMAGES)/ooo-main-app_32.png \ 133 $(DESTDIRDOCUIMAGES)/sdk-footer-logo.png \ 134 $(DESTDIRDOCUIMAGES)/arrow-1.gif \ 135 $(DESTDIRDOCUIMAGES)/arrow-3.gif \ 136 $(DESTDIRDOCUIMAGES)/bg_table.png \ 137 $(DESTDIRDOCUIMAGES)/bg_table2.png \ 138 $(DESTDIRDOCUIMAGES)/bg_table3.png \ 139 $(DESTDIRDOCUIMAGES)/nav_down.png \ 140 $(DESTDIRDOCUIMAGES)/nav_home.png \ 141 $(DESTDIRDOCUIMAGES)/nav_left.png \ 142 $(DESTDIRDOCUIMAGES)/nav_right.png \ 143 $(DESTDIRDOCUIMAGES)/nav_up.png \ 144 $(DESTDIRDOCUIMAGES)/sdk_head-1.png \ 145 $(DESTDIRDOCUIMAGES)/sdk_head-2.png \ 146 $(DESTDIRDOCUIMAGES)/sdk_line-1.gif 147 148.IF "$(GUI)"=="UNX" 149INSTALLSCRIPT= \ 150 $(DESTDIR)/config.guess \ 151 $(DESTDIR)/config.sub \ 152 $(DESTDIR)/configure.pl \ 153 $(DESTDIR)/setsdkenv_unix \ 154 $(DESTDIR)/setsdkenv_unix.sh.in 155.ELSE 156INSTALLSCRIPT= \ 157 $(DESTDIR)/setsdkenv_windows.bat \ 158 $(DESTDIR)/setsdkenv_windows.template \ 159 $(DESTDIR)/setsdkname.bat \ 160 $(DESTDIR)/cfgWin.js 161.ENDIF 162 163DIR_FILE_LIST=\ 164 $(EXELIST) \ 165 $(CLILIST) \ 166 $(LIBLIST) \ 167 $(SETTINGSLIST) \ 168 $(DOCUFILES) \ 169 $(INSTALLSCRIPT) \ 170 $(DESTIDLLIST) \ 171 $(DESTINCLUDELIST) \ 172 $(DESTCLASSESLIST) \ 173 $(IDL_DOCU_INDEX_FILE) \ 174 $(CONVERTTAGFLAG) 175 176.IF "$(OS)"=="MACOSX" 177DIR_FILE_LIST += $(DESTDIRBIN)/addsym-macosx.sh 178.ENDIF 179 180.IF "$(SOLAR_JAVA)" != "" 181DIR_FILE_LIST += $(DESTDIRJAR)/win/unowinreg.dll 182.ENDIF 183 184DIR_DIRECTORY_LIST:=$(uniq $(DIR_FILE_LIST:d)) 185DIR_CREATE_FLAG:=$(MISC)/copying_dirs_created.txt 186DIR_FILE_FLAG:=$(MISC)/copying_files.txt 187 188.IF "$(SOLAR_JAVA)" != "" 189# Special work for simple uno bootstrap mechanism 190# zip uno loader class files and winreg helper library for later 191# use in the build process (e.g. helper tools) 192MYZIPTARGET=$(BIN)/uno_loader_classes.zip 193MYZIPFLAGS=-u -r 194MYZIPDIR=$(DESTDIRJAR) 195MYZIPLIST=com/* win/* 196 197.ENDIF 198 199#-------------------------------------------------- 200# TARGETS 201#-------------------------------------------------- 202 203.IF "$(L10N_framework)"=="" 204 205all : CLEAN_DKVERSION_CHECK \ 206 $(DIR_FILE_LIST) \ 207 $(DIR_FILE_FLAG) \ 208 209.ENDIF 210 211#-------------------------------------------------- 212# use global rules 213#-------------------------------------------------- 214.INCLUDE: $(PRJ)/util/odk_rules.pmk 215 216 217CLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)/dk.mk 218 219 220CLEAN_DKVERSION_CHECK: 221 @@-rm -f $(CLEANUP_DKVERSION_FILE) 222 223$(DESTDIRBIN)/addsym-macosx.sh : addsym-macosx.sh 224 @@-rm -f $@ 225 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@ 226 -chmod 755 $@ 227 228$(DESTDIRSETTINGS)/dk.mk : dk.mk 229 @@-rm -f $@ 230 -$(MKDIRHIER) $(@:d) 231 tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(RSCREVISION)/' -e 's/@@SCMREVISION@@/$(SCMREVISION)/'> $@ 232 233$(CONVERTTAGFLAG) : $(DOCUHTMLFILES) 234# $(PERL) $(CONVERTTAGSCRIPT) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES) 235 @echo "tags converted" > $@ 236 237$(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(PRJ)/docs/common/ref/idl.css $(DESTIDLLIST) 238 @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF) 239 $(TOUCH) $@ 240 241$(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG) 242 -$(MKDIRHIER) $(@:d) 243 $(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" \ 244 -name $(IDLDOCREFNAME) -lg idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL) 245 -rm $(@:d)/idl.css 246 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)/docs/common/ref/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)/idl.css 247 248 249.IF "$(SOLAR_JAVA)" != "" 250$(MYZIPTARGET) : $(BIN)/unowinreg.dll $(DESTCLASSESLIST) 251 cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ../../../bin/$(MYZIPTARGET:b) $(MYZIPLIST) 252.ENDIF 253