fix warnings in cli_ure
Change-Id: I4e081473612403e0bf277e8dbf5f1b9a15541dd7
This commit is contained in:
parent
0b9ebd7877
commit
f61e81a6ef
9 changed files with 77 additions and 66 deletions
|
@ -9,10 +9,6 @@
|
|||
|
||||
cli_ure_source_MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
||||
|
||||
# FIXME move this to configure.in ?
|
||||
cli_ure_CCNUMVER = $(shell $(CXX) | $(gb_AWK) -v num=true -f $(SOLARENV)/bin/getcompver.awk)
|
||||
cli_ure_CCNUMVER_GOOD = $(shell expr $(cli_ure_CCNUMVER) '>=' 001399999999)
|
||||
|
||||
include $(SRCDIR)/cli_ure/version/version.txt
|
||||
|
||||
$(eval $(call gb_CustomTarget_CustomTarget,cli_ure/source))
|
||||
|
@ -43,20 +39,17 @@ $(call gb_CustomTarget_get_workdir,cli_ure/source)/ure/assembly.cs : \
|
|||
$(call gb_CustomTarget_get_workdir,cli_ure/source)/basetypes/assembly.cs :
|
||||
$(GNUCOPY) $< $@.tmp && \
|
||||
echo '[assembly:System.Reflection.AssemblyVersion( "$(CLI_BASETYPES_NEW_VERSION)" )]' >> $@.tmp && \
|
||||
$(if $(cli_ure_CCNUMVER_GOOD),echo '[assembly:System.Reflection.AssemblyKeyFile( @"$(call gb_Helper_windows_path,$(SRCDIR)/cli_ure/source/cliuno.snk)" )]' >> $@.tmp &&) \
|
||||
mv $@.tmp $@
|
||||
|
||||
# TODO use macros for this
|
||||
$(call gb_CustomTarget_get_workdir,cli_ure/source)/native/assembly.cxx :
|
||||
$(GNUCOPY) $< $@.tmp && \
|
||||
echo '[assembly:System::Reflection::AssemblyVersion( "$(CLI_CPPUHELPER_NEW_VERSION)" )];' >> $@.tmp && \
|
||||
echo '[assembly:System::Reflection::AssemblyKeyFile( "$(call gb_Helper_windows_path,$(SRCDIR)/cli_ure/source/cliuno.snk)" )];' >> $@.tmp && \
|
||||
mv $@.tmp $@
|
||||
|
||||
$(call gb_CustomTarget_get_workdir,cli_ure/source)/ure/assembly.cs :
|
||||
$(GNUCOPY) $< $@.tmp && \
|
||||
echo '[assembly:System.Reflection.AssemblyVersion( "$(CLI_URE_NEW_VERSION)" )]' >> $@.tmp && \
|
||||
$(if $(cli_ure_CCNUMVER_GOOD),echo '[assembly:System.Reflection.AssemblyKeyFile( @"$(call gb_Helper_windows_path,$(SRCDIR)/cli_ure/source/cliuno.snk)" )]' >> $@.tmp &&) \
|
||||
mv $@.tmp $@
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
|
|
@ -17,6 +17,10 @@ $(eval $(call gb_Executable_add_cxxflags,climaker,\
|
|||
-wd4715 \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Executable_add_ldflags,climaker,\
|
||||
-ignore:4248 \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Executable_use_internal_bootstrap_api,climaker,\
|
||||
udkapi \
|
||||
))
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
|
||||
include $(SRCDIR)/cli_ure/version/version.txt
|
||||
|
||||
$(eval $(call gb_Library_Assembly,cli_cppuhelper_native))
|
||||
|
||||
# When compiling for CLR, disable "warning C4339: use of undefined type detected
|
||||
|
@ -17,6 +19,11 @@ $(eval $(call gb_Library_add_cxxflags,cli_cppuhelper_native,\
|
|||
-wd4339 \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Library_add_ldflags,cli_cppuhelper_native,\
|
||||
-ignore:4248 \
|
||||
-keyfile:$(call gb_Helper_windows_path,$(SRCDIR)/cli_ure/source/cliuno.snk) \
|
||||
))
|
||||
|
||||
# TODO do not encode filenames here
|
||||
$(eval $(call gb_Library_add_ldflags,cli_cppuhelper_native,\
|
||||
-delayload:cppuhelper3MSC.dll \
|
||||
|
|
|
@ -15,6 +15,10 @@ $(eval $(call gb_Library_add_cxxflags,cli_uno,\
|
|||
-wd4339 \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Library_add_ldflags,cli_uno,\
|
||||
-ignore:4248 \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Library_use_udk_api,cli_uno))
|
||||
|
||||
$(eval $(call gb_Library_use_libraries,cli_uno,\
|
||||
|
|
|
@ -42,67 +42,67 @@ System::Type^ loadCliType(System::String ^ typeName);
|
|||
System::Type^ mapUnoType(typelib_TypeDescription const * pTD);
|
||||
System::Type^ mapUnoType(typelib_TypeDescriptionReference const * pTD);
|
||||
typelib_TypeDescriptionReference* mapCliType(System::Type^ cliType);
|
||||
rtl::OUString mapCliString(System::String const ^ data);
|
||||
rtl::OUString mapCliString(System::String ^ data);
|
||||
System::String^ mapUnoString(rtl_uString const * data);
|
||||
System::String^ mapUnoTypeName(rtl_uString const * typeName);
|
||||
|
||||
ref struct Constants
|
||||
{
|
||||
static const System::String^ sXInterfaceName= gcnew System::String(
|
||||
static System::String^ sXInterfaceName= gcnew System::String(
|
||||
"unoidl.com.sun.star.uno.XInterface");
|
||||
static const System::String^ sObject= gcnew System::String("System.Object");
|
||||
static const System::String^ sType= gcnew System::String("System.Type");
|
||||
static const System::String^ sUnoidl= gcnew System::String("unoidl.");
|
||||
static const System::String^ sVoid= gcnew System::String("System.Void");
|
||||
static const System::String^ sAny= gcnew System::String("uno.Any");
|
||||
static const System::String^ sArArray= gcnew System::String("System.Array[]");
|
||||
static const System::String^ sBoolean= gcnew System::String("System.Boolean");
|
||||
static const System::String^ sChar= gcnew System::String("System.Char");
|
||||
static const System::String^ sByte= gcnew System::String("System.Byte");
|
||||
static const System::String^ sInt16= gcnew System::String("System.Int16");
|
||||
static const System::String^ sUInt16= gcnew System::String("System.UInt16");
|
||||
static const System::String^ sInt32= gcnew System::String("System.Int32");
|
||||
static const System::String^ sUInt32= gcnew System::String("System.UInt32");
|
||||
static const System::String^ sInt64= gcnew System::String("System.Int64");
|
||||
static const System::String^ sUInt64= gcnew System::String("System.UInt64");
|
||||
static const System::String^ sString= gcnew System::String("System.String");
|
||||
static const System::String^ sSingle= gcnew System::String("System.Single");
|
||||
static const System::String^ sDouble= gcnew System::String("System.Double");
|
||||
static const System::String^ sArBoolean= gcnew System::String("System.Boolean[]");
|
||||
static const System::String^ sArChar= gcnew System::String("System.Char[]");
|
||||
static const System::String^ sArByte= gcnew System::String("System.Byte[]");
|
||||
static const System::String^ sArInt16= gcnew System::String("System.Int16[]");
|
||||
static const System::String^ sArUInt16= gcnew System::String("System.UInt16[]");
|
||||
static const System::String^ sArInt32= gcnew System::String("System.Int32[]");
|
||||
static const System::String^ sArUInt32= gcnew System::String("System.UInt32[]");
|
||||
static const System::String^ sArInt64= gcnew System::String("System.Int64[]");
|
||||
static const System::String^ sArUInt64= gcnew System::String("System.UInt64[]");
|
||||
static const System::String^ sArString= gcnew System::String("System.String[]");
|
||||
static const System::String^ sArSingle= gcnew System::String("System.Single[]");
|
||||
static const System::String^ sArDouble= gcnew System::String("System.Double[]");
|
||||
static const System::String^ sArType= gcnew System::String("System.Type[]");
|
||||
static const System::String^ sArObject= gcnew System::String("System.Object[]");
|
||||
static const System::String^ sBrackets= gcnew System::String("[]");
|
||||
static const System::String^ sAttributeSet= gcnew System::String("set_");
|
||||
static const System::String^ sAttributeGet= gcnew System::String("get_");
|
||||
static System::String^ sObject= gcnew System::String("System.Object");
|
||||
static System::String^ sType= gcnew System::String("System.Type");
|
||||
static System::String^ sUnoidl= gcnew System::String("unoidl.");
|
||||
static System::String^ sVoid= gcnew System::String("System.Void");
|
||||
static System::String^ sAny= gcnew System::String("uno.Any");
|
||||
static System::String^ sArArray= gcnew System::String("System.Array[]");
|
||||
static System::String^ sBoolean= gcnew System::String("System.Boolean");
|
||||
static System::String^ sChar= gcnew System::String("System.Char");
|
||||
static System::String^ sByte= gcnew System::String("System.Byte");
|
||||
static System::String^ sInt16= gcnew System::String("System.Int16");
|
||||
static System::String^ sUInt16= gcnew System::String("System.UInt16");
|
||||
static System::String^ sInt32= gcnew System::String("System.Int32");
|
||||
static System::String^ sUInt32= gcnew System::String("System.UInt32");
|
||||
static System::String^ sInt64= gcnew System::String("System.Int64");
|
||||
static System::String^ sUInt64= gcnew System::String("System.UInt64");
|
||||
static System::String^ sString= gcnew System::String("System.String");
|
||||
static System::String^ sSingle= gcnew System::String("System.Single");
|
||||
static System::String^ sDouble= gcnew System::String("System.Double");
|
||||
static System::String^ sArBoolean= gcnew System::String("System.Boolean[]");
|
||||
static System::String^ sArChar= gcnew System::String("System.Char[]");
|
||||
static System::String^ sArByte= gcnew System::String("System.Byte[]");
|
||||
static System::String^ sArInt16= gcnew System::String("System.Int16[]");
|
||||
static System::String^ sArUInt16= gcnew System::String("System.UInt16[]");
|
||||
static System::String^ sArInt32= gcnew System::String("System.Int32[]");
|
||||
static System::String^ sArUInt32= gcnew System::String("System.UInt32[]");
|
||||
static System::String^ sArInt64= gcnew System::String("System.Int64[]");
|
||||
static System::String^ sArUInt64= gcnew System::String("System.UInt64[]");
|
||||
static System::String^ sArString= gcnew System::String("System.String[]");
|
||||
static System::String^ sArSingle= gcnew System::String("System.Single[]");
|
||||
static System::String^ sArDouble= gcnew System::String("System.Double[]");
|
||||
static System::String^ sArType= gcnew System::String("System.Type[]");
|
||||
static System::String^ sArObject= gcnew System::String("System.Object[]");
|
||||
static System::String^ sBrackets= gcnew System::String("[]");
|
||||
static System::String^ sAttributeSet= gcnew System::String("set_");
|
||||
static System::String^ sAttributeGet= gcnew System::String("get_");
|
||||
|
||||
static const System::String^ usXInterface = "com.sun.star.uno.XInterface";
|
||||
static const System::String^ usVoid = "void";
|
||||
static const System::String^ usType = "type";
|
||||
static const System::String^ usAny = "any";
|
||||
static const System::String^ usBrackets = "[]";
|
||||
static const System::String^ usBool = "boolean";
|
||||
static const System::String^ usByte = "byte";
|
||||
static const System::String^ usChar = "char";
|
||||
static const System::String^ usShort = "short";
|
||||
static const System::String^ usUShort = "unsigned short";
|
||||
static const System::String^ usLong = "long";
|
||||
static const System::String^ usULong = "unsigned long";
|
||||
static const System::String^ usHyper = "hyper";
|
||||
static const System::String^ usUHyper = "unsigned hyper";
|
||||
static const System::String^ usString = "string";
|
||||
static const System::String^ usFloat = "float";
|
||||
static const System::String^ usDouble = "double";
|
||||
static System::String^ usXInterface = "com.sun.star.uno.XInterface";
|
||||
static System::String^ usVoid = "void";
|
||||
static System::String^ usType = "type";
|
||||
static System::String^ usAny = "any";
|
||||
static System::String^ usBrackets = "[]";
|
||||
static System::String^ usBool = "boolean";
|
||||
static System::String^ usByte = "byte";
|
||||
static System::String^ usChar = "char";
|
||||
static System::String^ usShort = "short";
|
||||
static System::String^ usUShort = "unsigned short";
|
||||
static System::String^ usLong = "long";
|
||||
static System::String^ usULong = "unsigned long";
|
||||
static System::String^ usHyper = "hyper";
|
||||
static System::String^ usUHyper = "unsigned hyper";
|
||||
static System::String^ usString = "string";
|
||||
static System::String^ usFloat = "float";
|
||||
static System::String^ usDouble = "double";
|
||||
};
|
||||
|
||||
struct BridgeRuntimeError
|
||||
|
|
|
@ -67,8 +67,8 @@ struct Bridge
|
|||
~Bridge() SAL_THROW(());
|
||||
Bridge( uno_Environment * java_env, uno_ExtEnvironment * uno_env, bool registered_java2uno );
|
||||
|
||||
void acquire() const;
|
||||
void release() const;
|
||||
void acquire() const SAL_THROW(());
|
||||
void release() const SAL_THROW(());
|
||||
|
||||
void map_to_uno(
|
||||
void * uno_data, System::Object^ cli_data,
|
||||
|
|
|
@ -727,7 +727,7 @@ inline System::String^ mapUnoString( rtl_uString const * data)
|
|||
return gcnew System::String((__wchar_t*) data->buffer, 0, data->length);
|
||||
}
|
||||
|
||||
OUString mapCliString(System::String const ^ data)
|
||||
OUString mapCliString(System::String ^ data)
|
||||
{
|
||||
|
||||
if (data != nullptr)
|
||||
|
|
|
@ -40,8 +40,6 @@ public ref class Cli_environment
|
|||
int _numRegisteredObjects;
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
static Cli_environment()
|
||||
{
|
||||
m_objects = Hashtable::Synchronized(gcnew Hashtable());
|
||||
|
@ -53,6 +51,8 @@ public:
|
|||
sOidPart = buffer->ToString();
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
inline Cli_environment();
|
||||
|
||||
~Cli_environment();
|
||||
|
|
|
@ -41,6 +41,7 @@ $(call gb_Helper_abbreviate_dirs,\
|
|||
$(CLI_CSCFLAGS) \
|
||||
-target:library \
|
||||
-out:$(1) \
|
||||
-keyfile:$(call gb_Helper_windows_path,$(CLI_KEYFILE)) \
|
||||
-reference:System.dll \
|
||||
$(foreach assembly,$(CLI_ASSEMBLIES),-reference:$(assembly)) \
|
||||
$(CLI_SOURCES) \
|
||||
|
@ -71,6 +72,7 @@ define gb_CliLibraryTarget_CliLibraryTarget
|
|||
$(call gb_CliLibraryTarget_get_target,$(1)) : CLI_ASSEMBLIES :=
|
||||
$(call gb_CliLibraryTarget_get_target,$(1)) : CLI_SOURCES :=
|
||||
$(call gb_CliLibraryTarget_get_target,$(1)) : CLI_CSCFLAGS :=
|
||||
$(call gb_CliLibraryTarget_get_target,$(1)) : CLI_KEYFILE :=
|
||||
|
||||
$(call gb_CliLibraryTarget_get_target,$(1)) :| $(dir $(call gb_CliLibraryTarget_get_target,$(1))).dir
|
||||
|
||||
|
@ -148,6 +150,7 @@ $(call gb_CliAssembly_set_configfile,$(1),$(2))
|
|||
endef
|
||||
|
||||
define gb_CliLibrary_set_keyfile
|
||||
$(call gb_CliLibraryTarget_get_target,$(1)) : CLI_KEYFILE := $(2)
|
||||
$(call gb_CliAssembly_set_keyfile,$(1),$(2))
|
||||
|
||||
endef
|
||||
|
|
Loading…
Reference in a new issue