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
a1d7f029
Kaydet (Commit)
a1d7f029
authored
Şub 28, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
solenv: sfx's ScriptLibraryContainer depends on #if HAVE_FEATURE_SCRIPTING
Change-Id: Ib5238d44d7bce6651ddbdc4f843f5aaab4eb97c2
üst
e5d775d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
native-code.py
solenv/bin/native-code.py
+21
-2
No files found.
solenv/bin/native-code.py
Dosyayı görüntüle @
a1d7f029
...
...
@@ -224,7 +224,7 @@ writer_factory_list = [
writer_constructor_list
=
[
# basic/util/sb.component
"com_sun_star_comp_sfx2_ScriptLibraryContainer_get_implementation"
,
(
"com_sun_star_comp_sfx2_ScriptLibraryContainer_get_implementation"
,
"#if HAVE_FEATURE_SCRIPTING"
)
,
# filter/source/textfilterdetect/textfd.component
"com_sun_star_comp_filters_PlainTextFilterDetect_get_implementation"
,
# sw/util/sw.component
...
...
@@ -257,6 +257,12 @@ constructor_map = {
'writer'
:
writer_constructor_list
,
}
def
get_constructor_guard
(
constructor
):
if
type
(
full_constructor_map
[
constructor
])
is
bool
:
return
None
else
:
return
full_constructor_map
[
constructor
]
# instead of outputting native-code.cxx, reduce the services.rdb according to
# the constraints, so that we can easily emulate what services do we need to
# add for a fully functional file loading / saving / ...
...
...
@@ -302,7 +308,10 @@ full_constructor_map = {}
if
options
.
groups
:
for
constructor_group
in
options
.
groups
:
for
constructor
in
constructor_map
[
constructor_group
]:
full_constructor_map
[
constructor
]
=
True
if
type
(
constructor
)
is
tuple
:
full_constructor_map
[
constructor
[
0
]]
=
constructor
[
1
]
else
:
full_constructor_map
[
constructor
]
=
True
# dict of all the factories that we need according to -g's
full_factory_map
=
{}
...
...
@@ -341,7 +350,12 @@ for entry in sorted(full_factory_map.keys()):
print
(
''
)
for
constructor
in
sorted
(
full_constructor_map
.
keys
()):
constructor_guard
=
get_constructor_guard
(
constructor
)
if
constructor_guard
:
print
(
constructor_guard
)
print
(
'void * '
+
constructor
+
'( void *, void * );'
)
if
constructor_guard
:
print
(
'#endif'
)
print
(
"""
const lib_to_factory_mapping *
...
...
@@ -391,7 +405,12 @@ lo_get_constructor_map(void)
static lib_to_constructor_mapping map[] = {"""
)
for
constructor
in
sorted
(
full_constructor_map
.
keys
()):
constructor_guard
=
get_constructor_guard
(
constructor
)
if
constructor_guard
:
print
(
constructor_guard
)
print
(
' { "'
+
constructor
+
'", '
+
constructor
+
' },'
)
if
constructor_guard
:
print
(
'#endif'
)
print
(
"""
{ 0, 0 }
...
...
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