diff --git a/build.jam b/build.jam new file mode 100644 index 00000000..3003a721 --- /dev/null +++ b/build.jam @@ -0,0 +1,61 @@ +# Copyright René Ferdinand Rivera Morell 2024 +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +import project ; + +project /boost/graph + : common-requirements + /boost/algorithm//boost_algorithm + /boost/any//boost_any + /boost/array//boost_array + /boost/assert//boost_assert + /boost/bimap//boost_bimap + /boost/bind//boost_bind + /boost/concept_check//boost_concept_check + /boost/config//boost_config + /boost/container_hash//boost_container_hash + /boost/conversion//boost_conversion + /boost/core//boost_core + /boost/detail//boost_detail + /boost/foreach//boost_foreach + /boost/function//boost_function + /boost/integer//boost_integer + /boost/iterator//boost_iterator + /boost/lexical_cast//boost_lexical_cast + /boost/math//boost_math + /boost/move//boost_move + /boost/mpl//boost_mpl + /boost/multi_index//boost_multi_index + /boost/optional//boost_optional + /boost/parameter//boost_parameter + /boost/preprocessor//boost_preprocessor + /boost/property_map//boost_property_map + /boost/property_tree//boost_property_tree + /boost/random//boost_random + /boost/range//boost_range + /boost/regex//boost_regex + /boost/serialization//boost_serialization + /boost/smart_ptr//boost_smart_ptr + /boost/spirit//boost_spirit + /boost/static_assert//boost_static_assert + /boost/throw_exception//boost_throw_exception + /boost/tti//boost_tti + /boost/tuple//boost_tuple + /boost/type_traits//boost_type_traits + /boost/typeof//boost_typeof + /boost/unordered//boost_unordered + /boost/utility//boost_utility + /boost/xpressive//boost_xpressive + include + ; + +explicit + [ alias boost_graph : build//boost_graph ] + [ alias all : boost_graph example test ] + ; + +call-if : boost-library graph + : install boost_graph + ; diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 9c32f9cc..9b628fcd 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -6,7 +6,7 @@ import mpi ; -project boost/graph +project : requirements ../src : source-location ../src ; @@ -24,5 +24,3 @@ lib boost_graph : : ; - -boost-install boost_graph ; diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index 30c730a2..2fdd0c56 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -3,7 +3,10 @@ # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -import ../../config/checks/config : requires ; +require-b2 5.0.1 ; +import-search /boost/config/checks ; + +import config : requires ; import modules ; import path ; @@ -75,15 +78,15 @@ run filtered_graph.cpp ; run filtered_graph_edge_range.cpp ; run filtered_vec_as_graph.cpp ; run filtered-copy-example.cpp ; -exe fr_layout : fr_layout.cpp : [ requires cxx11_noexcept cxx11_rvalue_references sfinae_expr cxx11_auto_declarations cxx11_lambdas cxx11_unified_initialization_syntax cxx11_hdr_tuple cxx11_hdr_initializer_list cxx11_hdr_chrono cxx11_thread_local cxx11_constexpr cxx11_nullptr cxx11_numeric_limits cxx11_decltype cxx11_hdr_array cxx11_hdr_atomic cxx11_hdr_type_traits cxx11_allocator cxx11_explicit_conversion_operators ] ; +exe fr_layout : fr_layout.cpp /boost/timer//boost_timer : [ requires cxx11_noexcept cxx11_rvalue_references sfinae_expr cxx11_auto_declarations cxx11_lambdas cxx11_unified_initialization_syntax cxx11_hdr_tuple cxx11_hdr_initializer_list cxx11_hdr_chrono cxx11_thread_local cxx11_constexpr cxx11_nullptr cxx11_numeric_limits cxx11_decltype cxx11_hdr_array cxx11_hdr_atomic cxx11_hdr_type_traits cxx11_allocator cxx11_explicit_conversion_operators ] ; run gerdemann.cpp ; run graph.cpp ; run graph_as_tree.cpp ; run graph_property.cpp ; run graph-assoc-types.cpp ; run graph-property-iter-eg.cpp ; -run graph-thingie.cpp ../build//boost_graph ; -run graphviz.cpp ../build//boost_graph : $(TEST_DIR)/graphviz_example.dot ; +run graph-thingie.cpp /boost/graph//boost_graph ; +run graphviz.cpp /boost/graph//boost_graph : $(TEST_DIR)/graphviz_example.dot ; run grid_graph_example.cpp ; run grid_graph_properties.cpp ; exe hawick_circuits : hawick_circuits.cpp ; @@ -114,7 +117,7 @@ exe mean_geodesic : mean_geodesic.cpp ; exe minimum_degree_ordering : minimum_degree_ordering.cpp ; run modify_graph.cpp ; run neighbor_bfs.cpp ; -run ospf-example.cpp ../build//boost_graph : $(TEST_DIR)/figs/ospf-graph.dot $(TEST_DIR)/figs/ospf-sptree.dot $(TEST_DIR)/routing-table.dat ; +run ospf-example.cpp /boost/graph//boost_graph : $(TEST_DIR)/figs/ospf-graph.dot $(TEST_DIR)/figs/ospf-sptree.dot $(TEST_DIR)/routing-table.dat ; run parallel-compile-time.cpp : $(TEST_DIR)/makefile-dependencies.dat $(TEST_DIR)/makefile-target-names.dat $(TEST_DIR)/target-compile-costs.dat ; run planar_face_traversal.cpp ; run prim-example.cpp ; @@ -129,7 +132,7 @@ run put-get-helper-eg.cpp ; run quick_tour.cpp ; run quick-tour.cpp ; run r_c_shortest_paths_example.cpp ; -run read_graphviz.cpp ../build//boost_graph ; +run read_graphviz.cpp /boost/graph//boost_graph ; exe read_write_dimacs : read_write_dimacs-eg.cpp ; run remove_edge_if_bidir.cpp ; run remove_edge_if_dir.cpp ; @@ -207,7 +210,7 @@ explicit girth ; #run edge-connectivity.cpp ; # # These compile, but still use the old graphviz interface and die and runtime: -# run strong_components.cpp ../build//boost_graph ; +# run strong_components.cpp /boost/graph//boost_graph ; # diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 4868b1bd..2ca2c435 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -7,9 +7,12 @@ # Define SGB (stanford graph base top level directory) and # LEDA (also top level directory) at the command line of jam using -s +require-b2 5.0.1 ; +import-search /boost/config/checks ; + import modules ; import path ; -import ../../config/checks/config : requires ; +import config : requires ; path-constant TEST_DIR : . ; @@ -73,13 +76,14 @@ alias graph_test_regular : [ run graph.cpp : : : TEST=9 : graph_9 ] [ compile graph_concepts.cpp ] [ run graphviz_test.cpp - ../build//boost_graph : --log_level=all ] + /boost/assign//boost_assign + /boost/graph//boost_graph : --log_level=all ] [ run metis_test.cpp : $(METIS_INPUT_FILE) ] [ run gursoy_atun_layout_test.cpp : : : [ requires cxx11_noexcept cxx11_rvalue_references sfinae_expr cxx11_auto_declarations cxx11_lambdas cxx11_unified_initialization_syntax cxx11_hdr_tuple cxx11_hdr_initializer_list cxx11_hdr_chrono cxx11_thread_local cxx11_constexpr cxx11_nullptr cxx11_numeric_limits cxx11_decltype cxx11_hdr_array cxx11_hdr_atomic cxx11_hdr_type_traits cxx11_allocator cxx11_explicit_conversion_operators ] ] [ run layout_test.cpp : : : always_show_run_output intel:off [ requires cxx11_noexcept cxx11_rvalue_references sfinae_expr cxx11_auto_declarations cxx11_lambdas cxx11_unified_initialization_syntax cxx11_hdr_tuple cxx11_hdr_initializer_list cxx11_hdr_chrono cxx11_thread_local cxx11_constexpr cxx11_nullptr cxx11_numeric_limits cxx11_decltype cxx11_hdr_array cxx11_hdr_atomic cxx11_hdr_type_traits cxx11_allocator cxx11_explicit_conversion_operators ] ] [ run serialize.cpp - ../../serialization/build//boost_serialization + /boost/serialization//boost_serialization : : : ] [ compile reverse_graph_cc.cpp ] @@ -116,7 +120,7 @@ alias graph_test_regular : [ run weighted_matching_test.cpp ] [ run max_flow_test.cpp ] [ run boykov_kolmogorov_max_flow_test.cpp ] - [ run cycle_ratio_tests.cpp ../build//boost_graph : $(CYCLE_RATIO_INPUT_FILE) ] + [ run cycle_ratio_tests.cpp /boost/graph//boost_graph : $(CYCLE_RATIO_INPUT_FILE) ] [ run basic_planarity_test.cpp ] [ run make_connected_test.cpp ] [ run make_bicon_planar_test.cpp ] @@ -136,14 +140,14 @@ alias graph_test_regular : [ run clustering_coefficient.cpp ] [ run core_numbers_test.cpp ] [ run read_propmap.cpp ] - [ run mcgregor_subgraphs_test.cpp ../build//boost_graph ] + [ run mcgregor_subgraphs_test.cpp /boost/graph//boost_graph ] [ compile grid_graph_cc.cpp ] [ run grid_graph_test.cpp ] [ run incremental_components_test.cpp ] - [ run two_graphs_common_spanning_trees_test.cpp ] - [ run random_spanning_tree_test.cpp ../build//boost_graph ] + [ run two_graphs_common_spanning_trees_test.cpp /boost/assign//boost_assign ] + [ run random_spanning_tree_test.cpp /boost/graph//boost_graph ] [ run random_matching_test.cpp : 1000 1020 ] - [ run graphml_test.cpp ../build//boost_graph : : "graphml_test.xml" ] + [ run graphml_test.cpp /boost/graph//boost_graph : : "graphml_test.xml" ] [ run mas_test.cpp : $(TEST_DIR) ] [ run stoer_wagner_test.cpp : $(TEST_DIR) ] [ compile filtered_graph_properties_dijkstra.cpp ] @@ -169,12 +173,12 @@ alias graph_test_with_filesystem : : alias graph_test_with_filesystem : [ run all_planar_input_files_test.cpp - ../../filesystem/build - ../../system/build + /boost/filesystem//boost_filesystem + /boost/system//boost_system : $(PLANAR_INPUT_FILES) ] [ run parallel_edges_loops_test.cpp - ../../filesystem/build - ../../system/build + /boost/filesystem//boost_filesystem + /boost/system//boost_system : $(PLANAR_INPUT_FILES) ] ;