Lines Matching refs:b2
35 void b2::startup::load_builtins() in load_builtins()
43 LIST *b2::startup::builtin_boost_build(FRAME *frame, int flags) in builtin_boost_build()
45 b2::jam::list dir_arg{lol_get(frame->args, 0)}; in builtin_boost_build()
47 if (!dir_arg.empty()) dir = b2::jam::object(*dir_arg.begin()); in builtin_boost_build()
49 b2::jam::variable dot_bootstrap_file{".bootstrap-file"}; in builtin_boost_build()
65 b2::jam::variable dot_boost_build_file{".boost-build-file"}; in builtin_boost_build()
66 b2::jam::list dot_boost_build_file_val{static_cast<b2::jam::list>(dot_boost_build_file)}; in builtin_boost_build()
67 std::string boost_build_jam = b2::jam::object{*dot_boost_build_file_val.begin()}; in builtin_boost_build()
69 if (b2::paths::is_rooted(dir)) in builtin_boost_build()
72 boost_build_dir = b2::paths::normalize( in builtin_boost_build()
74 b2::jam::list search_path{b2::jam::object{boost_build_dir}}; in builtin_boost_build()
75 b2::jam::variable BOOST_BUILD_PATH{"BOOST_BUILD_PATH"}; in builtin_boost_build()
85 b2::jam::variable dot_ENVIRON__BOOST_BUILD_PATH{".ENVIRON", "BOOST_BUILD_PATH"}; in builtin_boost_build()
92 std::string file = b2::jam::object{path}; in builtin_boost_build()
93 file = b2::paths::normalize(file+"/bootstrap.jam"); in builtin_boost_build()
94 if (b2::filesys::is_file(file)) in builtin_boost_build()
116 std::string file = b2::jam::object{path}; in builtin_boost_build()
127 dot_bootstrap_file = b2::jam::list{b2::jam::object{bootstrap_file}}; in builtin_boost_build()
130 b2::jam::variable dot_OPTION__debug_configuration{".OPTION", "debug-configration"}; in builtin_boost_build()
137 parse_file(b2::jam::object{bootstrap_file}, frame); in builtin_boost_build()
144 bool b2::startup::bootstrap(FRAME *frame) in bootstrap()
146 b2::jam::list ARGV = b2::jam::variable{"ARGV"}; in bootstrap()
147 b2::jam::object opt_debug_configuration{"--debug-configuration"}; in bootstrap()
148 b2::jam::variable dot_OPTION__debug_configuration{".OPTION", "debug-configration"}; in bootstrap()
153 dot_OPTION__debug_configuration = b2::jam::list{b2::jam::object{"true"}}; in bootstrap()
165 std::string work_dir{b2::paths::normalize(b2::cwd_str()) + "/"}; in bootstrap()
168 if (b2::filesys::is_file(work_dir + boost_build_jam)) in bootstrap()
187 b2::paths::normalize( in bootstrap()
189 if (b2::filesys::is_file(path)) in bootstrap()
197 b2::paths::normalize( in bootstrap()
199 if (b2::filesys::is_file(path)) in bootstrap()
206 b2::jam::list BOOST_BUILD_PATH = b2::jam::variable{"BOOST_BUILD_PATH"}; in bootstrap()
209 std::string path = b2::jam::object{search_path}; in bootstrap()
210 path = b2::paths::normalize(path+"/"+boost_build_jam); in bootstrap()
211 if (b2::filesys::is_file(path)) in bootstrap()
229 err_printf(not_found_error, b2::cwd_str().c_str(), b2_exe_path.c_str()); in bootstrap()
240 b2::jam::variable dot_boost_build_file{".boost-build-file"}; in bootstrap()
242 b2::jam::object b2_file_path_sym{b2_file_path}; in bootstrap()
244 b2::jam::list dot_dot_bootstrap_file_val = b2::jam::variable{".bootstrap-file"}; in bootstrap()
257 b2_file_path.c_str(), b2::cwd_str().c_str()); in bootstrap()