From daa15d35fdd2b03070fb2bd87ad4fad6ba49f525 Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sun, 25 Apr 2010 13:22:44 +0200 Subject: add test program for package boost --- src/boost-test.cpp | 17 +++++++++++++++++ src/boost.mk | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 src/boost-test.cpp diff --git a/src/boost-test.cpp b/src/boost-test.cpp new file mode 100644 index 0000000..ea809fe --- /dev/null +++ b/src/boost-test.cpp @@ -0,0 +1,17 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include +#include + +int main(int argc, char *argv[]) +{ + (void)argc; + (void)argv; + + boost::archive::xml_oarchive oa(std::cout); + std::string s = "\n\n Hello, World!\n\n"; + oa << BOOST_SERIALIZATION_NVP(s); + + return 0; +} diff --git a/src/boost.mk b/src/boost.mk index 17a1827..79532f7 100644 --- a/src/boost.mk +++ b/src/boost.mk @@ -43,4 +43,9 @@ define $(PKG)_BUILD -sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \ -sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \ stage install + + '$(TARGET)-g++' \ + -W -Wall -Werror -std=c++98 -U__STRICT_ANSI__ -pedantic \ + '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-boost.exe' \ + -lboost_serialization-mt endef -- cgit v0.12