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