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
31cafdb4
Kaydet (Commit)
31cafdb4
authored
Tem 20, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
actionsapi ile ilgili ufak çaplı tespitler ve düzenlemeler
üst
6baca6ce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
get.py
inary/actionsapi/get.py
+2
-0
mesontools.py
inary/actionsapi/mesontools.py
+10
-0
build.py
inary/operations/build.py
+2
-0
actions.py
tests/buildTest/actions.py
+5
-0
No files found.
inary/actionsapi/get.py
Dosyayı görüntüle @
31cafdb4
...
...
@@ -39,6 +39,8 @@ class BinutilsError(inary.actionsapi.Error):
# Globals
if
not
inary
.
actionsapi
.
variables
.
glb
:
inary
.
actionsapi
.
variables
.
initVariables
()
env
=
inary
.
actionsapi
.
variables
.
glb
.
env
dirs
=
inary
.
actionsapi
.
variables
.
glb
.
dirs
config
=
inary
.
actionsapi
.
variables
.
glb
.
config
...
...
inary/actionsapi/mesontools.py
Dosyayı görüntüle @
31cafdb4
...
...
@@ -62,6 +62,11 @@ def fixpc():
for
f
in
ls
(
"{}/*.pc"
.
format
(
path
)):
dosed
(
f
,
get
.
emul32prefixDIR
(),
get
.
defaultprefixDIR
())
def
configure
(
parameters
=
""
,
type
=
"meson"
):
if
type
==
"meson"
:
meson_configure
(
parameters
)
else
:
cmake_configure
(
parameters
)
def
meson_configure
(
parameters
=
""
):
if
can_access_file
(
'meson.build'
):
...
...
@@ -113,6 +118,9 @@ def cmake_configure(parameters=""):
_
(
'No configure script found. (
\"
{}
\"
file not found.)'
.
format
(
"CMakeLists.txt"
)))
def
make
(
parameters
=
""
):
ninja_build
(
parameters
)
def
ninja_build
(
parameters
=
""
):
if
system
(
"ninja {} {} -C inaryPackageBuild"
.
format
(
get
.
makeJOBS
(),
parameters
)):
raise
NinjaBuildError
(
_
(
"Build failed."
))
...
...
@@ -121,6 +129,8 @@ def ninja_build(parameters=""):
if
isDirectory
(
"{}/emul32"
.
format
(
get
.
installDIR
())):
removeDir
(
"/emul32"
)
def
install
(
parameters
=
""
):
ninja_install
(
parameters
)
def
ninja_install
(
parameters
=
""
):
insdir
=
util
.
join_path
(
...
...
inary/operations/build.py
Dosyayı görüntüle @
31cafdb4
...
...
@@ -774,6 +774,8 @@ class Builder:
# finished its work in the archive source directory.
curDir
=
os
.
getcwd
()
src_dir
=
self
.
pkg_src_dir
()
os
.
environ
[
'CURDIR'
]
=
curDir
os
.
environ
[
'SRCDIR'
]
=
src_dir
if
os
.
path
.
exists
(
src_dir
):
os
.
chdir
(
src_dir
)
else
:
...
...
tests/buildTest/actions.py
Dosyayı görüntüle @
31cafdb4
...
...
@@ -4,12 +4,17 @@
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
import
os
from
inary.actionsapi
import
shelltools
from
inary.actionsapi
import
get
from
inary.actionsapi
import
inarytools
from
inary.actionsapi
import
mesontools
from
inary.actionsapi
import
cmaketools
def
install
():
print
(
"curdir="
+
get
.
curDIR
())
print
(
"workdir="
+
get
.
workDIR
())
shelltools
.
system
(
"mkdir -p {}/usr/bin/"
.
format
(
get
.
installDIR
()))
shelltools
.
system
(
"install space {}/usr/bin/hello"
.
format
(
get
.
installDIR
()))
shelltools
.
system
(
"env"
)
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