mirror of https://git.wownero.com/dsc/mxe.git
add test program for package boost
This commit is contained in:
parent
a9b51d8ba9
commit
daa15d35fd
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue