FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/setup.py at ef02cac218b314a466b31b60b88ffbe89bc54093 · pythonnative/pythonnative · GitHub
pythonnative
/
pythonnative
Public
Notifications
You must be signed in to change notification settings
Fork
23
Star
131
Code
Issues
11
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnative
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (20 loc) · 858 Bytes
Breadcrumbs
pythonnative
/
setup.py
Copy path
File metadata and controls
23 lines (20 loc) · 858 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Build the host Yoga binding; mobile hosts compile the vendored core."""
import
os
from
pathlib
import
Path
from
setuptools
import
Extension
,
setup
root
=
Path
(
"src/pythonnative/native/yoga"
)
setup
(
ext_modules
=
[
Extension
(
"pythonnative._yoga"
,
sources
=
[
str
(
root
/
"python.cpp"
),
*
map
(
str
,
sorted
((
root
/
"yoga"
).
rglob
(
"*.cpp"
)))],
include_dirs
=
[
str
(
root
)],
language
=
"c++"
,
extra_compile_args
=
[
"/std:c++20"
]
if
os
.
name
==
"nt"
else
[
"-std=c++20"
],
# ctypes loads Yoga's C API and our measurement callbacks from
# the extension DLL, not just Python's module initializer.
define_macros
=
[(
"_WINDLL"
,
"1"
)]
if
os
.
name
==
"nt"
else
[],
export_symbols
=
[
"pn_yoga_callback"
,
"pn_yoga_measure"
]
if
os
.
name
==
"nt"
else
[],
)
]
)
Back
|
FazBrowse Home
|
New Git URL