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
c78b2702
Kaydet (Commit)
c78b2702
authored
Tem 24, 2011
tarafından
Christian Lohmaier
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
minor whitespace/makefile cleanup
üst
c35fad42
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
134 additions
and
135 deletions
+134
-135
makefile.mk
pyuno/demo/makefile.mk
+30
-30
ooextract.py
pyuno/demo/ooextract.py
+2
-2
swriter.py
pyuno/demo/swriter.py
+0
-3
swritercomp.py
pyuno/demo/swritercomp.py
+0
-3
makefile.mk
pyuno/source/loader/makefile.mk
+17
-17
pythonloader.py
pyuno/source/loader/pythonloader.py
+4
-1
pyuno_loader.cxx
pyuno/source/loader/pyuno_loader.cxx
+1
-1
makefile.mk
pyuno/source/module/makefile.mk
+38
-40
uno.py
pyuno/source/module/uno.py
+3
-0
unohelper.py
pyuno/source/module/unohelper.py
+2
-0
makefile.mk
pyuno/zipcore/makefile.mk
+37
-38
No files found.
pyuno/demo/makefile.mk
Dosyayı görüntüle @
c78b2702
...
@@ -4,39 +4,39 @@ PRJ=..
...
@@ -4,39 +4,39 @@ PRJ=..
.INCLUDE
:
settings.mk
.INCLUDE
:
settings.mk
.INCLUDE
:
pyversion.mk
.INCLUDE
:
pyversion.mk
ROOT
=
$(MISC)
$
/
pyuno-doc
ROOT
=
$(MISC)
/pyuno-doc
FILES
=
\
FILES
=
\
$(ROOT)$/
python-bridge.html
\
$(ROOT)
/python-bridge.html
\
$(ROOT)$/
customized_setup.png
\
$(ROOT)
/customized_setup.png
\
$(ROOT)$/
mode_component.png
\
$(ROOT)
/mode_component.png
\
$(ROOT)$/
mode_ipc.png
\
$(ROOT)
/mode_ipc.png
\
$(ROOT)$/
modes.sxd
\
$(ROOT)
/modes.sxd
\
$(ROOT)$/
optional_components.png
\
$(ROOT)
/optional_components.png
\
$(ROOT)$/
samples
$/
swriter.py
\
$(ROOT)
/samples/swriter.py
\
$(ROOT)$/
samples
$/
swritercomp.py
\
$(ROOT)
/samples/swritercomp.py
\
$(ROOT)$/
samples
$/
ooextract.py
\
$(ROOT)
/samples/ooextract.py
\
$(ROOT)$/
samples
$/
biblioaccess.py
\
$(ROOT)
/samples/biblioaccess.py
\
$(ROOT)$/
samples
$/
swritercompclient.py
\
$(ROOT)
/samples/swritercompclient.py
\
$(ROOT)$/
samples
$/
hello_world_pyuno.zip
$(ROOT)
/samples/hello_world_pyuno.zip
$(MISC)$/pyuno-doc.zip
:
dirs $(FILES)
$(MISC)/pyuno-doc.zip
:
dirs $(FILES)
-rm
-f
$@
-
rm
-f
$@
cd
$(MISC)
&&
zip
-r
pyuno-doc.zip
pyuno-doc
cd
$(MISC)
&&
zip
-r
pyuno-doc.zip pyuno-doc
dirs .PHONY
:
-mkdir
$(ROOT)
-mkdir
$(ROOT)$/samples
dirs .PHONY
:
-
mkdir
$(ROOT)
-
mkdir
$(ROOT)
/samples
$(ROOT)
$/samples$
/hello_world_pyuno.zip
:
hello_world_comp.py Addons.xcu
$(ROOT)
/samples
/hello_world_pyuno.zip
:
hello_world_comp.py Addons.xcu
-rm
-f
$@
-
rm
-f
$@
zip
$@
hello_world_comp.py
Addons.xcu
zip
$@
hello_world_comp.py Addons.xcu
$(ROOT)
$/samples$
/%
:
%
$(ROOT)
/samples
/%
:
%
-rm
-f
$@
-
rm
-f
$@
cat
$?
>
$@
$(COPY)
$?
$@
$(ROOT)
$/%
:
..$/doc$
/%
$(ROOT)
/%
:
../doc
/%
-rm
-f
$@
-
rm
-f
$@
cat
$?
>
$@
$(COPY)
$?
$@
pyuno/demo/ooextract.py
Dosyayı görüntüle @
c78b2702
...
@@ -43,8 +43,8 @@ def main():
...
@@ -43,8 +43,8 @@ def main():
print
(
filterName
)
print
(
filterName
)
if
not
len
(
args
):
if
not
len
(
args
):
usage
()
usage
()
sys
.
exit
()
sys
.
exit
()
ctxLocal
=
uno
.
getComponentContext
()
ctxLocal
=
uno
.
getComponentContext
()
smgrLocal
=
ctxLocal
.
ServiceManager
smgrLocal
=
ctxLocal
.
ServiceManager
...
...
pyuno/demo/swriter.py
Dosyayı görüntüle @
c78b2702
...
@@ -61,9 +61,6 @@ insertTextIntoCell( table, "B1", "SecondColumn", textColor )
...
@@ -61,9 +61,6 @@ insertTextIntoCell( table, "B1", "SecondColumn", textColor )
insertTextIntoCell
(
table
,
"C1"
,
"ThirdColumn"
,
textColor
)
insertTextIntoCell
(
table
,
"C1"
,
"ThirdColumn"
,
textColor
)
insertTextIntoCell
(
table
,
"D1"
,
"SUM"
,
textColor
)
insertTextIntoCell
(
table
,
"D1"
,
"SUM"
,
textColor
)
values
=
(
(
22.5
,
21.5
,
121.5
),
(
5615.3
,
615.3
,
-
615.3
),
(
-
2315.7
,
315.7
,
415.7
)
)
table
.
getCellByName
(
"A2"
)
.
setValue
(
22.5
)
table
.
getCellByName
(
"A2"
)
.
setValue
(
22.5
)
table
.
getCellByName
(
"B2"
)
.
setValue
(
5615.3
)
table
.
getCellByName
(
"B2"
)
.
setValue
(
5615.3
)
table
.
getCellByName
(
"C2"
)
.
setValue
(
-
2315.7
)
table
.
getCellByName
(
"C2"
)
.
setValue
(
-
2315.7
)
...
...
pyuno/demo/swritercomp.py
Dosyayı görüntüle @
c78b2702
...
@@ -62,9 +62,6 @@ class SWriterComp(XMain,unohelper.Base):
...
@@ -62,9 +62,6 @@ class SWriterComp(XMain,unohelper.Base):
insertTextIntoCell
(
table
,
"C1"
,
"ThirdColumn"
,
textColor
)
insertTextIntoCell
(
table
,
"C1"
,
"ThirdColumn"
,
textColor
)
insertTextIntoCell
(
table
,
"D1"
,
"SUM"
,
textColor
)
insertTextIntoCell
(
table
,
"D1"
,
"SUM"
,
textColor
)
values
=
(
(
22.5
,
21.5
,
121.5
),
(
5615.3
,
615.3
,
-
615.3
),
(
-
2315.7
,
315.7
,
415.7
)
)
table
.
getCellByName
(
"A2"
)
.
setValue
(
22.5
)
table
.
getCellByName
(
"A2"
)
.
setValue
(
22.5
)
table
.
getCellByName
(
"B2"
)
.
setValue
(
5615.3
)
table
.
getCellByName
(
"B2"
)
.
setValue
(
5615.3
)
table
.
getCellByName
(
"C2"
)
.
setValue
(
-
2315.7
)
table
.
getCellByName
(
"C2"
)
.
setValue
(
-
2315.7
)
...
...
pyuno/source/loader/makefile.mk
Dosyayı görüntüle @
c78b2702
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
# for a copy of the LGPLv3 License.
# for a copy of the LGPLv3 License.
#
#
#*************************************************************************
#*************************************************************************
PRJ
=
..
$
/
..
PRJ
=
../..
PRJNAME
=
pyuno
PRJNAME
=
pyuno
TARGET
=
pythonloader.uno
TARGET
=
pythonloader.uno
...
@@ -47,15 +47,15 @@ DIRECT= $(LINKFLAGSDEFS)
...
@@ -47,15 +47,15 @@ DIRECT= $(LINKFLAGSDEFS)
PYTHONLIB
=
$(PYTHON_LIBS)
PYTHONLIB
=
$(PYTHON_LIBS)
CFLAGS
+=
$(PYTHON_CFLAGS)
CFLAGS
+=
$(PYTHON_CFLAGS)
.IF
"$(EXTRA_CFLAGS)"
!=
""
.IF
"$(EXTRA_CFLAGS)"
!=
""
PYTHONLIB
+=
-framework
Python
PYTHONLIB
+=
-framework
Python
.ENDIF
# "$(EXTRA_CFLAGS)"!=""
.ENDIF
# "$(EXTRA_CFLAGS)"!=""
.ELSE
.ELSE
.INCLUDE
:
pyversion.mk
.INCLUDE
:
pyversion.mk
CFLAGS
+=
-I
$(SOLARINCDIR)$
/
python
CFLAGS
+=
-I
$(SOLARINCDIR)
/python
.ENDIF
.ENDIF
SHL1TARGET
=
$(TARGET)
SHL1TARGET
=
$(TARGET)
SHL1STDLIBS
=
\
SHL1STDLIBS
=
\
$(CPPULIB)
\
$(CPPULIB)
\
...
@@ -64,31 +64,31 @@ SHL1STDLIBS= \
...
@@ -64,31 +64,31 @@ SHL1STDLIBS= \
$(PYUNOLIB)
\
$(PYUNOLIB)
\
$(PYTHONLIB)
$(PYTHONLIB)
SHL1VERSIONMAP
=
$(SOLARENV)$/
src
$
/
component.map
SHL1VERSIONMAP
=
$(SOLARENV)
/src
/component.map
SHL1DEPN
=
SHL1DEPN
=
SHL1IMPLIB
=
i
$(TARGET)
SHL1IMPLIB
=
i
$(TARGET)
SHL1LIBS
=
$(SLB)$
/$(TARGET)
.lib
SHL1LIBS
=
$(SLB)
/
$(TARGET)
.lib
SHL1DEF
=
$(MISC)$
/$(SHL1TARGET)
.def
SHL1DEF
=
$(MISC)
/
$(SHL1TARGET)
.def
DEF1NAME
=
$(SHL1TARGET)
DEF1NAME
=
$(SHL1TARGET)
SLOFILES
=
$(SLO)$
/
pyuno_loader.obj
SLOFILES
=
$(SLO)
/pyuno_loader.obj
# --- Targets ------------------------------------------------------
# --- Targets ------------------------------------------------------
ALL
:
ALLTAR
\
ALL
:
ALLTAR
\
$(DLLDEST)
$
/pythonloader.py
$(DLLDEST)/pythonloader.py
.ENDIF
# L10N_framework
.ENDIF
# L10N_framework
.INCLUDE
:
target.mk
.INCLUDE
:
target.mk
.IF
"$(L10N_framework)"
==
""
.IF
"$(L10N_framework)"
==
""
$(DLLDEST)
$
/%.py
:
%.py
$(DLLDEST)/%.py
:
%.py
cp
$?
$@
cp
$?
$@
.ENDIF
# L10N_framework
.ENDIF
# L10N_framework
ALLTAR
:
$(MISC)/pythonloader.component
ALLTAR
:
$(MISC)/pythonloader.component
$(MISC)/pythonloader.component .ERRREMOVE
:
\
$(MISC)/pythonloader.component .ERRREMOVE
:
\
$(SOLARENV)/bin/createcomponent.xslt pythonloader.component
$(SOLARENV)/bin/createcomponent.xslt pythonloader.component
$(XSLTPROC)
--nonet
--stringparam
uri
\
$(XSLTPROC)
--nonet
--stringparam
uri
\
'vnd.sun.star.expand:$$OOO_BASE_DIR/program/$(SHL1TARGETN:f)'
-o
$@
\
'vnd.sun.star.expand:$$OOO_BASE_DIR/program/$(SHL1TARGETN:f)'
-o
$@
\
$(SOLARENV)/bin/createcomponent.xslt
pythonloader.component
$(SOLARENV)
/bin/createcomponent.xslt pythonloader.component
pyuno/source/loader/pythonloader.py
Dosyayı görüntüle @
c78b2702
# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#*************************************************************************
#*************************************************************************
#
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...
@@ -146,4 +147,6 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
...
@@ -146,4 +147,6 @@ class Loader( XImplementationLoader, XServiceInfo, unohelper.Base ):
return
ServiceName
in
self
.
serviceNames
return
ServiceName
in
self
.
serviceNames
def
getSupportedServiceNames
(
self
):
def
getSupportedServiceNames
(
self
):
return
g_supportedServices
return
g_supportedServices
# vim:set shiftwidth=4 softtabstop=4 expandtab:
pyuno/source/loader/pyuno_loader.cxx
Dosyayı görüntüle @
c78b2702
/*
nd '!=' comparisions are defined"126G
-*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
/*************************************************************************
*
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...
...
pyuno/source/module/makefile.mk
Dosyayı görüntüle @
c78b2702
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
# for a copy of the LGPLv3 License.
# for a copy of the LGPLv3 License.
#
#
#*************************************************************************
#*************************************************************************
PRJ
=
..
$
/
..
PRJ
=
../..
PRJNAME
=
pyuno
PRJNAME
=
pyuno
TARGET
=
pyuno
TARGET
=
pyuno
...
@@ -64,25 +64,25 @@ PYTHONLIB=$(PYTHON_LIBS)
...
@@ -64,25 +64,25 @@ PYTHONLIB=$(PYTHON_LIBS)
CFLAGS
+=
$(PYTHON_CFLAGS)
CFLAGS
+=
$(PYTHON_CFLAGS)
.ELSE
# "$(SYSTEM_PYTHON)" == "YES"
.ELSE
# "$(SYSTEM_PYTHON)" == "YES"
.INCLUDE
:
pyversion.mk
.INCLUDE
:
pyversion.mk
CFLAGS
+=
-I
$(SOLARINCDIR)
$
/
python
CFLAGS
+=
-I
$(SOLARINCDIR)
/python
.ENDIF
# "$(SYSTEM_PYTHON)" == "YES"
.ENDIF
# "$(SYSTEM_PYTHON)" == "YES"
SHL1TARGET
=
$(TARGET)
SHL1TARGET
=
$(TARGET)
SLOFILES
=
\
SLOFILES
=
\
$(SLO)
$
/
pyuno_runtime.obj
\
$(SLO)
/pyuno_runtime.obj
\
$(SLO)
$
/
pyuno.obj
\
$(SLO)
/pyuno.obj
\
$(SLO)
$
/
pyuno_callable.obj
\
$(SLO)
/pyuno_callable.obj
\
$(SLO)
$
/
pyuno_module.obj
\
$(SLO)
/pyuno_module.obj
\
$(SLO)
$
/
pyuno_type.obj
\
$(SLO)
/pyuno_type.obj
\
$(SLO)
$
/
pyuno_util.obj
\
$(SLO)
/pyuno_util.obj
\
$(SLO)
$
/
pyuno_except.obj
\
$(SLO)
/pyuno_except.obj
\
$(SLO)
$
/
pyuno_adapter.obj
\
$(SLO)
/pyuno_adapter.obj
\
$(SLO)
$
/
pyuno_gc.obj
$(SLO)
/pyuno_gc.obj
# remove this, when issue i35064 is integrated
# remove this, when issue i35064 is integrated
.IF
"$(COM)"
==
"GCC"
.IF
"$(COM)"
==
"GCC"
NOOPTFILES
=
\
NOOPTFILES
=
\
$(SLO)
$
/
pyuno_module.obj
$(SLO)
/pyuno_module.obj
.ENDIF
# "$(COM)"=="GCC"
.ENDIF
# "$(COM)"=="GCC"
SHL1STDLIBS
=
\
SHL1STDLIBS
=
\
...
@@ -93,13 +93,13 @@ SHL1STDLIBS= \
...
@@ -93,13 +93,13 @@ SHL1STDLIBS= \
$(EXTRA_FRAMEWORK_FLAG)
$(EXTRA_FRAMEWORK_FLAG)
SHL1DEPN
=
$
(
eq,
$(OS)
,MACOSX
$(MISC)
/framework_link
$(NULL)
)
SHL1DEPN
=
$
(
eq,
$(OS)
,MACOSX
$(MISC)
/framework_link
$(NULL)
)
SHL1LIBS
=
$(SLB)$
/$(TARGET)
.lib
SHL1LIBS
=
$(SLB)
/
$(TARGET)
.lib
SHL1IMPLIB
=
i
$(TARGET)
SHL1IMPLIB
=
i
$(TARGET)
SHL1DEF
=
$(MISC)$
/$(SHL1TARGET)
.def
SHL1DEF
=
$(MISC)
/
$(SHL1TARGET)
.def
DEF1NAME
=
$(SHL1TARGET)
DEF1NAME
=
$(SHL1TARGET)
DEF1DEPN
=
$(MISC)$
/
pyuno.flt
DEF1DEPN
=
$(MISC)
/pyuno.flt
DEFLIB1NAME
=
$(TARGET)
DEFLIB1NAME
=
$(TARGET)
...
@@ -107,55 +107,53 @@ DEFLIB1NAME=$(TARGET)
...
@@ -107,55 +107,53 @@ DEFLIB1NAME=$(TARGET)
.IF
"$(GUI)$(COM)"
==
"WNTGCC"
.IF
"$(GUI)$(COM)"
==
"WNTGCC"
ALLTAR
:
\
ALLTAR
:
\
$(DLLDEST)
$
/uno.py
\
$(DLLDEST)/uno.py
\
$(DLLDEST)
$
/unohelper.py
\
$(DLLDEST)/unohelper.py
\
$(MISC)
$
/$(PYUNORC)
\
$(MISC)/$(PYUNORC)
\
$(LB)
$
/lib$(TARGET).a
$(LB)/lib$(TARGET).a
$(LB)
$/lib$(TARGET).a
:
$(MISC)$
/$(TARGET).def
$(LB)
/lib$(TARGET).a
:
$(MISC)
/$(TARGET).def
$(DLLTOOL)
--dllname
$(TARGET)$(DLLPOST)
--input-def
=
$(MISC)$/$(TARGET)
.def
--kill-at
--output-lib
=
$(LB)$
/
lib
$(TARGET)
.a
$(DLLTOOL)
--dllname
$(TARGET)$(DLLPOST)
--input-def
=
$(MISC)
/
$(TARGET)
.def
--kill-at
--output-lib
=
$(LB)
/lib
$(TARGET)
.a
.ELSE
.ELSE
.IF
"$(GUI)"
!=
"WNT"
.IF
"$(GUI)"
!=
"WNT"
# For some reason the build breaks on Windows if this is listed in the
# For some reason the build breaks on Windows if this is listed in the
# prerequisite list of ALLTAR, but pyuno.pyd still gets produced. Go
# prerequisite list of ALLTAR, but pyuno.pyd still gets produced. Go
# figure. But we need it on non-Windows.
# figure. But we need it on non-Windows.
targetdll
=
$(LB)
$
/$(TARGET)$(DLLPOST)
targetdll
=
$(LB)
/
$(TARGET)$(DLLPOST)
.ENDIF
.ENDIF
ALLTAR
:
\
ALLTAR
:
\
$(DLLDEST)
$
/uno.py
\
$(DLLDEST)/uno.py
\
$(DLLDEST)
$
/unohelper.py
\
$(DLLDEST)/unohelper.py
\
$(targetdll)
\
$(targetdll)
\
$(MISC)
$
/$(PYUNORC)
$(MISC)/$(PYUNORC)
.ENDIF
.ENDIF
.ENDIF
.ENDIF
.INCLUDE
:
target.mk
.INCLUDE
:
target.mk
.IF
"$(L10N_framework)"
==
""
.IF
"$(L10N_framework)"
==
""
$(DLLDEST)
$
/%.py
:
%.py
$(DLLDEST)/%.py
:
%.py
cp
$?
$@
cp
$?
$@
# make checkdll happy
# make checkdll happy
$(MISC)/framework_link
:
$(MISC)/framework_link
:
$(COMMAND_ECHO)
ln
-sf
$(SOLARLIBDIR)
/OOoPython.framework
$(LB)
/OOoPython.framework
$(COMMAND_ECHO)
ln
-sf
$(SOLARLIBDIR)
/OOoPython.framework
$(LB)
/OOoPython.framework
@
touch
$@
@
touch
$@
$(MISC)
$
/$(PYUNORC)
:
pyuno
$(MISC)/$(PYUNORC)
:
pyuno
-rm
-f
$@
-
rm
-f
$@
cat
pyuno
>
$@
cat
pyuno
>
$@
$(MISC)
$
/pyuno.flt
:
pyuno.flt
$(MISC)/pyuno.flt
:
pyuno.flt
-rm
-f
$@
-
rm
-f
$@
cat
$?
>
$@
cat
$?
>
$@
.IF
"$(DLLPRE)"
!=
""
.IF
"$(DLLPRE)"
!=
""
# python does not accept the "lib" prefix in the module library
# python does not accept the "lib" prefix in the module library
$(LB)
$/$(TARGET)$(DLLPOST)
:
$(LB)$
/$(DLLPRE)$(TARGET)$(DLLPOST)
$(LB)
/$(TARGET)$(DLLPOST)
:
$(LB)
/$(DLLPRE)$(TARGET)$(DLLPOST)
-rm
-f
$@
-
rm
-f
$@
ln
-s
$?
$@
ln
-s
$?
$@
.ENDIF
.ENDIF
.ENDIF
# L10N_framework
.ENDIF
# L10N_framework
# vim:set shiftwidth=4 softtabstop=4 expandtab:
pyuno/source/module/uno.py
Dosyayı görüntüle @
c78b2702
# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#*************************************************************************
#*************************************************************************
#
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...
@@ -355,3 +356,5 @@ def _uno_extract_printable_stacktrace( trace ):
...
@@ -355,3 +356,5 @@ def _uno_extract_printable_stacktrace( trace ):
else
:
else
:
ret
=
"Couldn't import traceback module"
ret
=
"Couldn't import traceback module"
return
ret
return
ret
# vim:set shiftwidth=4 softtabstop=4 expandtab:
pyuno/source/module/unohelper.py
Dosyayı görüntüle @
c78b2702
# -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#*************************************************************************
#*************************************************************************
#
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...
@@ -302,3 +303,4 @@ class _FactoryHelper_( XSingleComponentFactory, XServiceInfo, Base ):
...
@@ -302,3 +303,4 @@ class _FactoryHelper_( XSingleComponentFactory, XServiceInfo, Base ):
def
createInstanceWithArgumentsAndContext
(
self
,
args
,
context
):
def
createInstanceWithArgumentsAndContext
(
self
,
args
,
context
):
return
self
.
clazz
(
context
,
*
args
)
return
self
.
clazz
(
context
,
*
args
)
# vim:set shiftwidth=4 softtabstop=4 expandtab:
pyuno/zipcore/makefile.mk
Dosyayı görüntüle @
c78b2702
...
@@ -43,90 +43,89 @@ systempython:
...
@@ -43,90 +43,89 @@ systempython:
.INCLUDE
:
pyversion.mk
.INCLUDE
:
pyversion.mk
PYDIRNAME
=
python-core-
$(PYVERSION)
PYDIRNAME
=
python-core-
$(PYVERSION)
DESTROOT
=
$(BIN)
$
/$(PYDIRNAME)
DESTROOT
=
$(BIN)
/
$(PYDIRNAME)
.IF
"$(GUI)"
==
"UNX"
.IF
"$(GUI)"
==
"UNX"
PYTHONBINARY
=
$(BIN)
$
/
python
$(EXECPOST)
.bin
PYTHONBINARY
=
$(BIN)
/python
$(EXECPOST)
.bin
.ELSE
.ELSE
.IF
"$(COM)"
==
"GCC"
.IF
"$(COM)"
==
"GCC"
PYTHONBINARY
=
$(DESTROOT)
$/
bin
$
/
python.bin
PYTHONBINARY
=
$(DESTROOT)
/bin
/python.bin
.ELSE
.ELSE
PYTHONBINARY
=
$(DESTROOT)
$/
bin
$
/
python
$(EXECPOST)
PYTHONBINARY
=
$(DESTROOT)
/bin
/python
$(EXECPOST)
.ENDIF
.ENDIF
.ENDIF
.ENDIF
.IF
"$(OS)"
!=
"MACOSX"
.IF
"$(OS)"
!=
"MACOSX"
FINDLIBFILES_TMP
:=
$
(
subst,/,
$/
\
FINDLIBFILES
:=
$
(
subst,
$(SOLARLIBDIR)
/python,
\
$(
shell
@
$(FIND)
$(SOLARLIBDIR)$/
python
-type
f|
$(GREP)
-v
"
\.
pyc"
|
$(GREP)
-v
"
\.
py~"
|
$(GREP)
-v
.orig |
$(GREP)
-v
_failed
)
)
$(
shell
@
$(FIND)
$(SOLARLIBDIR)
/python
-type
f|
$(GREP)
-v
"
\.
pyc"
|
$(GREP)
-v
"
\.
py~"
|
$(GREP)
-v
.orig |
$(GREP)
-v
_failed
)
)
FINDLIBFILES
=
$
(
subst,
$(SOLARLIBDIR)$/
python,
$(FINDLIBFILES_TMP)
)
FILES
=
\
FILES
=
\
$(PYTHONBINARY)
\
$(PYTHONBINARY)
\
$
(
foreach,i,
$(FINDLIBFILES)
$(DESTROOT)
$/
lib
$(i)
)
$
(
foreach,i,
$(FINDLIBFILES)
$(DESTROOT)
/lib
$(i)
)
.IF
"$(OS)"
==
"WNT"
.IF
"$(OS)"
==
"WNT"
APP1TARGET
=
python
APP1TARGET
=
python
APP1OBJS
=
$(OBJFILES)
$(SOLARLIBDIR)$
/
pathutils-obj.obj
APP1OBJS
=
$(OBJFILES)
$(SOLARLIBDIR)
/pathutils-obj.obj
APP1STDLIBS
=
APP1STDLIBS
=
APP1RPATH
=
BRAND
APP1RPATH
=
BRAND
OBJFILES
=
$(OBJ)$
/
python.obj
OBJFILES
=
$(OBJ)
/python.obj
.ENDIF
.ENDIF
.INCLUDE
:
target.mk
.INCLUDE
:
target.mk
ALLTAR
:
\
ALLTAR
:
\
$(BIN)
$
/$(PYDIRNAME).zip
$(BIN)/$(PYDIRNAME).zip
.ENDIF
.ENDIF
.IF
"$(GUI)"
==
"UNX"
.IF
"$(GUI)"
==
"UNX"
ALLTAR
:
$(BIN)
$
/python.sh
ALLTAR
:
$(BIN)/python.sh
STRIPMAC
=
-e
'/^NONMACSECTION/d'
-e
'/^MACSECTION/,$$d'
STRIPMAC
=
-e
'/^NONMACSECTION/d'
-e
'/^MACSECTION/,$$d'
STRIPNONMAC
=
-e
'/^NONMACSECTION/,/^MACSECTION/d'
STRIPNONMAC
=
-e
'/^NONMACSECTION/,/^MACSECTION/d'
$(BIN)
$
/python.sh
:
python.sh
$(BIN)/python.sh
:
python.sh
$(COMMAND_ECHO)
sed
-e
's/%%PYVERSION%%/$(eq,
$(OS)
,MACOSX
$(PYMAJOR)
.
$(PYMINOR)
$(PYVERSION)
)/g'
-e
's/%%OOO_LIBRARY_PATH_VAR%%/
$(OOO_LIBRARY_PATH_VAR)
/g'
\
$(COMMAND_ECHO)
sed
-e
's/%%PYVERSION%%/$(eq,
$(OS)
,MACOSX
$(PYMAJOR)
.
$(PYMINOR)
$(PYVERSION)
)/g'
-e
's/%%OOO_LIBRARY_PATH_VAR%%/
$(OOO_LIBRARY_PATH_VAR)
/g'
\
$
(
eq,
$(OS)
,MACOSX
$(STRIPNONMAC)
$(STRIPMAC)
)
<
$?
>
$@
$
(
eq,
$(OS)
,MACOSX
$(STRIPNONMAC)
$(STRIPMAC)
)
<
$?
>
$@
@
chmod
+x
$@
@
chmod
+x
$@
.ENDIF
.ENDIF
$(OBJ)
$/python.obj
:
$(OUT)$/inc$
/pyversion.hxx
$(OBJ)
/python.obj
:
$(OUT)/inc
/pyversion.hxx
$(OUT)
$/inc$
/pyversion.hxx
:
pyversion.inc
$(OUT)
/inc
/pyversion.hxx
:
pyversion.inc
$(SED)
$(USQ)s/@/$(PYVERSION)/g$(USQ)
<
$<
>
$@
$(SED)
$(USQ)
s/@/
$(PYVERSION)
/g
$(USQ)
<
$<
>
$@
$(BIN)
$
/$(PYDIRNAME).zip
:
$(FILES)
$(BIN)/$(PYDIRNAME).zip
:
$(FILES)
.IF
"$(GUI)"
==
"UNX"
.IF
"$(GUI)"
==
"UNX"
.IF
"$(OS)"
!=
"AIX"
.IF
"$(OS)"
!=
"AIX"
cd
$(DESTROOT)
&&
find
.
-name
'*$(DLLPOST)'
|
xargs
strip
cd
$(DESTROOT)
&&
find
.
-name
'*$(DLLPOST)'
|
xargs
strip
.ENDIF
.ENDIF
.ENDIF
.ENDIF
-rm
-f
$@
-rm
-f
$@
cd
$(BIN)
&&
zip
-r
$(PYDIRNAME).zip
$(PYDIRNAME)
cd
$(BIN)
&&
zip
-r
$(PYDIRNAME).zip
$(PYDIRNAME)
$(DESTROOT)
$/lib$/%
:
$(SOLARLIBDIR)$/python$
/%
$(DESTROOT)
/lib/%
:
$(SOLARLIBDIR)/python
/%
-$(MKDIRHIER) $(@
:
d)
-
$(MKDIRHIER)
$
(
@:d
)
-rm
-f
$@
-
rm
-f
$@
cat
$<
>
$@
cat
$<
>
$@
.IF
"$(GUI)"
==
"UNX"
.IF
"$(GUI)"
==
"UNX"
$(BIN)
$/python$(EXECPOST).bin
:
$(SOLARBINDIR)$
/python$(EXECPOST)
$(BIN)
/python$(EXECPOST).bin
:
$(SOLARBINDIR)
/python$(EXECPOST)
-$(MKDIRHIER) $(@
:
d)
-
$(MKDIRHIER)
$
(
@:d
)
-rm
-f
$@
-
rm
-f
$@
cat
$<
>
$@
cat
$<
>
$@
.IF
"$(OS)"
!=
"MACOSX"
&&
"$(OS)"
!=
"AIX"
.IF
"$(OS)"
!=
"MACOSX"
&&
"$(OS)"
!=
"AIX"
strip
$@
strip
$@
.ENDIF
.ENDIF
chmod
+x
$@
chmod
+x
$@
.ELSE
.ELSE
.IF
"$(COM)"
==
"GCC"
.IF
"$(COM)"
==
"GCC"
$(DESTROOT)
$/bin$/python.bin
:
$(SOLARBINDIR)$
/python$(EXECPOST)
$(DESTROOT)
/bin/python.bin
:
$(SOLARBINDIR)
/python$(EXECPOST)
.ELSE
.ELSE
$(DESTROOT)
$/bin$/python$(EXECPOST)
:
$(SOLARBINDIR)$
/python$(EXECPOST)
$(DESTROOT)
/bin/python$(EXECPOST)
:
$(SOLARBINDIR)
/python$(EXECPOST)
.ENDIF
.ENDIF
-$(MKDIRHIER) $(@
:
d)
-$(MKDIRHIER) $(@
:
d)
-rm
-f
$@
-
rm
-f
$@
cat
$<
>
$@
cat
$<
>
$@
.ENDIF
.ENDIF
.ENDIF
.ENDIF
...
...
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