INTEGRATION: CWS jl51 (1.21.2); FILE MERGED
2007/02/08 13:04:36 jl 1.21.2.4: #i69457# 2007/02/08 12:52:53 jl 1.21.2.3: #i69457# policy.1.0.cli_cppuhelper.dll must be linked with platform:x86 to match the platform of cli_cppuhelper.dll 2007/02/07 15:59:54 jl 1.21.2.2: #69457# signing only with -R option, because Ra does not exist in .net 11 2007/02/07 11:49:30 jl 1.21.2.1: #i69457# when building with .NET2 then we need to sign after the manifest tool (mt.exe) has added the manifest to the dll
This commit is contained in:
@@ -4,9 +4,9 @@
|
|||||||
#
|
#
|
||||||
# $RCSfile: makefile.mk,v $
|
# $RCSfile: makefile.mk,v $
|
||||||
#
|
#
|
||||||
# $Revision: 1.21 $
|
# $Revision: 1.22 $
|
||||||
#
|
#
|
||||||
# last change: $Author: obo $ $Date: 2007-01-25 13:43:57 $
|
# last change: $Author: ihi $ $Date: 2007-04-17 10:30:07 $
|
||||||
#
|
#
|
||||||
# The Contents of this file are made available subject to
|
# The Contents of this file are made available subject to
|
||||||
# the terms of GNU Lesser General Public License Version 2.1.
|
# the terms of GNU Lesser General Public License Version 2.1.
|
||||||
@@ -86,7 +86,7 @@ UNOTYPES = \
|
|||||||
# in CLR meta-data - use of this type may lead to a runtime exception":
|
# in CLR meta-data - use of this type may lead to a runtime exception":
|
||||||
.IF "$(CCNUMVER)" >= "001399999999"
|
.IF "$(CCNUMVER)" >= "001399999999"
|
||||||
CFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -wd4339
|
CFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -wd4339
|
||||||
LINKFLAGS += -MANIFEST:NO -NOENTRY -NODEFAULTLIB:nochkclr.obj -INCLUDE:__DllMainCRTStartup@12
|
LINKFLAGS += -NOENTRY -NODEFAULTLIB:nochkclr.obj -INCLUDE:__DllMainCRTStartup@12
|
||||||
.ELSE
|
.ELSE
|
||||||
CFLAGSCXX += -clr -AI $(OUT)$/bin -wd4339
|
CFLAGSCXX += -clr -AI $(OUT)$/bin -wd4339
|
||||||
#see Microsoft Knowledge Base Article - 814472
|
#see Microsoft Knowledge Base Article - 814472
|
||||||
@@ -142,21 +142,43 @@ $(ASSEMBLY_ATTRIBUTES) : assembly.cxx $(BIN)$/cliuno.snk $(BIN)$/cliureversion.m
|
|||||||
[assembly:System::Reflection::AssemblyKeyFile($(ASSEMBLY_KEY_X))]; $(ECHOQUOTE) \
|
[assembly:System::Reflection::AssemblyKeyFile($(ASSEMBLY_KEY_X))]; $(ECHOQUOTE) \
|
||||||
>> $(OUT)$/misc$/assembly_cppuhelper.cxx
|
>> $(OUT)$/misc$/assembly_cppuhelper.cxx
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#make sure we build cli_cppuhelper after the version changed
|
#make sure we build cli_cppuhelper after the version changed
|
||||||
$(SHL1OBJS) : $(BIN)$/cli_cppuhelper.config
|
$(SHL1OBJS) : $(BIN)$/cli_cppuhelper.config
|
||||||
|
|
||||||
ALLTAR : $(POLICY_ASSEMBLY_FILE)
|
SIGN= $(MISC)$/cppuhelper_is_signed_flag
|
||||||
|
|
||||||
|
ALLTAR : $(POLICY_ASSEMBLY_FILE) $(SIGN)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(SIGN): $(SHL1TARGETN)
|
||||||
|
$(WRAPCMD) sn.exe -R $(BIN)$/$(TARGET).dll $(BIN)$/cliuno.snk && $(TOUCH) $@
|
||||||
|
|
||||||
#do not forget to deliver cli_cppuhelper.config. It is NOT embedded in the policy file.
|
#do not forget to deliver cli_cppuhelper.config. It is NOT embedded in the policy file.
|
||||||
|
.IF "$(CCNUMVER)" >= "001399999999"
|
||||||
|
#.NET 2 and higher
|
||||||
|
$(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config
|
||||||
|
$(WRAPCMD) AL.exe -out:$@ \
|
||||||
|
-version:$(CLI_CPPUHELPER_POLICY_VERSION) \
|
||||||
|
-keyfile:$(BIN)$/cliuno.snk \
|
||||||
|
-link:$(BIN)$/cli_cppuhelper.config \
|
||||||
|
-platform:x86
|
||||||
|
.ELSE
|
||||||
|
#.NET 1.1: platform flag not needed
|
||||||
$(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config
|
$(POLICY_ASSEMBLY_FILE) : $(BIN)$/cli_cppuhelper.config
|
||||||
$(WRAPCMD) AL.exe -out:$@ \
|
$(WRAPCMD) AL.exe -out:$@ \
|
||||||
-version:$(CLI_CPPUHELPER_POLICY_VERSION) \
|
-version:$(CLI_CPPUHELPER_POLICY_VERSION) \
|
||||||
-keyfile:$(BIN)$/cliuno.snk \
|
-keyfile:$(BIN)$/cliuno.snk \
|
||||||
-link:$(BIN)$/cli_cppuhelper.config
|
-link:$(BIN)$/cli_cppuhelper.config
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
#Create the config file that is used with the policy assembly
|
#Create the config file that is used with the policy assembly
|
||||||
$(BIN)$/cli_cppuhelper.config: cli_cppuhelper_config $(BIN)$/cliureversion.mk
|
$(BIN)$/cli_cppuhelper.config: cli_cppuhelper_config $(BIN)$/cliureversion.mk
|
||||||
$(PERL) $(PRJ)$/source$/scripts$/subst_template.pl \
|
$(PERL) $(PRJ)$/source$/scripts$/subst_template.pl \
|
||||||
$< $@
|
$< $@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.ENDIF # "$(BUILD_FOR_CLI)" != ""
|
.ENDIF # "$(BUILD_FOR_CLI)" != ""
|
||||||
|
Reference in New Issue
Block a user