Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
03df0c80
Commit
03df0c80
authored
Mar 10, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split these Makefile/CMakeLists lists onto multiple lines
parent
88aa3649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
135 additions
and
6 deletions
+135
-6
Makefile
Makefile
+69
-3
from_cpython/CMakeLists.txt
from_cpython/CMakeLists.txt
+66
-3
No files found.
Makefile
View file @
03df0c80
...
...
@@ -292,9 +292,75 @@ STDLIB_OBJS := stdlib.bc.o stdlib.stripped.bc.o
STDLIB_RELEASE_OBJS
:=
stdlib.release.bc.o
ASM_SRCS
:=
$(
wildcard
src/runtime/
*
.S
)
STDMODULE_SRCS
:=
errnomodule.c shamodule.c sha256module.c sha512module.c _math.c mathmodule.c md5.c md5module.c _randommodule.c _sre.c operator.c binascii.c pwdmodule.c posixmodule.c _struct.c datetimemodule.c _functoolsmodule.c _collectionsmodule.c itertoolsmodule.c resource.c signalmodule.c selectmodule.c fcntlmodule.c timemodule.c arraymodule.c zlibmodule.c _codecsmodule.c socketmodule.c unicodedata.c _weakref.c cStringIO.c _io/bufferedio.c _io/bytesio.c _io/fileio.c _io/iobase.c _io/_iomodule.c _io/stringio.c _io/textio.c zipimport.c _csv.c _ssl.c
$(EXTRA_STDMODULE_SRCS)
STDOBJECT_SRCS
:=
structseq.c capsule.c stringobject.c exceptions.c unicodeobject.c unicodectype.c bytearrayobject.c bytes_methods.c weakrefobject.c memoryobject.c iterobject.c
$(EXTRA_STDOBJECT_SRCS)
STDPYTHON_SRCS
:=
pyctype.c getargs.c formatter_string.c pystrtod.c dtoa.c formatter_unicode.c structmember.c marshal.c
$(EXTRA_STDPYTHON_SRCS)
STDMODULE_SRCS
:=
\
errnomodule.c
\
shamodule.c
\
sha256module.c
\
sha512module.c
\
_math.c
\
mathmodule.c
\
md5.c
\
md5module.c
\
_randommodule.c
\
_sre.c
\
operator.c
\
binascii.c
\
pwdmodule.c
\
posixmodule.c
\
_struct.c
\
datetimemodule.c
\
_functoolsmodule.c
\
_collectionsmodule.c
\
itertoolsmodule.c
\
resource.c
\
signalmodule.c
\
selectmodule.c
\
fcntlmodule.c
\
timemodule.c
\
arraymodule.c
\
zlibmodule.c
\
_codecsmodule.c
\
socketmodule.c
\
unicodedata.c
\
_weakref.c
\
cStringIO.c
\
_io/bufferedio.c
\
_io/bytesio.c
\
_io/fileio.c
\
_io/iobase.c
\
_io/_iomodule.c
\
_io/stringio.c
\
_io/textio.c
\
zipimport.c
\
_csv.c
\
_ssl.c
\
$(EXTRA_STDMODULE_SRCS)
STDOBJECT_SRCS
:=
\
structseq.c
\
capsule.c
\
stringobject.c
\
exceptions.c
\
unicodeobject.c
\
unicodectype.c
\
bytearrayobject.c
\
bytes_methods.c
\
weakrefobject.c
\
memoryobject.c
\
iterobject.c
\
$(EXTRA_STDOBJECT_SRCS)
STDPYTHON_SRCS
:=
\
pyctype.c
\
getargs.c
\
formatter_string.c
\
pystrtod.c
\
dtoa.c
\
formatter_unicode.c
\
structmember.c
\
marshal.c
\
$(EXTRA_STDPYTHON_SRCS)
FROM_CPYTHON_SRCS
:=
$(
addprefix
from_cpython/Modules/,
$(STDMODULE_SRCS)
)
$(
addprefix
from_cpython/Objects/,
$(STDOBJECT_SRCS)
)
$(
addprefix
from_cpython/Python/,
$(STDPYTHON_SRCS)
)
# The stdlib objects have slightly longer dependency chains,
...
...
from_cpython/CMakeLists.txt
View file @
03df0c80
...
...
@@ -15,13 +15,76 @@ endforeach(STDLIB_FILE)
add_custom_target
(
copy_stdlib ALL DEPENDS
${
STDLIB_TARGETS
}
)
# compile specified files in from_cpython/Modules
file
(
GLOB_RECURSE STDMODULE_SRCS Modules errnomodule.c shamodule.c sha256module.c sha512module.c _math.c mathmodule.c md5.c md5module.c _randommodule.c _sre.c operator.c binascii.c pwdmodule.c posixmodule.c _struct.c datetimemodule.c _functoolsmodule.c _collectionsmodule.c itertoolsmodule.c resource.c signalmodule.c selectmodule.c fcntlmodule.c timemodule.c arraymodule.c zlibmodule.c _codecsmodule.c socketmodule.c unicodedata.c _weakref.c cStringIO.c bufferedio.c bytesio.c fileio.c iobase.c _iomodule.c stringio.c textio.c zipimport.c _csv.c _ssl.c
)
file
(
GLOB_RECURSE STDMODULE_SRCS Modules
errnomodule.c
shamodule.c
sha256module.c
sha512module.c
_math.c
mathmodule.c
md5.c
md5module.c
_randommodule.c
_sre.c
operator.c
binascii.c
pwdmodule.c
posixmodule.c
_struct.c
datetimemodule.c
_functoolsmodule.c
_collectionsmodule.c
itertoolsmodule.c
resource.c
signalmodule.c
selectmodule.c
fcntlmodule.c
timemodule.c
arraymodule.c
zlibmodule.c
_codecsmodule.c
socketmodule.c
unicodedata.c
_weakref.c
cStringIO.c
bufferedio.c
bytesio.c
fileio.c
iobase.c
_iomodule.c
stringio.c
textio.c
zipimport.c
_csv.c
_ssl.c
)
# compile specified files in from_cpython/Objects
file
(
GLOB_RECURSE STDOBJECT_SRCS Objects structseq.c capsule.c stringobject.c exceptions.c unicodeobject.c unicodectype.c bytearrayobject.c bytes_methods.c weakrefobject.c memoryobject.c iterobject.c
)
file
(
GLOB_RECURSE STDOBJECT_SRCS Objects
structseq.c
capsule.c
stringobject.c
exceptions.c
unicodeobject.c
unicodectype.c
bytearrayobject.c
bytes_methods.c
weakrefobject.c
memoryobject.c
iterobject.c
)
# compile specified files in from_cpython/Python
file
(
GLOB_RECURSE STDPYTHON_SRCS Python getargs.c pyctype.c formatter_string.c pystrtod.c dtoa.c formatter_unicode.c structmember.c marshal.c
)
file
(
GLOB_RECURSE STDPYTHON_SRCS Python
getargs.c
pyctype.c
formatter_string.c
pystrtod.c
dtoa.c
formatter_unicode.c
structmember.c
marshal.c
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wno-missing-field-initializers -Wno-tautological-compare -Wno-type-limits -Wno-unused-result -Wno-strict-aliasing"
)
add_library
(
FROM_CPYTHON OBJECT
${
STDMODULE_SRCS
}
${
STDOBJECT_SRCS
}
${
STDPYTHON_SRCS
}
)
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