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)/bluball.gif \ 132 $(DESTDIRDOCUIMAGES)/ooo-main-app_32.png \ 133 $(DESTDIRDOCUIMAGES)/odk-footer-logo.gif \ 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 $(DESTDIRDOCUIMAGES)/sdk_line-2.gif 148 149.IF "$(GUI)"=="UNX" 150INSTALLSCRIPT= \ 151 $(DESTDIR)/config.guess \ 152 $(DESTDIR)/config.sub \ 153 $(DESTDIR)/configure.pl \ 154 $(DESTDIR)/setsdkenv_unix \ 155 $(DESTDIR)/setsdkenv_unix.sh.in 156.ELSE 157INSTALLSCRIPT= \ 158 $(DESTDIR)/setsdkenv_windows.bat \ 159 $(DESTDIR)/setsdkenv_windows.template \ 160 $(DESTDIR)/setsdkname.bat \ 161 $(DESTDIR)/cfgWin.js 162.ENDIF 163 164DIR_FILE_LIST=\ 165 $(EXELIST) \ 166 $(CLILIST) \ 167 $(LIBLIST) \ 168 $(SETTINGSLIST) \ 169 $(DOCUFILES) \ 170 $(INSTALLSCRIPT) \ 171 $(DESTIDLLIST) \ 172 $(DESTINCLUDELIST) \ 173 $(DESTCLASSESLIST) \ 174 $(IDL_DOCU_INDEX_FILE) \ 175 $(CONVERTTAGFLAG) 176 177.IF "$(OS)"=="MACOSX" 178DIR_FILE_LIST += $(DESTDIRBIN)/addsym-macosx.sh 179.ENDIF 180 181.IF "$(SOLAR_JAVA)" != "" 182DIR_FILE_LIST += $(DESTDIRJAR)/win/unowinreg.dll 183.ENDIF 184 185DIR_DIRECTORY_LIST:=$(uniq $(DIR_FILE_LIST:d)) 186DIR_CREATE_FLAG:=$(MISC)/copying_dirs_created.txt 187DIR_FILE_FLAG:=$(MISC)/copying_files.txt 188 189.IF "$(SOLAR_JAVA)" != "" 190# Special work for simple uno bootstrap mechanism 191# zip uno loader class files and winreg helper library for later 192# use in the build process (e.g. helper tools) 193MYZIPTARGET=$(BIN)/uno_loader_classes.zip 194MYZIPFLAGS=-u -r 195MYZIPDIR=$(DESTDIRJAR) 196MYZIPLIST=com/* win/* 197 198.ENDIF 199 200#-------------------------------------------------- 201# TARGETS 202#-------------------------------------------------- 203 204.IF "$(L10N_framework)"=="" 205 206all : CLEAN_DKVERSION_CHECK \ 207 $(DIR_FILE_LIST) \ 208 $(DIR_FILE_FLAG) \ 209 210.ENDIF 211 212#-------------------------------------------------- 213# use global rules 214#-------------------------------------------------- 215.INCLUDE: $(PRJ)/util/odk_rules.pmk 216 217 218CLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)/dk.mk 219 220 221CLEAN_DKVERSION_CHECK: 222 @@-rm -f $(CLEANUP_DKVERSION_FILE) 223 224$(DESTDIRBIN)/addsym-macosx.sh : addsym-macosx.sh 225 @@-rm -f $@ 226 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@ 227 -chmod 755 $@ 228 229$(DESTDIRSETTINGS)/dk.mk : dk.mk 230 @@-rm -f $@ 231 -$(MKDIRHIER) $(@:d) 232 tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(RSCREVISION)/' -e 's/@@SCMREVISION@@/$(SCMREVISION)/'> $@ 233 234$(CONVERTTAGFLAG) : $(DOCUHTMLFILES) 235# $(PERL) $(CONVERTTAGSCRIPT) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES) 236 @echo "tags converted" > $@ 237 238$(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(PRJ)/docs/common/ref/idl.css $(DESTIDLLIST) 239 @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF) 240 $(TOUCH) $@ 241 242$(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG) 243 -$(MKDIRHIER) $(@:d) 244 $(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" \ 245 -name $(IDLDOCREFNAME) -lg idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL) 246 -rm $(@:d)/idl.css 247 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)/docs/common/ref/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)/idl.css 248 249 250.IF "$(SOLAR_JAVA)" != "" 251$(MYZIPTARGET) : $(BIN)/unowinreg.dll $(DESTCLASSESLIST) 252 cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ../../../bin/$(MYZIPTARGET:b) $(MYZIPLIST) 253.ENDIF 254