update dev300-m58
[ooovba.git] / unoil / climaker / makefile.mk
blob8c61263d48c48add7ee90dc4ec8064e2ab64c8ae
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.3 $
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 = unoil
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 .INCLUDE : version.txt
46 POLICY_ASSEMBLY_FILE=$(BIN)/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll
48 .IF "$(BUILD_FOR_CLI)" != "" || "$(ENABLE_MONO)" == "YES"
50 ALLTAR : \
51 $(BIN)$/clioootypesversion.mk \
52 $(BIN)$/cli_oootypes.dll \
53 $(POLICY_ASSEMBLY_FILE)
55 .ELSE
57 ALLTAR : \
58 $(BIN)$/clioootypesversion.mk
60 .ENDIF
62 .IF "$(ENABLE_MONO_CLIMAKER)" == "YES"
64 WRAPCMD=LD_LIBRARY_PATH=$(SOLARLIBDIR)
65 CLIMAKER=$(WRAPCMD) $(SOLARBINDIR)$/climaker
67 .ELSE
69 CLIMAKER=$(WRAPCMD) $(SOLARBINDIR)$/climaker.exe
71 .ENDIF
74 CLIMAKERFLAGS =
75 .IF "$(debug)" != ""
76 CLIMAKERFLAGS += --verbose
77 .ENDIF
79 RDB = $(SOLARBINDIR)$/offapi.rdb
80 EXTRA_RDB = $(SOLARBINDIR)$/udkapi.rdb
82 EXTERNAL_DIR=$(PRJ)$/..$/external/cli
84 .IF "$(ENABLE_MONO)" == "YES" && "$(ENABLE_MONO_CLIMAKER)" != "YES"
86 $(BIN)$/cli_oootypes.dll : $(EXTERNAL_DIR)$/cli_oootypes.dll $(EXTERNAL_DIR)$/cli_oootypes.config
87 +$(COPY) $? $(BIN)$/
89 $(POLICY_ASSEMBLY_FILE) : $(EXTERNAL_DIR)$/$(CLI_OOOTYPES_POLICY_ASSEMBLY).dll
90 +$(COPY) $< $@
92 .ELSE # .IF "$(ENABLE_MONO)" == "YES" && "$(ENABLE_MONO_CLIMAKER)" != "YES"
94 $(BIN)/cli_oootypes.dll : $(RDB) $(EXTRA_RDB) version.txt
95 $(CLIMAKER) $(CLIMAKERFLAGS) \
96 --out $@ \
97 --assembly-version $(CLI_OOOTYPES_NEW_VERSION) \
98 --assembly-company "OpenOffice.org" \
99 --assembly-description "This assembly contains metadata for the StarOffice/OpenOffice.org API." \
100 -X $(EXTRA_RDB) \
101 -r $(SOLARBINDIR)$/cli_uretypes.dll \
102 --keyfile $(SOLARBINDIR)$/cliuno.snk \
103 $(RDB)
106 #Create the config file that is used with the policy assembly
107 $(BIN)$/cli_oootypes.config: cli_oootypes_config version.txt
108 $(PERL) $(SOLARENV)$/bin$/clipatchconfig.pl \
109 $< $@
111 $(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_oootypes.config $(BIN)$/cli_oootypes.dll
112 # al in mono seems broken and doesn't allow -link with filenames containing path
113 $(GNUCOPY) $(BIN)$/cli_oootypes.config .
114 $(WRAPCMD) $(AL) -out:$@ \
115 -version:$(CLI_OOOTYPES_POLICY_VERSION) \
116 -keyfile:$(SOLARBINDIR)$/cliuno.snk \
117 -link:cli_oootypes.config
118 $(RM) cli_oootypes.config
120 .ENDIF # .IF "$(ENABLE_MONO)" == "YES" && "$(ENABLE_MONO_CLIMAKER)" != "YES"
123 #always deliver a clioootypesversion.mk. It is needed for the packing process even for all other
124 #platforms. Therefore BUILD_FOR_CLI is not used here
125 $(BIN)$/clioootypesversion.mk: version.txt
126 $(GNUCOPY) $< $@