Skip to content

Commit

Permalink
visual studio builds do weird things
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@9074 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 20, 2015
1 parent fa04c40 commit 001e8fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def make_constants_pxi(constants_path, pxi_path, **kwargs):
out.write(' unsigned int %s %s\n' % const)
else:
out.write(' unsigned int %s\n' % (const,))

out.write("constants = {\n")
for const in constants:
if isinstance(const, tuple):
Expand Down Expand Up @@ -1129,6 +1129,9 @@ def add_DLLs(*dll_names):
'rsvg', 'webp',
'winpthread',
'zzz')
if os.environ.get("VCINSTALLDIR"):
#Visual Studio links our avcodec2 module against libiconv...
add_DLLs("iconv")
#this one may be missing in pygi-aio 3.14?
#ie: libpyglib-gi-2.0-python34
# pyglib-gi-2.0-python%s%s' % (sys.version_info[0], sys.version_info[1])
Expand Down Expand Up @@ -1918,7 +1921,7 @@ def cython_add(*args, **kwargs):
if not os.path.exists(libwebp4):
shutil.copy(libwebp5, libwebp4)
add_data_files('', [libwebp4, libwebp5])

webp_pkgconfig = pkgconfig("webp")
cython_add(Extension("xpra.codecs.webp.encode",
["xpra/codecs/webp/encode.pyx", buffers_c],
Expand Down

0 comments on commit 001e8fb

Please sign in to comment.