xref: /trunk/main/unoil/climaker/makefile.mk (revision ff3f4ebc)
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
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ = ..
25cdf0e10cSrcweirPRJNAME = unoil
26cdf0e10cSrcweir
27cdf0e10cSrcweir# for dummy
28cdf0e10cSrcweirTARGET = unotypes
29cdf0e10cSrcweir
30cdf0e10cSrcweir.INCLUDE : settings.mk
31cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/makefile.pmk
32cdf0e10cSrcweir
33cdf0e10cSrcweir#.INCLUDE : $(PRJ)$/util$/target.pmk
34cdf0e10cSrcweir.INCLUDE : target.mk
35cdf0e10cSrcweir
36cdf0e10cSrcweir.INCLUDE : version.txt
37cdf0e10cSrcweir
38cdf0e10cSrcweirPOLICY_ASSEMBLY_FILE=$(BIN)/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll
39cdf0e10cSrcweir
40cdf0e10cSrcweir.IF "$(BUILD_FOR_CLI)" != ""
41cdf0e10cSrcweir
42cdf0e10cSrcweirALLTAR : \
43cdf0e10cSrcweir	$(BIN)$/clioootypesversion.mk \
44cdf0e10cSrcweir	$(BIN)$/cli_oootypes.dll \
45cdf0e10cSrcweir	$(POLICY_ASSEMBLY_FILE)
46cdf0e10cSrcweir
47cdf0e10cSrcweir.ELSE
48cdf0e10cSrcweir
49cdf0e10cSrcweirALLTAR : \
50cdf0e10cSrcweir	$(BIN)$/clioootypesversion.mk
51cdf0e10cSrcweir
52cdf0e10cSrcweir.ENDIF
53cdf0e10cSrcweir
54cdf0e10cSrcweir
55cdf0e10cSrcweirCLIMAKERFLAGS =
56cdf0e10cSrcweir.IF "$(debug)" != ""
57cdf0e10cSrcweirCLIMAKERFLAGS += --verbose
58cdf0e10cSrcweir.ENDIF
59cdf0e10cSrcweir
60cdf0e10cSrcweirRDB = $(SOLARBINDIR)$/offapi.rdb
61cdf0e10cSrcweirEXTRA_RDB = $(SOLARBINDIR)$/udkapi.rdb
62cdf0e10cSrcweir
63cdf0e10cSrcweir$(BIN)/cli_oootypes.dll : $(RDB) $(EXTRA_RDB) version.txt
64cdf0e10cSrcweir		$(CLIMAKER) $(CLIMAKERFLAGS) \
65cdf0e10cSrcweir		--out $@ \
66cdf0e10cSrcweir 		--assembly-version $(CLI_OOOTYPES_NEW_VERSION) \
67*ff3f4ebcSOliver-Rainer Wittmann		--assembly-company "Apache OpenOffice" \
68*ff3f4ebcSOliver-Rainer Wittmann		--assembly-description "This assembly contains metadata for the Apache OpenOffice API." \
69cdf0e10cSrcweir		-X $(EXTRA_RDB) \
70cdf0e10cSrcweir		-r $(SOLARBINDIR)$/cli_uretypes.dll \
71cdf0e10cSrcweir        --keyfile $(SOLARBINDIR)$/cliuno.snk \
72cdf0e10cSrcweir		$(RDB)
73cdf0e10cSrcweir
74cdf0e10cSrcweir
75cdf0e10cSrcweir#Create the config file that is used with the policy assembly
76cdf0e10cSrcweir$(BIN)$/cli_oootypes.config: cli_oootypes_config version.txt
77cdf0e10cSrcweir	$(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
78cdf0e10cSrcweir	$< $@
79cdf0e10cSrcweir
80cdf0e10cSrcweir$(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_oootypes.config $(BIN)$/cli_oootypes.dll
81cdf0e10cSrcweir	$(WRAPCMD) AL.exe -out:$@ \
82cdf0e10cSrcweir			-version:$(CLI_OOOTYPES_POLICY_VERSION) \
83cdf0e10cSrcweir			-keyfile:$(SOLARBINDIR)$/cliuno.snk \
84cdf0e10cSrcweir			-link:$(BIN)$/cli_oootypes.config
85cdf0e10cSrcweir
86cdf0e10cSrcweir#always deliver a clioootypesversion.mk. It is needed for the packing process even for all other
87cdf0e10cSrcweir#platforms. Therefore BUILD_FOR_CLI is not used here
88cdf0e10cSrcweir$(BIN)$/clioootypesversion.mk: version.txt
89cdf0e10cSrcweir	$(GNUCOPY) $< $@
90cdf0e10cSrcweir
91