xref: /trunk/main/cli_ure/unotypes/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 = cli_ure
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.IF "$(BUILD_FOR_CLI)" != ""
37cdf0e10cSrcweir
38cdf0e10cSrcweir.INCLUDE : $(BIN)$/cliureversion.mk
39cdf0e10cSrcweir
40cdf0e10cSrcweirPOLICY_ASSEMBLY_FILE=$(BIN)/$(CLI_URETYPES_POLICY_ASSEMBLY).dll
41cdf0e10cSrcweir
42cdf0e10cSrcweirALLTAR : \
43cdf0e10cSrcweir	$(OUT)$/bin$/cli_uretypes.dll \
44cdf0e10cSrcweir	$(POLICY_ASSEMBLY_FILE)
45cdf0e10cSrcweir
46cdf0e10cSrcweirCLIMAKERFLAGS =
47cdf0e10cSrcweir.IF "$(debug)" != ""
48cdf0e10cSrcweirCLIMAKERFLAGS += --verbose
49cdf0e10cSrcweir.ENDIF
50cdf0e10cSrcweir
51cdf0e10cSrcweir#When changing the assembly version then this must also be done in scp2
52cdf0e10cSrcweir$(OUT)$/bin$/cli_uretypes.dll : $(BIN)$/climaker.exe $(SOLARBINDIR)$/types.rdb $(BIN)$/cliureversion.mk
53cdf0e10cSrcweir	$(subst,$(SOLARBINDIR)$/climaker,$(BIN)$/climaker $(CLIMAKER)) $(CLIMAKERFLAGS) \
54cdf0e10cSrcweir		--out $@ \
55cdf0e10cSrcweir		--keyfile $(BIN)$/cliuno.snk \
56cdf0e10cSrcweir		--assembly-version $(CLI_URETYPES_NEW_VERSION) \
57*ff3f4ebcSOliver-Rainer Wittmann		--assembly-description "This assembly contains metadata for the Apache OpenOffice API." \
58*ff3f4ebcSOliver-Rainer Wittmann		--assembly-company "Apache Software Foundation" \
59cdf0e10cSrcweir		$(SOLARBINDIR)$/udkapi.rdb
60cdf0e10cSrcweir
61cdf0e10cSrcweir#do not forget to deliver cli_uretypes.config. It is NOT embedded in the policy file.
62cdf0e10cSrcweir#see i62886 for the dependency on cli_uretypes.dll
63cdf0e10cSrcweir$(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_uretypes.config $(OUT)$/bin$/cli_uretypes.dll
64cdf0e10cSrcweir	$(WRAPCMD) AL.exe -out:$@ \
65cdf0e10cSrcweir			-version:$(CLI_URETYPES_POLICY_VERSION) \
66cdf0e10cSrcweir			-keyfile:$(BIN)$/cliuno.snk \
67cdf0e10cSrcweir			-link:$(BIN)$/cli_uretypes.config
68cdf0e10cSrcweir
69cdf0e10cSrcweir#Create the config file that is used with the policy assembly
70cdf0e10cSrcweir$(BIN)$/cli_uretypes.config: cli_uretypes_config $(BIN)$/cliureversion.mk
71cdf0e10cSrcweir	$(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
72cdf0e10cSrcweir	$< $@
73cdf0e10cSrcweir
74cdf0e10cSrcweir
75cdf0e10cSrcweir.ENDIF
76