2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-02 20:52:13 +00:00
Files
build/test/path_features.py
Dave Abrahams 8f2b6126b9 Accomodate msvc
[SVN r17746]
2003-03-06 17:54:16 +00:00

27 lines
440 B
Python

#!/usr/bin/python
from BoostBuild import Tester
t = Tester()
t.write("project-root.jam", "import gcc ;")
t.write("Jamfile", "lib a : a.cpp : <include>. ;")
t.write("a.cpp", """
#include <a.h>
void
# ifdef _WIN32
__declspec(dllexport)
# endif
foo() {}
""")
t.write("a.h", "")
t.write("d/Jamfile", "exe b : b.cpp ../a ; ")
t.write("d/b.cpp", """
void foo();
int main() { foo(); }
""")
t.run_build_system(subdir="d")
t.cleanup()