@@ -1051,18 +1051,18 @@ def do_custom_build(self):
1051
1051
copy %FREETYPE%\\ objs\\ {vc20xx}\\ {xXX}\\ freetype261.lib %FREETYPE%\\ objs\\ .libs\\ libfreetype.lib
1052
1052
if errorlevel 1 (
1053
1053
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
1055
1055
)
1056
1056
"""
1057
1057
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...
1059
1059
vc = 'vc2010' if VS2010 else 'vc2008'
1060
1060
WinXX = 'x64' if X64 else 'Win32'
1061
1061
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 )
1066
1066
1067
1067
cmdfile = os .path .join ("build" , 'build_freetype.cmd' )
1068
1068
with open (cmdfile , 'w' ) as cmd :
0 commit comments