Skip to content

Commit

Permalink
Updated premakefile, addded NFD dependency for native file dialogs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivodopiviz committed Jan 11, 2017
1 parent 4852774 commit e2d55ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdio.h>
#include "SDL.h"
#include "nfd.h"
#include "Chip8.h"

#define SCREEN_WIDTH 64
Expand Down
8 changes: 4 additions & 4 deletions src/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ workspace "Octo"
kind "ConsoleApp"
language "C++"
files { "**.h", "**.cpp" }
includedirs { "depend/SDL2-2.0.5/include" }
libdirs { "depend/SDL2-2.0.5/lib/x86" }
includedirs { "depend/SDL2-2.0.5/include", "depend/nativefiledialog-master/src/include" }
libdirs { "depend/SDL2-2.0.5/lib/x86", "depend/nativefiledialog-master/build/lib/Release/x86" }
debugargs { "pong2.c8" }
debugdir "../"
targetdir ("../")
Expand All @@ -17,9 +17,9 @@ workspace "Octo"
defines { "DEBUG" }
flags { "Symbols" }
targetsuffix "_d"
links { "SDL2", "SDL2main" }
links { "SDL2", "SDL2main", "nfd" }

filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
links { "SDL2", "SDL2main" }
links { "SDL2", "SDL2main", "nfd" }

0 comments on commit e2d55ce

Please sign in to comment.