Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Nov 4, 2024
1 parent 0b4e649 commit 8896d1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion scripts/build_Windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ extra_cflags_cc=["/GR", "/EHsc", "/MD"]
' && \
ninja -C out/Release && \
cd .. && \
ls -Rl skia && \
ls -l skia/out/Release
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'SKIA_OUT_PATH', os.path.join(SKIA_PATH, 'out', 'Release')
)

package_data = {}
if sys.platform == 'win32':
DEFINE_MACROS = [] # doesn't work for cl.exe
LIBRARIES = [
Expand All @@ -34,8 +35,7 @@
EXTRA_OBJECTS = list(
) + [os.path.join(SKIA_OUT_PATH, 'svg.lib'), os.path.join(SKIA_OUT_PATH, 'skresources.lib'), os.path.join(SKIA_OUT_PATH, 'skia.lib'),
os.path.join(SKIA_OUT_PATH, 'skparagraph.lib'), os.path.join(SKIA_OUT_PATH, 'skshaper.lib'),
os.path.join(SKIA_OUT_PATH, 'skunicode_icu.lib'), os.path.join(SKIA_OUT_PATH, 'skunicode_core.lib'),
os.path.join(SKIA_OUT_PATH, 'icudtl.dat')]
os.path.join(SKIA_OUT_PATH, 'skunicode_icu.lib'), os.path.join(SKIA_OUT_PATH, 'skunicode_core.lib')]
EXTRA_COMPILE_ARGS = [
'/std:c++17', # c++20 fails.
'/DVERSION_INFO=%s' % __version__,
Expand All @@ -55,6 +55,9 @@
'/OPT:ICF',
'/OPT:REF',
]
package_data = {"": [
os.path.join(SKIA_OUT_PATH, 'icudtl.dat'),
]}
elif sys.platform == 'darwin':
DEFINE_MACROS = [
('VERSION_INFO', __version__),
Expand Down Expand Up @@ -174,6 +177,7 @@ def build_extensions(self):
long_description=open('README.md', 'r').read(),
long_description_content_type='text/markdown',
ext_modules=[extension],
package_data=package_data,
install_requires=[
'numpy',
'pybind11>=2.6'
Expand Down

0 comments on commit 8896d1a

Please sign in to comment.