2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Adjust for Win32

[SVN r18030]
This commit is contained in:
Dave Abrahams
2003-03-20 13:48:59 +00:00
parent 66765cdfdd
commit 712168581a
2 changed files with 42 additions and 6 deletions

View File

@@ -6,11 +6,24 @@ from BoostBuild import Tester
t = Tester()
t.write("project-root.jam", "import gcc ;")
t.write("Jamfile", """
t.write(
"Jamfile",
"""
lib a : a.cpp ;
stage dist : a a.h auxilliary/1 ;
""")
t.write("a.cpp", "")
t.write(
"a.cpp",
"""
int
#ifdef _WIN32
__declspec(dllexport)
#endif
must_export_something;
""")
t.write("a.h", "")
t.write("auxilliary/1", "")
@@ -37,11 +50,16 @@ t.expect_addition("rs/a.dll")
t.write("project-root.jam", """
path-constant DIST : dist ;
""")
t.write("Jamfile", "build-project d ;")
t.write("d/Jamfile","""
t.write(
"d/Jamfile",
"""
exe a : a.cpp ;
stage dist : a : <location>$(DIST) ;
""")
t.write("d/a.cpp", "int main() { return 0;}\n")
t.run_build_system()

View File

@@ -6,11 +6,24 @@ from BoostBuild import Tester
t = Tester()
t.write("project-root.jam", "import gcc ;")
t.write("Jamfile", """
t.write(
"Jamfile",
"""
lib a : a.cpp ;
stage dist : a a.h auxilliary/1 ;
""")
t.write("a.cpp", "")
t.write(
"a.cpp",
"""
int
#ifdef _WIN32
__declspec(dllexport)
#endif
must_export_something;
""")
t.write("a.h", "")
t.write("auxilliary/1", "")
@@ -37,11 +50,16 @@ t.expect_addition("rs/a.dll")
t.write("project-root.jam", """
path-constant DIST : dist ;
""")
t.write("Jamfile", "build-project d ;")
t.write("d/Jamfile","""
t.write(
"d/Jamfile",
"""
exe a : a.cpp ;
stage dist : a : <location>$(DIST) ;
""")
t.write("d/a.cpp", "int main() { return 0;}\n")
t.run_build_system()