Skip to content

Commit

Permalink
Adding to Freetype windows role
Browse files Browse the repository at this point in the history
JDK8 compile will fail unless freetype is built beforehand, so these changes
will build freetype 32bit and 64bit versions inside C:\openjdk\freetype-2.5.3

Signed-off-by: Colton Mills <millscolt3@gmail.com>
  • Loading branch information
cwesMills authored and jdekonin committed Nov 16, 2018
1 parent e75cf78 commit 51e9748
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,31 @@
state: present
when: (freetype_installed.stat.exists == false)
tags: Freetype

- name: Check if freetype 32bit has been built
win_shell: Test-Path -Path C:\openjdk\freetype-2.5.3\lib32
register: freetype32_built
tags: Freetype

- name: Check if freetype 64bit has been built
win_shell: Test-Path -Path C:\openjdk\freetype-2.5.3\lib64
register: freetype64_built
tags: Freetype

- name: Build freetype-2.5.3 32bit
win_shell: |
msbuild.exe C:/openjdk/freetype-2.5.3/builds/windows/vc2010/freetype.vcxproj /p:PlatformToolset=v100 /p:Configuration="Release Multithreaded" /p:PlatformTarget=x86 /p:ConfigurationType=DynamicLibrary /p:TargetName=freetype /p:OutDir="C:/openjdk/freetype-2.5.3/lib32/" /p:IntDir="C:/openjdk/freetype-2.5.3/obj32/" > C:/temp/freetype32.log
msbuild.exe C:/openjdk/freetype-2.5.3/builds/windows/vc2010/freetype.vcxproj /p:PlatformToolset=v100 /p:Configuration="Release Multithreaded" /p:PlatformTarget=x86 /p:ConfigurationType=StaticLibrary /p:TargetName=freetype /p:OutDir="C:/openjdk/freetype-2.5.3/lib32/" /p:IntDir="C:/openjdk/freetype-2.5.3/obj32/" >> C:/temp/freetype32.log
args:
executable: C:\Windows\system32\cmd.exe /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
when: (freetype32_built == False)
tags: Freetype

- name: Build freetype-2.5.3 64bit
win_shell: |
msbuild.exe C:/openjdk/freetype-2.5.3/builds/windows/vc2010/freetype.vcxproj /p:PlatformToolset=v100 /p:Configuration="Release Multithreaded" /p:Platform=x64 /p:ConfigurationType=DynamicLibrary /p:TargetName=freetype /p:OutDir="C:/openjdk/freetype-2.5.3/lib64/" /p:IntDir="C:/openjdk/freetype-2.5.3/obj64/" > C:/temp/freetype64.log
msbuild.exe C:/openjdk/freetype-2.5.3/builds/windows/vc2010/freetype.vcxproj /p:PlatformToolset=v100 /p:Configuration="Release Multithreaded" /p:Platform=x64 /p:ConfigurationType=StaticLibrary /p:TargetName=freetype /p:OutDir="C:/openjdk/freetype-2.5.3/lib64/" /p:IntDir="C:/openjdk/freetype-2.5.3/obj64/" >> C:/temp/freetype64.log
args:
executable: C:\Windows\system32\cmd.exe /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
when: (freetype64_built == False)
tags: Freetype

0 comments on commit 51e9748

Please sign in to comment.