Skip to content

Commit

Permalink
Merge pull request #20 from ebraminio/master
Browse files Browse the repository at this point in the history
Improve win32 build files
  • Loading branch information
ebraminio authored Oct 11, 2016
2 parents 10d03a8 + 83e8891 commit 89b631a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
16 changes: 2 additions & 14 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@ install:
- git clone https://github.com/Microsoft/vcpkg
- cd vcpkg
- powershell -exec bypass scripts\bootstrap.ps1
- vcpkg install glew freetype
- vcpkg install glew freetype freeglut
- vcpkg integrate install
- copy installed\x86-windows\include\freetype2\ft2build.h "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include"
- xcopy installed\x86-windows\include\freetype2 "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\freetype\" /S
- xcopy installed\x86-windows\lib "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\"
- cd ..

# Someone should put a freeglut on vcpkg but till then, download and install glut manually
- appveyor DownloadFile https://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip
- 7z x glutdlls37beta.zip
- copy glut32.dll "C:\Windows\SysWOW64\"
- md "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\GL"
- copy glut.h "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\GL"
- copy glut32.lib "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib"

build_script:
- cd win32
- msbuild glyphy.sln
- msbuild win32\glyphy.sln
6 changes: 3 additions & 3 deletions win32/glyphy-demo.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>glew32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent>
<Command>cscript $(MSBuildStartupDirectory)\stringize.js "$(MSBuildStartupDirectory)\..\demo"</Command>
<Command>cscript "$(MSBuildProjectDirectory)\stringize.js" "$(MSBuildProjectDirectory)\..\demo"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -81,7 +81,7 @@
<OptimizeReferences>true</OptimizeReferences>
</Link>
<PreBuildEvent>
<Command>cscript $(MSBuildStartupDirectory)\stringize.js "$(MSBuildStartupDirectory)\..\demo"</Command>
<Command>cscript "$(MSBuildProjectDirectory)\stringize.js" "$(MSBuildProjectDirectory)\..\demo"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions win32/glyphy.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PreBuildEvent>
<Command>cscript $(MSBuildStartupDirectory)\stringize.js "$(MSBuildStartupDirectory)\..\src"</Command>
<Command>cscript "$(MSBuildProjectDirectory)\stringize.js" "$(MSBuildProjectDirectory)\..\src"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -83,7 +83,7 @@
<OptimizeReferences>true</OptimizeReferences>
</Link>
<PreBuildEvent>
<Command>cscript $(MSBuildStartupDirectory)\stringize.js "$(MSBuildStartupDirectory)\..\src"</Command>
<Command>cscript "$(MSBuildProjectDirectory)\stringize.js" "$(MSBuildProjectDirectory)\..\src"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down

0 comments on commit 89b631a

Please sign in to comment.