Update ooo320-m1
[ooovba.git] / cli_ure / unotypes / makefile.mk
blobd863c74d1e1023341cd3aea80178287eff1b6c65
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.19 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ = ..
33 PRJNAME = cli_ure
35 # for dummy
36 TARGET = unotypes
38 .INCLUDE : settings.mk
39 .INCLUDE : $(PRJ)$/util$/makefile.pmk
41 .INCLUDE : $(PRJ)$/util$/target.pmk
42 .INCLUDE : target.mk
44 .IF "$(BUILD_FOR_CLI)" != "" && ("$(GUI)" == "WNT" || "$(ENABLE_MONO_CLIMAKER)" == "YES")
46 .IF "$(ENABLE_MONO_CLIMAKER)" == "YES"
47 WRAPCMD=MONO_PATH=$(OUT)/bin:$(MONO_PATH) LD_LIBRARY_PATH=$(SOLARLIBDIR):$(OUT)/lib
48 CLIMAKER=$(BIN)$/climaker
49 .ELSE
50 CLIMAKER=climaker.exe
51 .ENDIF
53 .INCLUDE : $(BIN)$/cliureversion.mk
55 POLICY_ASSEMBLY_FILE=$(BIN)/$(CLI_URETYPES_POLICY_ASSEMBLY).dll
57 ALLTAR : \
58 $(OUT)$/bin$/cli_uretypes.dll \
59 $(POLICY_ASSEMBLY_FILE)
61 CLIMAKERFLAGS =
62 .IF "$(debug)" != ""
63 CLIMAKERFLAGS += --verbose
64 .ENDIF
66 #When changing the assembly version then this must also be done in scp2
67 $(OUT)$/bin$/cli_uretypes.dll : $(CLIMAKER) $(SOLARBINDIR)$/types.rdb $(BIN)$/cliureversion.mk
68 $(WRAPCMD) $(CLIMAKER) $(CLIMAKERFLAGS) \
69 --out $@ \
70 --keyfile $(BIN)$/cliuno.snk \
71 --assembly-version $(CLI_URETYPES_NEW_VERSION) \
72 --assembly-description "This assembly contains metadata for the StarOffice/OpenOffice.org API." \
73 --assembly-company "OpenOffice.org" \
74 $(SOLARBINDIR)$/udkapi.rdb
76 #do not forget to deliver cli_uretypes.config. It is NOT embedded in the policy file.
77 #see i62886 for the dependency on cli_uretypes.dll
78 $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_uretypes.config $(OUT)$/bin$/cli_uretypes.dll
79 $(WRAPCMD) $(AL) -out:$@ \
80 -version:$(CLI_URETYPES_POLICY_VERSION) \
81 -keyfile:$(BIN)$/cliuno.snk \
82 -link:cli_uretypes.config,$(BIN)$/cli_uretypes.config
84 #Create the config file that is used with the policy assembly
85 $(BIN)$/cli_uretypes.config: cli_uretypes_config $(BIN)$/cliureversion.mk
86 $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
87 $< $@
90 .ENDIF