17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweirPRJ=..$/..$/..
24cdf0e10cSrcweir
25cdf0e10cSrcweirPRJNAME=extensions
26cdf0e10cSrcweirTARGET=updchk
27cdf0e10cSrcweirPACKAGE=org.openoffice.Office
28cdf0e10cSrcweir
29*35779863SAriel Constenla-Haile
30*35779863SAriel Constenla-Haile.IF "$(ENABLE_ONLINE_UPDATE)" != "YES"
31*35779863SAriel Constenla-Haile@all:
32*35779863SAriel Constenla-Haile	@echo "Online Update disabled."
33*35779863SAriel Constenla-Haile.ELSE
34*35779863SAriel Constenla-Haile
35cdf0e10cSrcweirLIBTARGET=NO
36cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
37cdf0e10cSrcweir
38cdf0e10cSrcweirABSXCSROOT=$(SOLARXMLDIR)
39cdf0e10cSrcweirXCSROOT=..
40cdf0e10cSrcweirDTDDIR=$(ABSXCSROOT)
41cdf0e10cSrcweirXSLDIR=$(ABSXCSROOT)$/processing
42cdf0e10cSrcweirPROCESSOUT=$(MISC)$/$(TARGET)
43cdf0e10cSrcweirPROCESSORDIR=$(SOLARBINDIR)
44cdf0e10cSrcweir
45cdf0e10cSrcweir# no validation by inspector class
46cdf0e10cSrcweirNO_INSPECTION=TRUE
47cdf0e10cSrcweir
48cdf0e10cSrcweir# --- Settings ---
49cdf0e10cSrcweir
50cdf0e10cSrcweir.INCLUDE : settings.mk
51cdf0e10cSrcweir
52cdf0e10cSrcweir# no "lib" prefix
53cdf0e10cSrcweirDLLPRE =
54cdf0e10cSrcweir
55cdf0e10cSrcweir# --- Files ---
56cdf0e10cSrcweir
57cdf0e10cSrcweirSRS2NAME=$(TARGET)
58cdf0e10cSrcweirSRC2FILES=\
59cdf0e10cSrcweir	updatehdl.src
60cdf0e10cSrcweir
61cdf0e10cSrcweirRESLIB2NAME=upd
62cdf0e10cSrcweirRESLIB2SRSFILES= $(SRS)$/updchk.srs
63cdf0e10cSrcweirRESLIB2DEPN= updatehdl.src updatehdl.hrc
64cdf0e10cSrcweir
65cdf0e10cSrcweirSLOFILES=\
66cdf0e10cSrcweir	$(SLO)$/download.obj \
67cdf0e10cSrcweir	$(SLO)$/updatecheck.obj \
68cdf0e10cSrcweir	$(SLO)$/updatecheckjob.obj \
69cdf0e10cSrcweir	$(SLO)$/updatecheckconfig.obj \
70cdf0e10cSrcweir	$(SLO)$/updateprotocol.obj \
71cdf0e10cSrcweir	$(SLO)$/updatehdl.obj
72cdf0e10cSrcweir
73cdf0e10cSrcweirSHL1NOCHECK=TRUE
7473c96003SYuri Dario.IF "$(GUI)" == "OS2"
7573c96003SYuri DarioSHL1TARGET=updchkun
7673c96003SYuri Dario.ELSE
77cdf0e10cSrcweirSHL1TARGET=$(TARGET).uno
7873c96003SYuri Dario.ENDIF
79cdf0e10cSrcweirSHL1OBJS=$(SLOFILES)
80cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
81cdf0e10cSrcweir
82cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET)
83cdf0e10cSrcweirSHL1STDLIBS=    \
84cdf0e10cSrcweir        $(CPPUHELPERLIB) \
85cdf0e10cSrcweir        $(CPPULIB) \
86cdf0e10cSrcweir        $(CURLLIB) \
87cdf0e10cSrcweir        $(SALLIB) \
88cdf0e10cSrcweir        $(SHELL32LIB) \
89cdf0e10cSrcweir        $(OLE32LIB)
90cdf0e10cSrcweir
91cdf0e10cSrcweirSHL1VERSIONMAP=$(SOLARENV)/src/component.map
92cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
93cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
94cdf0e10cSrcweir
95cdf0e10cSrcweirPACKAGEDIR=$(subst,.,$/ $(PACKAGE))
96cdf0e10cSrcweirSPOOLDIR=$(MISC)$/registry$/spool
97cdf0e10cSrcweir
98cdf0e10cSrcweirXCUFILES= \
99cdf0e10cSrcweir	Addons.xcu \
100cdf0e10cSrcweir	Jobs.xcu
101cdf0e10cSrcweir
102cdf0e10cSrcweirMYXCUFILES= \
103cdf0e10cSrcweir	$(SPOOLDIR)$/$(PACKAGEDIR)$/Addons$/Addons-onlineupdate.xcu \
104cdf0e10cSrcweir	$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-onlineupdate.xcu
105cdf0e10cSrcweir
106cdf0e10cSrcweirLOCALIZEDFILES= \
107cdf0e10cSrcweir	Addons.xcu \
108cdf0e10cSrcweir	Jobs.xcu
109cdf0e10cSrcweir
110cdf0e10cSrcweir.IF "$(test)" != ""
111cdf0e10cSrcweirAPP1TARGET=updateprotocoltest
112cdf0e10cSrcweirAPP1STDLIBS= $(SHL1STDLIBS)
113cdf0e10cSrcweirAPP1OBJS= \
114cdf0e10cSrcweir	$(SLO)$/updateprotocol.obj \
115cdf0e10cSrcweir	$(SLO)$/updateprotocoltest.obj
116cdf0e10cSrcweir
117cdf0e10cSrcweir
118cdf0e10cSrcweir.ENDIF # "$(test)" != ""
119cdf0e10cSrcweir
120cdf0e10cSrcweir# --- Targets ---
121cdf0e10cSrcweir
122cdf0e10cSrcweir.INCLUDE : target.mk
123cdf0e10cSrcweir
124cdf0e10cSrcweirALLTAR : $(MYXCUFILES)
125cdf0e10cSrcweir
126cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
127cdf0e10cSrcweirXCU_SOURCEDIR:=$(PROCESSOUT)$/merge$/$(PACKAGEDIR)
128cdf0e10cSrcweir.ELSE			# "$(WITH_LANG)"!=""
129cdf0e10cSrcweirXCU_SOURCEDIR:=.
130cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
131cdf0e10cSrcweir
132cdf0e10cSrcweir$(SPOOLDIR)$/$(PACKAGEDIR)$/Addons$/Addons-onlineupdate.xcu : $(XCU_SOURCEDIR)$/Addons.xcu
133cdf0e10cSrcweir	@-$(MKDIRHIER) $(@:d)
134cdf0e10cSrcweir	@$(COPY) $< $@
135cdf0e10cSrcweir
136cdf0e10cSrcweir$(SPOOLDIR)$/$(PACKAGEDIR)$/Jobs$/Jobs-onlineupdate.xcu : $(XCU_SOURCEDIR)$/Jobs.xcu
137cdf0e10cSrcweir	@-$(MKDIRHIER) $(@:d)
138cdf0e10cSrcweir	@$(COPY) $< $@
139cdf0e10cSrcweir#	@$(PERL) transform.pl < $< > $@
140cdf0e10cSrcweir
141cdf0e10cSrcweir
142cdf0e10cSrcweirALLTAR : $(MISC)/updchk.uno.component
143cdf0e10cSrcweir
144cdf0e10cSrcweir$(MISC)/updchk.uno.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
145cdf0e10cSrcweir        updchk.uno.component
146cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
147cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
148cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt updchk.uno.component
149*35779863SAriel Constenla-Haile
150*35779863SAriel Constenla-Haile.ENDIF # "$(ENABLE_ONLINE_UPDATE)" == "YES"
151