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
10352e62
Unverified
Kaydet (Commit)
10352e62
authored
Kas 16, 2019
tarafından
Suleyman Poyraz
Kaydeden (comit)
GitHub
Kas 16, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #29 from Zaryob/actionsapifix
Added cmake configure for ninja building tool
üst
248485d5
0f263da1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
mesontools.py
inary/actionsapi/mesontools.py
+27
-3
No files found.
inary/actionsapi/mesontools.py
Dosyayı görüntüle @
10352e62
...
...
@@ -15,13 +15,15 @@ import inary.actionsapi
import
inary.util
as
util
import
inary.context
as
ctx
from
inary.actionsapi
import
get
from
inary.actionsapi.shelltools
import
can_access_file
from
inary.actionsapi.shelltools
import
system
from
inary.actionsapi.shelltools
import
cd
from
inary.actionsapi.shelltools
import
ls
from
inary.actionsapi.shelltools
import
copy
from
inary.actionsapi.inarytools
import
dosed
from
inary.actionsapi.shelltools
import
isDirectory
from
inary.actionsapi.shelltools
import
system
from
inary.actionsapi.shelltools
import
makedirs
from
inary.actionsapi.inarytools
import
removeDir
from
inary.actionsapi.shelltools
import
isDirectory
from
inary.actionsapi.shelltools
import
can_access_file
import
gettext
...
...
@@ -77,6 +79,28 @@ def meson_configure(parameters=""):
else
:
raise
ConfigureError
(
_
(
'No configure script found. (
\"
{}
\"
file not found.)'
.
format
(
"meson.build"
)))
def
cmake_configure
(
parameters
=
""
):
makedirs
(
"inaryPackageBuild"
)
cd
(
"inaryPackageBuild"
)
if
can_access_file
(
util
.
join_path
(
".."
,
'CMakeLists.txt'
)):
args
=
'cmake -DCMAKE_INSTALL_PREFIX=/{0}
\
-DCMAKE_INSTALL_LIBDIR={1}
\
-DCMAKE_C_FLAGS="{6} {2}"
\
-DCMAKE_CXX_FLAGS="{6} {3}"
\
-DCMAKE_LD_FLAGS="{4}"
\
-DCMAKE_BUILD_TYPE=RelWithDebInfo {5} -G Ninja ..'
.
format
(
get
.
defaultprefixDIR
(),
"/usr/lib32 "
if
get
.
buildTYPE
()
==
"emul32"
else
"/usr/lib"
,
get
.
CFLAGS
(),
get
.
CXXFLAGS
(),
get
.
LDFLAGS
(),
parameters
,
"-m32"
if
get
.
buildTYPE
()
==
"emul32"
else
"-m64"
)
if
system
(
args
):
raise
ConfigureError
(
_
(
'CMake configure failed.'
))
else
:
raise
ConfigureError
(
_
(
'No configure script found. (
\"
{}
\"
file not found.)'
.
format
(
"CMakeLists.txt"
)))
def
ninja_build
(
parameters
=
""
):
if
system
(
"ninja {} {} -C inaryPackageBuild"
.
format
(
get
.
makeJOBS
(),
parameters
)):
...
...
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