提交 f2987889 编写于 作者: X Xiangquan Xiao

Bazel: Depend on boost in WORKSPACE.

上级 15240727
......@@ -50,7 +50,6 @@
#pragma once
#include <boost/format.hpp>
#include <cerrno>
#include <cmath>
#include <cstdint>
......@@ -58,11 +57,12 @@
#include <memory>
#include <string>
#include "boost/format.hpp"
#include "modules/drivers/proto/pointcloud.pb.h"
#include "modules/drivers/velodyne/parser/calibration.h"
#include "modules/drivers/velodyne/parser/const_variables.h"
#include "modules/drivers/velodyne/parser/online_calibration.h"
#include "modules/drivers/proto/pointcloud.pb.h"
#include "modules/drivers/velodyne/proto/config.pb.h"
#include "modules/drivers/velodyne/proto/velodyne.pb.h"
......
......@@ -18,15 +18,15 @@
#include <dirent.h>
#define BOOST_NO_CXX11_SCOPED_ENUMS
#include <boost/filesystem.hpp>
#undef BOOST_NO_CXX11_SCOPED_ENUMS
#include <algorithm>
#include <cerrno>
#include <climits>
#include <iostream>
#define BOOST_NO_CXX11_SCOPED_ENUMS
#include "boost/filesystem.hpp"
#undef BOOST_NO_CXX11_SCOPED_ENUMS
#include "cyber/common/log.h"
#include "fastrtps/TopicDataType.h"
......
......@@ -14,12 +14,13 @@
* limitations under the License.
*****************************************************************************/
#define BOOST_NO_CXX11_SCOPED_ENUMS
#include <boost/filesystem.hpp>
#undef BOOST_NO_CXX11_SCOPED_ENUMS
#include "modules/localization/msf/common/util/system_utility.h"
#include <algorithm>
#include "modules/localization/msf/common/util/system_utility.h"
#define BOOST_NO_CXX11_SCOPED_ENUMS
#include "boost/filesystem.hpp"
#undef BOOST_NO_CXX11_SCOPED_ENUMS
namespace apollo {
namespace localization {
......
......@@ -16,7 +16,7 @@
#include "modules/localization/msf/common/util/system_utility.h"
#include <boost/filesystem.hpp>
#include "boost/filesystem.hpp"
#include "gtest/gtest.h"
namespace apollo {
......
......@@ -33,16 +33,12 @@ cc_test(
size = "medium",
timeout = "short",
srcs = ["map_cache_test.cc"],
linkopts = [
"-lboost_filesystem",
"-lboost_system",
"-lboost_program_options",
],
deps = [
"//cyber",
"//modules/localization/msf/common/util:localization_msf_common_util",
"//modules/localization/msf/common/util:localization_msf_common_util_compression",
"//modules/localization/msf/local_map/base_map:localization_msf_base_map",
"@boost",
"@gtest//:main",
],
)
......
......@@ -16,10 +16,11 @@
#pragma once
#include <boost/property_tree/xml_parser.hpp>
#include <string>
#include <vector>
#include "boost/property_tree/xml_parser.hpp"
#include "modules/localization/msf/common/util/rect2d.h"
#include "modules/localization/msf/local_map/base_map/base_map_fwd.h"
......
......@@ -39,17 +39,13 @@ cc_test(
data = [
":localization_msf_local_map_test_data",
],
linkopts = [
"-lboost_filesystem",
"-lboost_system",
"-lboost_program_options",
],
deps = [
"//cyber",
"//modules/localization/msf/common/util:localization_msf_common_util",
"//modules/localization/msf/local_map/base_map:localization_msf_base_map",
"//modules/localization/msf/local_map/lossless_map:localization_msf_lossless_map",
"//modules/localization/msf/local_map/lossy_map:localization_msf_lossy_map",
"@boost",
"@gtest//:main",
],
)
......
......@@ -15,12 +15,13 @@
*****************************************************************************/
#pragma once
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <map>
#include <string>
#include <vector>
#include "boost/property_tree/ptree.hpp"
#include "boost/property_tree/xml_parser.hpp"
#include "modules/localization/msf/common/util/rect2d.h"
#include "modules/localization/msf/local_pyramid_map/base_map/base_map_fwd.h"
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include <boost/filesystem.hpp>
#include "boost/filesystem.hpp"
#include "gtest/gtest.h"
#include "modules/localization/msf/local_pyramid_map/pyramid_map/pyramid_map.h"
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include <boost/filesystem.hpp>
#include "boost/filesystem.hpp"
#include "gtest/gtest.h"
#include "modules/localization/msf/local_pyramid_map/pyramid_map/pyramid_map.h"
......
......@@ -14,8 +14,8 @@
* limitations under the License.
*****************************************************************************/
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include "boost/filesystem.hpp"
#include "boost/program_options.hpp"
#include "cyber/cyber.h"
#include "modules/localization/msf/local_tool/data_extraction/cyber_record_reader.h"
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*****************************************************************************/
#include <boost/program_options.hpp>
#include "boost/program_options.hpp"
#include "modules/localization/msf/local_tool/local_visualization/offline_visual/offline_local_visualizer.h"
......
......@@ -14,8 +14,9 @@
* limitations under the License.
*****************************************************************************/
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include "boost/filesystem.hpp"
#include "boost/program_options.hpp"
#include "modules/localization/msf/local_pyramid_map/pyramid_map/pyramid_map.h"
#include "modules/localization/msf/local_pyramid_map/pyramid_map/pyramid_map_config.h"
#include "modules/localization/msf/local_pyramid_map/pyramid_map/pyramid_map_matrix.h"
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*****************************************************************************/
#include <boost/program_options.hpp>
#include "boost/program_options.hpp"
#include "cyber/common/log.h"
#include "modules/localization/msf/local_tool/map_creation/poses_interpolation/poses_interpolation.h"
......
......@@ -6,9 +6,6 @@ cc_binary(
name = "ndt_map_creator",
srcs = ["ndt_map_creator.cc"],
linkopts = [
"-lboost_filesystem",
"-lboost_system",
"-lboost_program_options",
"-lopencv_core",
"-lopencv_highgui",
"-lopencv_imgproc",
......@@ -22,6 +19,7 @@ cc_binary(
"//modules/localization/msf/local_pyramid_map/base_map:localization_pyramid_map_base_map",
"//modules/localization/msf/local_pyramid_map/ndt_map:localization_pyramid_map_ndt_map",
"//modules/localization/msf/local_pyramid_map/ndt_map:localization_pyramid_map_ndt_map_pool",
"@boost",
"@eigen",
"@pcl",
],
......
......@@ -14,11 +14,13 @@
* limitations under the License.
*****************************************************************************/
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <boost/random.hpp>
#include <string>
#include <vector>
#include "boost/filesystem.hpp"
#include "boost/program_options.hpp"
#include "boost/random.hpp"
#include "modules/localization/msf/common/io/velodyne_utility.h"
#include "modules/localization/msf/common/util/extract_ground_plane.h"
#include "modules/localization/msf/common/util/system_utility.h"
......
......@@ -17,9 +17,10 @@
#include "modules/localization/ndt/ndt_locator/lidar_locator_ndt.h"
#include <pcl/io/pcd_io.h>
#include <boost/filesystem.hpp>
#include <iostream>
#include <sstream>
#include "boost/filesystem.hpp"
#include "gtest/gtest.h"
#include "cyber/common/log.h"
......
......@@ -5,12 +5,10 @@ package(default_visibility = ["//visibility:public"])
cc_binary(
name = "map_datachecker_client",
srcs = ["main.cc"],
linkopts = [
"-lboost_filesystem",
],
deps = [
":client",
":client_gflags",
"@boost",
"@com_github_grpc_grpc//:grpc++",
],
)
......@@ -22,15 +20,13 @@ cc_library(
"client.h",
"client_alignment.h",
],
linkopts = [
"-lboost_filesystem",
],
deps = [
":client_channel_checker",
":client_common",
":client_gflags",
":client_loops_check",
"//cyber",
"@boost",
"@com_github_grpc_grpc//:grpc++",
"@yaml_cpp//:yaml",
],
......@@ -40,15 +36,13 @@ cc_library(
name = "client_channel_checker",
srcs = ["client_channel_checker.cc"],
hdrs = ["client_channel_checker.h"],
linkopts = [
"-lboost_filesystem",
],
deps = [
":client_common",
":client_gflags",
":exception_handler",
"//cyber",
"//modules/map/tools/map_datachecker/proto:map_datachecker_grpc",
"@boost",
"@com_github_grpc_grpc//:grpc++",
"@yaml_cpp//:yaml",
],
......@@ -58,11 +52,9 @@ cc_library(
name = "client_common",
srcs = ["client_common.cc"],
hdrs = ["client_common.h"],
linkopts = [
"-lboost_filesystem",
],
deps = [
"//cyber",
"@boost",
"@com_github_grpc_grpc//:grpc++",
],
)
......@@ -80,15 +72,13 @@ cc_library(
name = "client_loops_check",
srcs = ["client_loops_check.cc"],
hdrs = ["client_loops_check.h"],
linkopts = [
"-lboost_filesystem",
],
deps = [
":client_common",
":client_gflags",
":exception_handler",
"//cyber",
"//modules/map/tools/map_datachecker/proto:map_datachecker_grpc",
"@boost",
"@com_github_grpc_grpc//:grpc++",
"@yaml_cpp//:yaml",
],
......
......@@ -16,11 +16,12 @@
#include "modules/map/tools/map_datachecker/client/client.h"
#include <yaml-cpp/yaml.h>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <string>
#include <vector>
#include "boost/algorithm/string.hpp"
#include "boost/filesystem.hpp"
#include "cyber/cyber.h"
#include "modules/map/tools/map_datachecker/client/client_alignment.h"
#include "modules/map/tools/map_datachecker/client/client_channel_checker.h"
......
......@@ -16,12 +16,12 @@
#include "modules/map/tools/map_datachecker/client/client_channel_checker.h"
#include <yaml-cpp/yaml.h>
#include <boost/filesystem.hpp>
#include <chrono>
#include <fstream>
#include <memory>
#include <string>
#include "boost/filesystem.hpp"
#include "grpc++/grpc++.h"
#include "cyber/cyber.h"
......
......@@ -15,15 +15,16 @@
*****************************************************************************/
#include "modules/map/tools/map_datachecker/client/client_common.h"
#include <boost/algorithm/string.hpp>
#include <fstream>
#include <string>
#include <vector>
#include "boost/algorithm/string.hpp"
#include "grpc++/grpc++.h"
namespace apollo {
namespace hdmap {
std::vector<std::string> GetFileLines(const std::string& path) {
std::ifstream file_handler(path);
std::string line;
......
......@@ -17,9 +17,9 @@
#include "modules/map/tools/map_datachecker/client/client_loops_check.h"
#include <yaml-cpp/yaml.h>
#include <boost/algorithm/string.hpp>
#include <utility>
#include "boost/algorithm/string.hpp"
#include "grpc++/grpc++.h"
namespace apollo {
......
......@@ -15,13 +15,11 @@ cc_library(
name = "channel_verify",
srcs = ["channel_verify.cc"],
hdrs = ["channel_verify.h"],
linkopts = [
"-lboost_filesystem",
],
deps = [
":common",
"//cyber",
"//modules/map/tools/map_datachecker/proto:map_datachecker_proto",
"@boost",
],
)
......@@ -41,11 +39,9 @@ cc_library(
name = "common",
srcs = ["common.cc"],
hdrs = ["common.h"],
linkopts = [
"-lboost_filesystem",
],
deps = [
"//cyber",
"@boost",
],
)
......@@ -69,12 +65,10 @@ cc_library(
name = "laps_checker",
srcs = ["laps_checker.cc"],
hdrs = ["laps_checker.h"],
linkopts = [
"-lboost_filesystem",
],
deps = [
":common",
"//modules/map/tools/map_datachecker/proto:map_datachecker_proto",
"@boost",
],
)
......
......@@ -15,11 +15,12 @@
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/channel_verify.h"
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/filesystem.hpp>
#include <unordered_map>
#include "boost/algorithm/string/classification.hpp"
#include "boost/algorithm/string/split.hpp"
#include "boost/filesystem.hpp"
#include "cyber/cyber.h"
#include "cyber/proto/record.pb.h"
#include "cyber/record/record_viewer.h"
......
......@@ -15,9 +15,6 @@
*****************************************************************************/
#pragma once
#include <boost/filesystem.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <cmath>
#include <ctime>
#include <iostream>
......@@ -27,6 +24,10 @@
#include <utility>
#include <vector>
#include "boost/filesystem.hpp"
#include "boost/property_tree/json_parser.hpp"
#include "boost/property_tree/ptree.hpp"
#include "cyber/cyber.h"
namespace apollo {
......
......@@ -15,15 +15,15 @@
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/laps_checker.h"
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <limits>
#include "boost/property_tree/json_parser.hpp"
#include "boost/property_tree/ptree.hpp"
namespace apollo {
namespace hdmap {
......
......@@ -15,12 +15,12 @@
*****************************************************************************/
#pragma once
#include <boost/circular_buffer.hpp>
#include <memory>
#include <string>
#include <vector>
#include "Eigen/Core"
#include "boost/circular_buffer.hpp"
#include "modules/perception/base/object_supplement.h"
#include "modules/perception/base/object_types.h"
......
......@@ -15,11 +15,12 @@
*****************************************************************************/
#pragma once
#include <boost/circular_buffer.hpp>
#include <memory>
#include <string>
#include <vector>
#include "boost/circular_buffer.hpp"
#include "modules/perception/base/box.h"
#include "modules/perception/base/object_types.h"
#include "modules/perception/base/point_cloud.h"
......
......@@ -15,12 +15,13 @@
*****************************************************************************/
#include "modules/perception/camera/lib/motion_service/motion_service.h"
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <limits>
#include <string>
#include <unordered_map>
#include "boost/algorithm/string.hpp"
#include "boost/format.hpp"
#include "cyber/common/log.h"
#include "modules/common/math/math_utils.h"
#include "modules/perception/common/sensor_manager/sensor_manager.h"
......
......@@ -15,10 +15,10 @@
*****************************************************************************/
#pragma once
#include <boost/circular_buffer.hpp>
#include <vector>
#include "boost/circular_buffer.hpp"
#include "modules/perception/base/object.h"
#include "modules/perception/camera/common/object_template_manager.h"
#include "modules/perception/camera/lib/obstacle/tracker/common/kalman_filter.h"
......
......@@ -15,12 +15,13 @@
*****************************************************************************/
#pragma once
#include <boost/circular_buffer.hpp>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "boost/circular_buffer.hpp"
#include "modules/perception/base/image_8u.h"
#include "modules/perception/base/traffic_light.h"
#include "modules/perception/camera/common/camera_frame.h"
......
......@@ -15,9 +15,9 @@
*****************************************************************************/
#include "modules/perception/camera/lib/traffic_light/tracker/semantic_decision.h"
#include <boost/bind.hpp>
#include <map>
#include "boost/bind.hpp"
#include "cyber/common/file.h"
namespace apollo {
......
......@@ -17,9 +17,10 @@
#include <npp.h>
#include <yaml-cpp/yaml.h>
#include <boost/filesystem.hpp>
#include <opencv2/opencv.hpp>
#include "boost/filesystem.hpp"
namespace apollo {
namespace perception {
namespace camera {
......
......@@ -15,13 +15,14 @@
*****************************************************************************/
#pragma once
#include <boost/filesystem.hpp>
#include <opencv2/opencv.hpp>
#include <algorithm>
#include <string>
#include <vector>
#include "boost/filesystem.hpp"
#include "modules/perception/common/i_lib/core/i_blas.h"
#include "modules/perception/common/i_lib/core/i_rand.h"
#include "modules/perception/common/i_lib/geometry/i_util.h"
......
......@@ -44,7 +44,6 @@ cc_binary(
"-lopencv_core",
"-lopencv_imgproc",
"-lopencv_highgui",
"-lboost_system",
],
linkstatic = False,
deps = [
......@@ -56,6 +55,7 @@ cc_binary(
"//modules/perception/camera/lib/lane/detector/darkSCNN:darkSCNN_lane_detector",
"//modules/perception/camera/lib/lane/postprocessor/darkSCNN:darkSCNN_lane_postprocessor",
"//modules/perception/lib/utils",
"@boost",
"@com_google_absl//absl/strings",
],
)
......
......@@ -15,13 +15,13 @@
*****************************************************************************/
#include "modules/perception/common/io/io_util.h"
#include <boost/filesystem.hpp>
#include "absl/strings/match.h"
#include "boost/filesystem.hpp"
#include "yaml-cpp/yaml.h"
#include "cyber/common/file.h"
#include "cyber/common/log.h"
#include "modules/perception/base/camera.h"
#include "yaml-cpp/yaml.h"
namespace apollo {
namespace perception {
......
......@@ -15,10 +15,11 @@
*****************************************************************************/
#pragma once
#include <boost/shared_ptr.hpp>
#include <map>
#include <string>
#include "boost/shared_ptr.hpp"
#include "modules/perception/base/blob.h"
namespace apollo {
......
......@@ -16,9 +16,9 @@
#include "modules/perception/inference/utils/cuda_util.h"
#include <boost/thread.hpp>
#include <cuda_runtime_api.h>
#include "boost/thread.hpp"
#include "cyber/common/log.h"
namespace apollo {
......
......@@ -16,10 +16,10 @@
#pragma once
#include <boost/format.hpp>
#include <vector>
#include "Eigen/Core"
#include "boost/format.hpp"
namespace apollo {
namespace perception {
......
......@@ -16,10 +16,11 @@
#include "modules/perception/onboard/component/fusion_camera_detection_component.h"
#include <yaml-cpp/yaml.h>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include "absl/strings/str_cat.h"
#include "boost/algorithm/string.hpp"
#include "boost/format.hpp"
#include "cyber/common/file.h"
#include "cyber/common/log.h"
#include "modules/common/math/math_utils.h"
......
......@@ -16,8 +16,6 @@
#include "modules/perception/onboard/component/lane_detection_component.h"
#include <yaml-cpp/yaml.h>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <algorithm>
#include <iomanip>
......@@ -28,6 +26,8 @@
#include "Eigen/Core"
#include "Eigen/Dense"
#include "absl/strings/str_cat.h"
#include "boost/algorithm/string.hpp"
#include "boost/format.hpp"
#include "cyber/common/file.h"
#include "cyber/common/log.h"
......
......@@ -15,7 +15,6 @@
*****************************************************************************/
#include "modules/perception/onboard/component/trafficlights_perception_component.h"
#include <boost/algorithm/string.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
......@@ -24,6 +23,8 @@
#include <utility>
#include "absl/strings/str_cat.h"
#include "boost/algorithm/string.hpp"
#include "cyber/common/file.h"
#include "cyber/common/log.h"
#include "modules/common/math/math_utils.h"
......
......@@ -35,7 +35,6 @@
#ifndef __ctpl_thread_pool_H__
#define __ctpl_thread_pool_H__
#include <boost/lockfree/queue.hpp>
#include <atomic>
#include <exception>
#include <functional>
......@@ -46,6 +45,8 @@
#include <utility>
#include <vector>
#include "boost/lockfree/queue.hpp"
#ifndef _ctplThreadPoolLength_
#define _ctplThreadPoolLength_ 100
#endif
......
......@@ -14,7 +14,8 @@
* limitations under the License.
*****************************************************************************/
#include <boost/program_options.hpp>
#include "boost/program_options.hpp"
#include "modules/perception/tool/benchmark/lidar/detection_evaluation.h"
int main(int argc, char** argv) {
......
......@@ -15,8 +15,6 @@
*****************************************************************************/
#pragma once
#include <boost/filesystem.hpp>
#include <algorithm>
#include <fstream>
#include <iostream>
......@@ -24,6 +22,8 @@
#include <string>
#include <vector>
#include "boost/filesystem.hpp"
#include "modules/perception/tool/benchmark/lidar/loader/string_compare.h"
namespace apollo {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册