Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
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)
1
Konular (issue)
1
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ç
SulinOS
inary
Commits
c2f17cf0
Kaydet (Commit)
c2f17cf0
authored
Mar 04, 2019
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added mesontools for build something else with meson tool
üst
537c07ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
5 deletions
+47
-5
autotools.py
inary/actionsapi/autotools.py
+0
-3
mesontools.py
inary/actionsapi/mesontools.py
+45
-0
package.py
inary/package.py
+2
-2
No files found.
inary/actionsapi/autotools.py
Dosyayı görüntüle @
c2f17cf0
...
...
@@ -87,9 +87,6 @@ def configure(parameters = ''):
"--libdir=/usr/lib32 "
if
get
.
buildTYPE
()
==
"emul32"
else
""
,
parameters
)
if
get
.
buildTYPE
()
==
"emul32"
:
args
+=
" --libdir=/usr/lib32"
if
system
(
args
):
raise
ConfigureError
(
_
(
'Configure failed.'
))
else
:
...
...
inary/actionsapi/mesontools.py
0 → 100644
Dosyayı görüntüle @
c2f17cf0
import
inary.actionsapi
from
inary.actionsapi.shelltools
import
system
from
inary.actionsapi.shelltools
import
can_access_file
from
inary.actionsapi
import
get
class
MesonError
(
inary
.
actionsapi
.
Error
):
def
__init__
(
self
,
value
=
''
):
inary
.
actionsapi
.
Error
.
__init__
(
self
,
value
)
self
.
value
=
value
ctx
.
ui
.
error
(
value
)
def
meson_configure
(
parameters
=
""
):
if
can_access_file
(
'meson.build'
):
prefix
=
get
.
emul32prefixDIR
()
if
get
.
buildTYPE
()
==
"emul32"
else
get
.
defaultprefixDIR
()
args
=
"meson
\
--prefix=/{0}
\
--buildtype=plain
\
--libdir=/{0}/lib{1}
\
--libexecdir={2}
\
--sysconfdir={3}
\
--localstatedir={4}
\
{5} inaryPackageBuild"
.
format
(
prefix
,
"32 "
if
get
.
buildTYPE
()
==
"emul32"
else
""
,
get
.
libexecDIR
(),
get
.
confDIR
(),
get
.
localstateDIR
(),
parameters
)
if
system
(
args
):
raise
MesonError
(
_
(
'[Meson]: Configure failed.'
))
else
:
raise
MesonError
(
_
(
'[Meson]: Configure script cannot be reached'
))
def
ninja_build
(
parameters
=
""
):
if
system
(
"ninja {} {} -C inaryPackageBuild"
.
format
(
get
.
makeJOBS
(),
parameters
)):
raise
MesonError
(
_
(
"[Ninja]: Build failed."
))
def
ninja_install
(
parameters
=
""
):
if
system
(
'DESTDIR="{}" ninja install {} -C inaryPackageBuild'
.
format
(
get
.
installDIR
(),
get
.
makeJOBS
())):
raise
MesonError
(
_
(
"[Ninja]: Installation failed."
))
def
ninja_check
():
if
system
(
'ninja test {} -C inaryPackageBuild'
.
format
(
get
.
makeJobs
())):
raise
MesonError
(
_
(
"[Ninja]: Test failed"
))
inary/package.py
Dosyayı görüntüle @
c2f17cf0
...
...
@@ -198,8 +198,8 @@ class Package:
fpath
=
util
.
join_path
(
outdir
,
path
)
util
.
ensure_dirs
(
os
.
path
.
dirname
(
fpath
))
with
open
(
fpath
,
"w"
)
as
f
:
f
.
write
(
data
)
with
open
(
fpath
,
"w
b
"
)
as
f
:
f
.
write
(
data
.
encode
(
"utf-8"
)
)
f
.
flush
()
os
.
fsync
(
f
.
fileno
())
...
...
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