lang_objc.py 589 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python
  2. # Copyright Nikita Kniazev 2021.
  3. # Distributed under the Boost Software License, Version 1.0. (See
  4. # accompanying file LICENSE.txt or copy at
  5. # https://www.bfgroup.xyz/b2/LICENSE.txt)
  6. import BoostBuild
  7. t = BoostBuild.Tester()
  8. t.write("jamroot.jam", """
  9. obj a : hello.m ;
  10. obj b : hello.mm ;
  11. """)
  12. t.write("hello.m", '''\
  13. @interface Foo
  14. @end
  15. ''')
  16. t.write("hello.mm", '''\
  17. @interface Foo
  18. @end
  19. class Bar {};
  20. ''')
  21. t.run_build_system()
  22. t.expect_addition("bin/$toolset/debug*/a.obj")
  23. t.expect_addition("bin/$toolset/debug*/b.obj")
  24. t.expect_nothing_more()
  25. t.cleanup()