Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
2897d076
Kaydet (Commit)
2897d076
authored
Agu 07, 2014
tarafından
Zachary Ware
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update prepare_ssl.py script to generate the .asm files.
üst
869778e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
8 deletions
+31
-8
prepare_ssl.py
PCbuild/prepare_ssl.py
+31
-8
No files found.
PCbuild/prepare_ssl.py
Dosyayı görüntüle @
2897d076
...
@@ -81,6 +81,35 @@ def create_makefile64(makefile, m32):
...
@@ -81,6 +81,35 @@ def create_makefile64(makefile, m32):
fout
.
write
(
line
)
fout
.
write
(
line
)
os
.
unlink
(
m32
)
os
.
unlink
(
m32
)
def
create_asms
(
makefile
):
#create a custom makefile out of the provided one
asm_makefile
=
os
.
path
.
splitext
(
makefile
)[
0
]
+
'.asm.mak'
with
open
(
makefile
)
as
fin
:
with
open
(
asm_makefile
,
'w'
)
as
fout
:
for
line
in
fin
:
# Keep everything up to the install target (it's convenient)
if
line
.
startswith
(
'install: all'
):
break
else
:
fout
.
write
(
line
)
asms
=
[]
for
line
in
fin
:
if
'.asm'
in
line
and
line
.
strip
()
.
endswith
(
'.pl'
):
asms
.
append
(
line
.
split
(
':'
)[
0
])
while
line
.
strip
():
fout
.
write
(
line
)
line
=
next
(
fin
)
fout
.
write
(
'
\n
'
)
fout
.
write
(
'asms: $(TMP_D) '
)
fout
.
write
(
' '
.
join
(
asms
))
fout
.
write
(
'
\n
'
)
os
.
system
(
'nmake /f {} PERL=perl asms'
.
format
(
asm_makefile
))
os
.
unlink
(
asm_makefile
)
def
fix_makefile
(
makefile
):
def
fix_makefile
(
makefile
):
"""Fix some stuff in all makefiles
"""Fix some stuff in all makefiles
"""
"""
...
@@ -164,14 +193,8 @@ def prep(arch):
...
@@ -164,14 +193,8 @@ def prep(arch):
else
:
else
:
print
(
makefile
,
'already exists!'
)
print
(
makefile
,
'already exists!'
)
# If the assembler files don't exist in tmpXX, copy them there
print
(
'creating asms...'
)
if
os
.
path
.
exists
(
"asm"
+
dirsuffix
):
create_asms
(
makefile
)
if
not
os
.
path
.
exists
(
"tmp"
+
dirsuffix
):
os
.
mkdir
(
"tmp"
+
dirsuffix
)
for
f
in
os
.
listdir
(
"asm"
+
dirsuffix
):
if
not
f
.
endswith
(
".asm"
):
continue
if
os
.
path
.
isfile
(
r"tmp
%
s\%s"
%
(
dirsuffix
,
f
)):
continue
shutil
.
copy
(
r"asm
%
s\%s"
%
(
dirsuffix
,
f
),
"tmp"
+
dirsuffix
)
def
main
():
def
main
():
if
len
(
sys
.
argv
)
==
1
:
if
len
(
sys
.
argv
)
==
1
:
...
...
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