X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=Build;h=404ddbf42f6d8eb5a4426d17105c344f3b3a5ab3;hp=1ed9db85befa7188f494ecf7db832e83285b4347;hb=HEAD;hpb=debe1004676d5431e571d9c4361072661dcc88c4 diff --git a/Build b/Build index 1ed9db8..44bf9c0 100644 --- a/Build +++ b/Build @@ -1,7 +1,10 @@ package "mspnet" { + version "1.0"; + + require "sigc++-2.0"; require "mspcore"; - if "arch=win32" + if_arch "windows" { build_info { @@ -9,23 +12,28 @@ package "mspnet" }; }; - headers "msp/net" + build_info { - source "source/net"; - install true; - }; - - headers "msp/http" - { - source "source/http"; - install true; + standard CXX "c++14"; }; library "mspnet" { source "source/net"; source "source/http"; + if_arch "windows" + { + overlay "windows"; + }; + if_arch "!windows" + { + overlay "unix"; + }; install true; + install_map + { + map "source" "include/msp"; + }; }; program "netcat" @@ -36,4 +44,22 @@ package "mspnet" library "mspnet"; }; }; + + program "httpget" + { + source "examples/httpget.cpp"; + build_info + { + library "mspnet"; + }; + }; + + program "minihttpd" + { + source "examples/minihttpd.cpp"; + build_info + { + library "mspnet"; + }; + }; };