Jamfile 1019 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright Stefan Seefeld 2016.
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # (See accompanying file LICENSE_1_0.txt or copy at
  4. # http://www.boost.org/LICENSE_1_0.txt)
  5. import python ;
  6. import testing ;
  7. project quickstart
  8. : requirements
  9. <location>.
  10. ;
  11. # Declare a Python extension called hello.
  12. python-extension extending : extending.cpp ;
  13. # Declare an executable called embedding that embeds Python
  14. exe embedding : embedding.cpp /python//python ;
  15. # Declare a test of the extension module
  16. testing.make-test run-pyd : extending test_extending.py : : test_ext ;
  17. # Declare a test of the embedding application
  18. testing.run embedding embedding.cpp
  19. : # any ordinary arguments
  20. : script.py # any arguments that should be treated as relative paths
  21. : # requirements
  22. : test_embed ; # name of test
  23. # Create a "test" target that runs all the tests
  24. alias test : test_ext test_embed ;
  25. # make sure the tests don't run by default
  26. explicit test_ext test_embed test ;