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