Include curses.
This commit is contained in:
parent
340113a366
commit
5a5e149b3a
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -8,3 +8,6 @@
|
||||
[submodule "deps/asio"]
|
||||
path = deps/asio
|
||||
url = https://github.com/chriskohlhoff/asio.git
|
||||
[submodule "deps/pdcurses"]
|
||||
path = deps/pdcurses
|
||||
url = git://git.code.sf.net/p/pdcurses/code
|
||||
|
1
deps/pdcurses
vendored
Submodule
1
deps/pdcurses
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit d4f3231c6ee62efb7f63d666617098a8c70d1b28
|
21
premake5.lua
21
premake5.lua
@ -84,8 +84,8 @@ workspace "iw4x"
|
||||
pchsource "src/STDInclude.cpp" -- real path
|
||||
|
||||
-- Dependency on zlib, json11 and asio
|
||||
links { "zlib", "json11" }
|
||||
includedirs { "./deps/zlib", "./deps/json11", "./deps/asio/asio/include" }
|
||||
links { "zlib", "json11", "pdcurses" }
|
||||
includedirs { "./deps/zlib", "./deps/json11", "./deps/pdcurses", "./deps/asio/asio/include" }
|
||||
|
||||
-- Virtual paths
|
||||
if not _OPTIONS["no-new-structure"] then
|
||||
@ -159,3 +159,20 @@ workspace "iw4x"
|
||||
|
||||
-- always build as static lib, as json11 doesn't export anything
|
||||
kind "StaticLib"
|
||||
|
||||
|
||||
-- pdcurses
|
||||
project "pdcurses"
|
||||
language "C++"
|
||||
includedirs { "./deps/pdcurses/" }
|
||||
|
||||
files
|
||||
{
|
||||
"./deps/pdcurses/pdcurses/*.c"
|
||||
}
|
||||
|
||||
-- not our code, ignore POSIX usage warnings for now
|
||||
warnings "Off"
|
||||
|
||||
-- always build as static lib, as pdcurses doesn't export anything
|
||||
kind "StaticLib"
|
||||
|
@ -29,12 +29,18 @@
|
||||
#include <future>
|
||||
|
||||
// Submodules
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4005)
|
||||
|
||||
#define ZLIB_CONST
|
||||
#define ASIO_STANDALONE
|
||||
#include <zlib.h>
|
||||
#include <curses.h>
|
||||
//#include <asio.hpp>
|
||||
#include <json11.hpp>
|
||||
|
||||
#pragma warning(pop)
|
||||
|
||||
// Version number
|
||||
#include <version.hpp>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user