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
5d458390
Commit
5d458390
authored
Oct 26, 2015
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Oct 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some install rules
parent
91e5a372
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
14 deletions
+34
-14
Makefile
Makefile
+10
-0
from_cpython/CMakeLists.txt
from_cpython/CMakeLists.txt
+22
-14
lib_pyston/CMakeLists.txt
lib_pyston/CMakeLists.txt
+2
-0
No files found.
Makefile
View file @
5d458390
...
...
@@ -1079,3 +1079,13 @@ lint_%: %.cpp plugins/clang_linter.so
.PHONY
:
clang_lint
clang_lint
:
$(foreach FN
,
$(MAIN_SRCS)
,
$(dir $(FN))lint_$(notdir $(FN:.cpp=)))
# 'make package' will build a package using the pgo build, since that's the
# configuration with the best performance. Testing that is a pain since it
# requires rerunning the pgo build, so there's also 'make package_nonpgo' mostly
# for testing.
package
:
pyston_pgo
$(NINJA)
-C
$(CMAKE_DIR_RELEASE_GCC_PGO)
package
package_nonpgo
:
$(NINJA)
-C
$(CMAKE_DIR_RELEASE)
package
from_cpython/CMakeLists.txt
View file @
5d458390
...
...
@@ -12,6 +12,9 @@ foreach(STDLIB_FILE ${STDLIB_SRCS} ${STD_INCLUDES})
COMMENT
"Copying
${
FN_REL
}
"
)
set
(
STDLIB_TARGETS
${
STDLIB_TARGETS
}
${
TARGET
}
)
get_filename_component
(
DIR
${
FN_REL
}
DIRECTORY
)
install
(
FILES
${
STDLIB_FILE
}
DESTINATION
${
DIR
}
)
endforeach
(
STDLIB_FILE
)
add_custom_target
(
copy_stdlib ALL DEPENDS
${
STDLIB_TARGETS
}
)
...
...
@@ -126,19 +129,22 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers -Wno-tautolo
add_library
(
FROM_CPYTHON OBJECT
${
STDMODULE_SRCS
}
${
STDOBJECT_SRCS
}
${
STDPYTHON_SRCS
}
${
STDPARSER_SRCS
}
)
add_dependencies
(
FROM_CPYTHON copy_stdlib
)
add_custom_command
(
OUTPUT
${
CMAKE_BINARY_DIR
}
/lib_pyston/future_builtins.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/_multiprocessing.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/pyexpat.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/_elementtree.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/bz2.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/_ctypes.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/grp.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/readline.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/termios.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/_curses.pyston.so
${
CMAKE_BINARY_DIR
}
/lib_pyston/mmap.pyston.so
COMMAND
${
CMAKE_BINARY_DIR
}
/pyston setup.py build --build-lib
${
CMAKE_BINARY_DIR
}
/lib_pyston
set
(
STDMODULES
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/future_builtins.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/_multiprocessing.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/pyexpat.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/_elementtree.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/bz2.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/_ctypes.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/grp.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/readline.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/termios.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/_curses.pyston.so
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/mmap.pyston.so
)
add_custom_command
(
OUTPUT
${
STDMODULES
}
COMMAND
${
CMAKE_BINARY_DIR
}
/pyston setup.py build --build-lib
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib
DEPENDS
pyston
copy_stdlib
...
...
@@ -166,4 +172,6 @@ add_custom_command(OUTPUT
Modules/_cursesmodule.c
Modules/mmapmodule.c
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
add_custom_target
(
sharedmods DEPENDS
${
CMAKE_BINARY_DIR
}
/lib_pyston/_multiprocessing.pyston.so
)
add_custom_target
(
sharedmods ALL DEPENDS
${
CMAKE_BINARY_DIR
}
/from_cpython/Lib/_multiprocessing.pyston.so
)
install
(
FILES
${
STDMODULES
}
DESTINATION from_cpython/Lib
)
lib_pyston/CMakeLists.txt
View file @
5d458390
...
...
@@ -13,3 +13,5 @@ foreach(STDLIB_FILE ${LIBPYSTON_SRCS})
set
(
LIBPYSTON_TARGETS
${
LIBPYSTON_TARGETS
}
${
TARGET
}
)
endforeach
(
STDLIB_FILE
)
add_custom_target
(
copy_libpyston ALL DEPENDS
${
LIBPYSTON_TARGETS
}
)
install
(
FILES
${
LIBPYSTON_SRCS
}
DESTINATION lib_pyston
)
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