Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(CMAKE_EXE_LINKER_FLAGS "-Wl,--build-id=0x${GIT_COMMIT} -static-libstdc++ -st
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_BINARY_DIR}/source)
include_directories(${PROJECT_SOURCE_DIR}/source)
include_directories(${ENVOY_SPDLOG_INCLUDE_DIR})
include_directories(SYSTEM ${ENVOY_SPDLOG_INCLUDE_DIR})
include_directories(SYSTEM ${ENVOY_PROTOBUF_INCLUDE_DIR})

add_subdirectory(source)
Expand Down
13 changes: 5 additions & 8 deletions bazel/envoy_build_system.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def envoy_copts(repository):
"-Woverloaded-virtual",
"-Wold-style-cast",
"-std=c++0x",
"-includeprecompiled/precompiled.h",
] + select({
# Bazel adds an implicit -DNDEBUG for opt.
repository + "//bazel:opt_build": [],
Expand Down Expand Up @@ -75,7 +74,7 @@ def envoy_cc_library(name,
visibility = visibility,
deps = deps + [envoy_external_dep_path(dep) for dep in external_deps] + [
repository + "//include/envoy/common:base_includes",
repository + "//source/precompiled:precompiled_includes",
envoy_external_dep_path('spdlog'),
],
include_prefix = envoy_include_prefix(PACKAGE_NAME),
alwayslink = 1,
Expand Down Expand Up @@ -142,9 +141,7 @@ def envoy_cc_binary(name,
malloc = tcmalloc_external_dep(repository),
# See above comment on MD5 hash.
stamp = 0,
deps = deps + [
repository + "//source/precompiled:precompiled_includes",
],
deps = deps,
)

# Envoy C++ test targets should be specified with this function.
Expand Down Expand Up @@ -197,11 +194,11 @@ def envoy_cc_test_library(name,
srcs = srcs,
hdrs = hdrs,
data = data,
copts = envoy_copts(repository) + ["-includetest/precompiled/precompiled_test.h"],
copts = envoy_copts(repository),
testonly = 1,
deps = deps + [envoy_external_dep_path(dep) for dep in external_deps] + [
repository + "//source/precompiled:precompiled_includes",
repository + "//test/precompiled:precompiled_includes",
envoy_external_dep_path('googletest'),
repository + "//test/test_common:printers_includes",
],
tags = tags,
alwayslink = 1,
Expand Down
2 changes: 2 additions & 0 deletions bazel/gen_sh_test_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ done
cat << EOF
#include "test/test_common/environment.h"

#include "gtest/gtest.h"

TEST(ShTest, ${TEST_NAME}) {
TestEnvironment::exec({${EXEC_ARGS}});
}
Expand Down
3 changes: 3 additions & 0 deletions include/envoy/access_log/access_log.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <memory>
#include <string>

#include "envoy/common/pure.h"
#include "envoy/filesystem/filesystem.h"

Expand Down
3 changes: 3 additions & 0 deletions include/envoy/api/api.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <memory>
#include <string>

#include "envoy/event/dispatcher.h"
#include "envoy/filesystem/filesystem.h"
#include "envoy/thread/thread.h"
Expand Down
4 changes: 4 additions & 0 deletions include/envoy/buffer/buffer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include <cstdint>
#include <memory>
#include <string>

#include "envoy/common/pure.h"

namespace Buffer {
Expand Down
3 changes: 3 additions & 0 deletions include/envoy/common/exception.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <stdexcept>
#include <string>

/**
* Base class for all envoy exceptions.
*/
Expand Down
2 changes: 2 additions & 0 deletions include/envoy/common/time.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <chrono>

#include "envoy/common/pure.h"

/**
Expand Down
2 changes: 2 additions & 0 deletions include/envoy/event/deferred_deletable.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <memory>

namespace Event {

/**
Expand Down
4 changes: 4 additions & 0 deletions include/envoy/event/dispatcher.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include <cstdint>
#include <functional>
#include <memory>

#include "envoy/event/file_event.h"
#include "envoy/event/signal.h"
#include "envoy/event/timer.h"
Expand Down
4 changes: 4 additions & 0 deletions include/envoy/event/file_event.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include <cstdint>
#include <functional>
#include <memory>

#include "envoy/common/pure.h"

namespace Event {
Expand Down
3 changes: 3 additions & 0 deletions include/envoy/event/signal.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <functional>
#include <memory>

namespace Event {

/**
Expand Down
4 changes: 4 additions & 0 deletions include/envoy/event/timer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include <chrono>
#include <functional>
#include <memory>

#include "envoy/common/pure.h"

namespace Event {
Expand Down
5 changes: 5 additions & 0 deletions include/envoy/filesystem/filesystem.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <cstdint>
#include <functional>
#include <memory>
#include <string>

#include "envoy/common/pure.h"

namespace Filesystem {
Expand Down
5 changes: 5 additions & 0 deletions include/envoy/grpc/rpc_channel.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <chrono>
#include <cstdint>
#include <memory>
#include <string>

#include "envoy/common/optional.h"
#include "envoy/common/pure.h"
#include "envoy/http/header_map.h"
Expand Down
5 changes: 5 additions & 0 deletions include/envoy/http/access_log.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <chrono>
#include <cstdint>
#include <memory>
#include <string>

#include "envoy/common/optional.h"
#include "envoy/common/pure.h"
#include "envoy/common/time.h"
Expand Down
3 changes: 3 additions & 0 deletions include/envoy/http/async_client.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <chrono>
#include <memory>

#include "envoy/common/optional.h"
#include "envoy/http/message.h"

Expand Down
3 changes: 3 additions & 0 deletions include/envoy/http/codec.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <cstdint>
#include <memory>

#include "envoy/buffer/buffer.h"
#include "envoy/common/pure.h"
#include "envoy/http/header_map.h"
Expand Down
3 changes: 3 additions & 0 deletions include/envoy/http/conn_pool.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <functional>
#include <memory>

#include "envoy/common/pure.h"
#include "envoy/event/deferred_deletable.h"
#include "envoy/http/codec.h"
Expand Down
5 changes: 5 additions & 0 deletions include/envoy/http/filter.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <cstdint>
#include <functional>
#include <memory>
#include <string>

#include "envoy/event/dispatcher.h"
#include "envoy/http/access_log.h"
#include "envoy/http/codec.h"
Expand Down
7 changes: 7 additions & 0 deletions include/envoy/http/header_map.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#pragma once

#include <string.h>

#include <algorithm>
#include <cstdint>
#include <memory>
#include <string>

#include "envoy/common/pure.h"

namespace Http {
Expand Down
3 changes: 3 additions & 0 deletions include/envoy/http/message.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <memory>
#include <string>

#include "envoy/buffer/buffer.h"
#include "envoy/http/header_map.h"

Expand Down
2 changes: 2 additions & 0 deletions include/envoy/init/init.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <functional>

#include "envoy/common/pure.h"

namespace Init {
Expand Down
6 changes: 6 additions & 0 deletions include/envoy/json/json_object.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#pragma once

#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <vector>

#include "envoy/common/exception.h"
#include "envoy/common/pure.h"

Expand Down
2 changes: 2 additions & 0 deletions include/envoy/local_info/local_info.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <string>

#include "envoy/common/pure.h"
#include "envoy/network/address.h"

Expand Down
5 changes: 5 additions & 0 deletions include/envoy/mongo/bson.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <array>
#include <list>
#include <memory>
#include <string>

#include "envoy/buffer/buffer.h"
#include "envoy/common/pure.h"

Expand Down
5 changes: 5 additions & 0 deletions include/envoy/mongo/codec.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <list>
#include <memory>
#include <string>
#include <vector>

#include "envoy/mongo/bson.h"

/**
Expand Down
8 changes: 8 additions & 0 deletions include/envoy/network/address.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#pragma once

#include <sys/socket.h>
#include <sys/types.h>

#include <array>
#include <cstdint>
#include <memory>
#include <string>

#include "envoy/common/pure.h"

namespace Network {
Expand Down
4 changes: 4 additions & 0 deletions include/envoy/network/connection.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include <cstdint>
#include <memory>
#include <string>

#include "envoy/buffer/buffer.h"
#include "envoy/common/pure.h"
#include "envoy/event/deferred_deletable.h"
Expand Down
3 changes: 3 additions & 0 deletions include/envoy/network/connection_handler.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <cstdint>
#include <memory>

#include "envoy/network/connection.h"
#include "envoy/network/filter.h"
#include "envoy/network/listen_socket.h"
Expand Down
5 changes: 5 additions & 0 deletions include/envoy/network/dns.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <functional>
#include <list>
#include <memory>
#include <string>

#include "envoy/common/pure.h"
#include "envoy/network/address.h"

Expand Down
2 changes: 2 additions & 0 deletions include/envoy/network/filter.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <memory>

#include "envoy/buffer/buffer.h"
#include "envoy/upstream/host_description.h"

Expand Down
2 changes: 2 additions & 0 deletions include/envoy/network/listen_socket.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <memory>

#include "envoy/common/pure.h"
#include "envoy/network/address.h"

Expand Down
4 changes: 4 additions & 0 deletions include/envoy/network/listener.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include <cstdint>
#include <memory>
#include <string>

#include "envoy/common/exception.h"
#include "envoy/network/connection.h"

Expand Down
5 changes: 5 additions & 0 deletions include/envoy/ratelimit/ratelimit.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#pragma once

#include <chrono>
#include <memory>
#include <string>
#include <vector>

#include "envoy/common/optional.h"
#include "envoy/common/pure.h"
#include "envoy/tracing/context.h"
Expand Down
4 changes: 4 additions & 0 deletions include/envoy/redis/codec.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include <memory>
#include <string>
#include <vector>

#include "envoy/buffer/buffer.h"
#include "envoy/common/exception.h"

Expand Down
2 changes: 2 additions & 0 deletions include/envoy/redis/command_splitter.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <memory>

#include "envoy/common/pure.h"
#include "envoy/redis/codec.h"

Expand Down
Loading