@@ -1051,18 +1051,18 @@ def do_custom_build(self):
10511051copy %FREETYPE%\\ objs\\ {vc20xx}\\ {xXX}\\ freetype261.lib %FREETYPE%\\ objs\\ .libs\\ libfreetype.lib
10521052if errorlevel 1 (
10531053 rem This is a py27 version, which has a different location for the lib file :-/
1054- copy %FREETYPE%\\ objs\\ {WinXX} \\ {vc20xx}\\ freetype261.lib %FREETYPE%\\ objs\\ .libs\\ libfreetype.lib
1054+ copy %FREETYPE%\\ objs\\ win32 \\ {vc20xx}\\ freetype261.lib %FREETYPE%\\ objs\\ .libs\\ libfreetype.lib
10551055)
10561056"""
10571057 from setup_external_compile import fixproj , prepare_build_cmd , VS2010 , X64 , tar_extract
1058- vc = 'vc2010' if VS2010 else 'vc2008'
1058+ # Note: freetype has no build profile for 2014, so we don't bother...
10591059 vc = 'vc2010' if VS2010 else 'vc2008'
10601060 WinXX = 'x64' if X64 else 'Win32'
10611061 tar_extract (tarball_path , "build" )
1062-
1063- #fixproj(os.path.join(src_path, 'builds', 'windows', vc, 'freetype.sln'), WinXX)
1064- # fixproj(os.path.join(src_path, 'builds', 'windows', vc, 'freetype.{}'.format(
1065- # 'vcxproj' if VS2010 else ' vcproj') ), WinXX)
1062+ # This is only false for py2.7, even on py3.5...
1063+ if not VS2010 :
1064+ fixproj (os .path .join (src_path , 'builds' , 'windows' , vc , 'freetype.sln' ), WinXX )
1065+ fixproj ( os . path . join ( src_path , 'builds' , 'windows' , vc , 'freetype. vcproj' ), WinXX )
10661066
10671067 cmdfile = os .path .join ("build" , 'build_freetype.cmd' )
10681068 with open (cmdfile , 'w' ) as cmd :
0 commit comments