add test program for package boost

This commit is contained in:
Volker Grabsch 2010-04-25 13:22:44 +02:00
parent a9b51d8ba9
commit daa15d35fd
2 changed files with 22 additions and 0 deletions

17
src/boost-test.cpp Normal file
View File

@ -0,0 +1,17 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <iostream>
#include <boost/archive/xml_oarchive.hpp>
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;
}

View File

@ -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