Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cerbero
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xavier Claessens
cerbero
Commits
f5a07c90
Commit
f5a07c90
authored
7 years ago
by
Xavier Claessens
Browse files
Options
Downloads
Patches
Plain Diff
TMP
parent
94b2776e
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cerbero/bootstrap/windows.py
+9
-6
9 additions, 6 deletions
cerbero/bootstrap/windows.py
config/windows.config
+5
-3
5 additions, 3 deletions
config/windows.config
with
14 additions
and
9 deletions
cerbero/bootstrap/windows.py
+
9
−
6
View file @
f5a07c90
...
...
@@ -19,6 +19,7 @@
import
os
import
tempfile
import
shutil
import
sys
from
cerbero.bootstrap
import
BootstrapperBase
from
cerbero.bootstrap.bootstrapper
import
register_bootstrapper
...
...
@@ -104,23 +105,25 @@ class WindowsBootstrapper(BootstrapperBase):
tmp_dir
=
tempfile
.
mkdtemp
()
shell
.
call
(
"
git clone %s
"
%
url
,
tmp_dir
)
python_headers
=
os
.
path
.
join
(
self
.
prefix
,
'
include
'
,
'
Python3.6
'
)
version
=
'
%s.%s
'
%
(
sys
.
version_info
[
0
],
sys
.
version_info
[
1
])
python_headers
=
os
.
path
.
join
(
self
.
prefix
,
'
include
'
,
'
Python%s
'
%
version
)
python_headers
=
to_unixpath
(
os
.
path
.
abspath
(
python_headers
))
shell
.
call
(
'
mkdir -p %s
'
%
python_headers
)
python_libs
=
os
.
path
.
join
(
self
.
prefix
,
'
lib
'
)
python_libs
=
to_unixpath
(
python_libs
)
version
=
version
.
replace
(
'
.
'
,
''
)
temp
=
to_unixpath
(
os
.
path
.
abspath
(
tmp_dir
))
shell
.
call
(
'
cp -f %s/windows-external-sdk/python
36
/%s/include/* %s
'
%
(
temp
,
self
.
version
,
python_headers
))
shell
.
call
(
'
cp -f %s/windows-external-sdk/python
36
/%s/lib/* %s
'
%
(
temp
,
self
.
version
,
python_libs
))
shell
.
call
(
'
cp -f %s/windows-external-sdk/python
%s
/%s/include/* %s
'
%
(
temp
,
version
,
self
.
version
,
python_headers
))
shell
.
call
(
'
cp -f %s/windows-external-sdk/python
%s
/%s/lib/* %s
'
%
(
temp
,
version
,
self
.
version
,
python_libs
))
try
:
os
.
remove
(
'
%s/lib/python.dll
'
%
self
.
prefix
)
except
:
pass
shell
.
call
(
'
ln -s python
36
.dll python.dll
'
,
'
%s/lib
'
%
self
.
prefix
)
shell
.
call
(
'
ln -s python
%s
.dll python.dll
'
%
version
,
'
%s/lib
'
%
self
.
prefix
)
shutil
.
rmtree
(
tmp_dir
)
def
install_mingwget_deps
(
self
):
...
...
This diff is collapsed.
Click to expand it.
config/windows.config
+
5
−
3
View file @
f5a07c90
...
...
@@ -4,6 +4,7 @@
# PLEASE, DO NOT EDIT THIS FILE
import
os
import
sys
from
cerbero
.
config
import
Architecture
,
Platform
# We don't want anything from mingw or msys detected in configure and
...
...
@@ -77,12 +78,13 @@ os.environ['ac_cv_lib_bz2_BZ2_bzlibVersion'] = 'yes'
os
.
environ
[
'ac_cv_c_attribute_aligned'
] =
'64'
# Python
os
.
environ
[
'am_cv_python_version'
] =
'3.6'
_
version
=
'%s.%s'
% (
sys
.
version_info
[
0
],
sys
.
version_info
[
1
])
os
.
environ
[
'am_cv_python_version'
] =
_
version
os
.
environ
[
'am_cv_python_platform'
] =
'win32'
os
.
environ
[
'am_cv_python_pyexecdir'
] =
'%s/%s/site-packages'
% (
prefix
,
py_prefix
)
os
.
environ
[
'am_cv_python_pythondir'
] =
'%s/%s/site-packages'
% (
prefix
,
py_prefix
)
os
.
environ
[
'PYTHON_INCLUDES'
] =
'-I%s/include/Python
3.6 -I%s/include/Python3.6
'
% (
toolchain_prefix
,
toolchain_prefix
)
os
.
environ
[
'PYTHON_LIBS'
] =
'-lpython
36
-shrext .pyd'
os
.
environ
[
'PYTHON_INCLUDES'
] =
'-I%s/include/Python
%s
'
% (
toolchain_prefix
,
_
version
)
os
.
environ
[
'PYTHON_LIBS'
] =
'-lpython
%s
-shrext .pyd'
% (
_
version
.
replace
(
'.'
,
''
))
# DirectX and DirectSound
os
.
environ
[
'DIRECTSOUND_CFLAGS'
] =
'-I%s/%s/include/directx'
% (
toolchain_prefix
,
host
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment