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
4b326ea3
Kaydet (Commit)
4b326ea3
authored
Eyl 20, 2012
tarafından
Tor Lillqvist
Kaydeden (comit)
Tor Lillqvist
Eyl 20, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No need for the juh/juhx dance when DISABLE_DYNLOADING
Change-Id: Ifc2bfb278947344d14b855ebf5527b603e333f15
üst
e7c9b468
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
2 deletions
+50
-2
Library_juh.mk
javaunohelper/Library_juh.mk
+11
-0
Module_javaunohelper.mk
javaunohelper/Module_javaunohelper.mk
+8
-1
Bootstrap.java
javaunohelper/com/sun/star/comp/helper/Bootstrap.java
+31
-1
No files found.
javaunohelper/Library_juh.mk
Dosyayı görüntüle @
4b326ea3
...
...
@@ -36,8 +36,19 @@ $(eval $(call gb_Library_use_libraries,juh,\
$(gb_STDLIBS) \
))
ifneq ($(DISABLE_DYNLOADING),TRUE)
$(eval $(call gb_Library_add_exception_objects,juh,\
javaunohelper/source/preload \
))
else
# In the DISABLE_DYNLOADING case the juh library is a static archive that gets
# linked into the single .so, so we can put directly into it the code that in
# normal cases goes into the juhx library
$(eval $(call gb_Library_add_exception_objects,juh,\
javaunohelper/source/bootstrap \
javaunohelper/source/javaunohelper \
javaunohelper/source/vm \
))
endif
# vim:set shiftwidth=4 softtabstop=4 expandtab:
javaunohelper/Module_javaunohelper.mk
Dosyayı görüntüle @
4b326ea3
...
...
@@ -28,12 +28,19 @@
$(eval $(call gb_Module_Module,javaunohelper))
ifneq ($(SOLAR_JAVA),)
$(eval $(call gb_Module_add_targets,javaunohelper,\
Library_juh \
Library_juhx \
Jar_juh \
Zip_juh \
))
ifneq ($(DISABLE_DYNLOADING),TRUE)
$(eval $(call gb_Module_add_targets,javaunohelper,\
Library_juhx \
))
endif
endif
# vim:set shiftwidth=4 softtabstop=4 expandtab:
javaunohelper/com/sun/star/comp/helper/Bootstrap.java
Dosyayı görüntüle @
4b326ea3
// -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/*
* This file is part of the LibreOffice project.
*
...
...
@@ -191,7 +193,33 @@ public class Bootstrap {
if
(!
m_loaded_juh
)
{
NativeLibraryLoader
.
loadLibrary
(
Bootstrap
.
class
.
getClassLoader
(),
"juh"
);
if
(
System
.
getProperty
(
"java.vendor"
)
==
"The Android Project"
)
{
// Find out if we are configured with DISABLE_DYNLOADING or
// not. Try to load the lo-bootstrap shared library which
// won't exist in the DISABLE_DYNLOADING case. (And which will
// be already loaded otherwise, so nothing unexpected happens
// that case.) Yeah, this would be simpler if I just could be
// bothered to keep a separate branch for DISABLE_DYNLOADING
// on Android, merging in master periodically, until I know
// for sure whether it is what I want, or not.
boolean
disable_dynloading
=
false
;
try
{
System
.
loadLibrary
(
"lo-bootstrap"
);
}
catch
(
UnsatisfiedLinkError
e
)
{
disable_dynloading
=
true
;
}
if
(!
disable_dynloading
)
{
NativeLibraryLoader
.
loadLibrary
(
Bootstrap
.
class
.
getClassLoader
(),
"juh"
);
}
}
else
{
NativeLibraryLoader
.
loadLibrary
(
Bootstrap
.
class
.
getClassLoader
(),
"juh"
);
}
m_loaded_juh
=
true
;
}
return
UnoRuntime
.
queryInterface
(
...
...
@@ -318,3 +346,5 @@ public class Bootstrap {
}.
start
();
}
}
// vim:set shiftwidth=4 softtabstop=4 expandtab:
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