Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f61e81a6
Kaydet (Commit)
f61e81a6
authored
Eki 21, 2012
tarafından
Peter Foley
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix warnings in cli_ure
Change-Id: I4e081473612403e0bf277e8dbf5f1b9a15541dd7
üst
0b9ebd78
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
78 additions
and
67 deletions
+78
-67
CustomTarget_cli_ure_assemblies.mk
cli_ure/CustomTarget_cli_ure_assemblies.mk
+0
-7
Executable_climaker.mk
cli_ure/Executable_climaker.mk
+4
-0
Library_cli_cppuhelper_native.mk
cli_ure/Library_cli_cppuhelper_native.mk
+7
-0
Library_cli_uno.mk
cli_ure/Library_cli_uno.mk
+4
-0
cli_base.h
cli_ure/source/uno_bridge/cli_base.h
+55
-55
cli_bridge.h
cli_ure/source/uno_bridge/cli_bridge.h
+2
-2
cli_data.cxx
cli_ure/source/uno_bridge/cli_data.cxx
+1
-1
cli_environment.h
cli_ure/source/uno_bridge/cli_environment.h
+2
-2
CliLibrary.mk
solenv/gbuild/CliLibrary.mk
+3
-0
No files found.
cli_ure/CustomTarget_cli_ure_assemblies.mk
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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:
cli_ure/Executable_climaker.mk
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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 \
))
...
...
cli_ure/Library_cli_cppuhelper_native.mk
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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 \
...
...
cli_ure/Library_cli_uno.mk
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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,\
...
...
cli_ure/source/uno_bridge/cli_base.h
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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
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
^
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
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
...
...
cli_ure/source/uno_bridge/cli_bridge.h
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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
,
...
...
cli_ure/source/uno_bridge/cli_data.cxx
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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
)
...
...
cli_ure/source/uno_bridge/cli_environment.h
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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
();
...
...
solenv/gbuild/CliLibrary.mk
Dosyayı görüntüle @
f61e81a6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment