mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
build(cmake): detect python binary for specified version
- closes #20268
This commit is contained in:
parent
84ce43284c
commit
2ddd105f12
1 changed files with 7 additions and 4 deletions
|
@ -59,9 +59,12 @@ add_custom_command(
|
|||
COMMAND ${CMAKE_COMMAND} -E make_directory _cache
|
||||
)
|
||||
|
||||
# Specify python 2 as required
|
||||
find_package( PythonInterp 2 REQUIRED )
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ParserResults.pkl
|
||||
COMMAND python -B ${bindings_src}/pythonpath.py -I ${bindings_src}/parser -I ${bindings_src}/ply
|
||||
COMMAND ${PYTHON_EXECUTABLE} -B ${bindings_src}/pythonpath.py -I ${bindings_src}/parser -I ${bindings_src}/ply
|
||||
${bindings_src}/GlobalGen.py
|
||||
--cachedir=_cache
|
||||
--filelist=webidls.list
|
||||
|
@ -74,7 +77,7 @@ add_custom_command(
|
|||
|
||||
add_custom_command(
|
||||
OUTPUT apis.html
|
||||
COMMAND python -B ${bindings_src}/pythonpath.py -I ${bindings_src}/parser -I ${bindings_src}/ply
|
||||
COMMAND ${PYTHON_EXECUTABLE} -B ${bindings_src}/pythonpath.py -I ${bindings_src}/parser -I ${bindings_src}/ply
|
||||
${bindings_src}/GlobalGen.py
|
||||
--cachedir=_cache
|
||||
--filelist=webidls.list
|
||||
|
@ -100,7 +103,7 @@ add_custom_target(generate-bindings ALL)
|
|||
foreach(binding IN LISTS bindings)
|
||||
add_custom_command(
|
||||
OUTPUT Bindings/${binding}Binding.rs
|
||||
COMMAND python -B ${bindings_src}/pythonpath.py -I ${bindings_src}/parser -I ${bindings_src}/ply
|
||||
COMMAND ${PYTHON_EXECUTABLE} -B ${bindings_src}/pythonpath.py -I ${bindings_src}/parser -I ${bindings_src}/ply
|
||||
${bindings_src}/BindingGen.py
|
||||
${bindings_src}/Bindings.conf
|
||||
.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue