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