Include jsonCPP headers via #include "json/json.h"
Don't use #include "include/json/json.h" which is unusual and therefore confusing This allows to remove the header symlinking done for the system lib version Closes #42303
This commit is contained in:
parent
6787ce30ef
commit
20a00a0328
tensorflow
core
platform/cloud
profiler
lite/tools
third_party/systemlibs
@ -30,7 +30,7 @@ limitations under the License.
|
||||
#include <io.h> // for _mktemp
|
||||
#endif
|
||||
#include "absl/base/macros.h"
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/core/lib/gtl/map_util.h"
|
||||
#include "tensorflow/core/platform/cloud/curl_http_request.h"
|
||||
#include "tensorflow/core/platform/cloud/file_block_cache.h"
|
||||
|
@ -24,7 +24,7 @@ limitations under the License.
|
||||
#include <utility>
|
||||
|
||||
#include "absl/strings/match.h"
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/core/platform/base64.h"
|
||||
#include "tensorflow/core/platform/env.h"
|
||||
#include "tensorflow/core/platform/errors.h"
|
||||
|
@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/core/platform/cloud/http_request.h"
|
||||
#include "tensorflow/core/platform/env.h"
|
||||
#include "tensorflow/core/platform/status.h"
|
||||
|
@ -21,7 +21,7 @@ limitations under the License.
|
||||
|
||||
#include "absl/strings/str_cat.h"
|
||||
#include "absl/strings/str_format.h"
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/core/platform/types.h"
|
||||
#include "tensorflow/core/profiler/protobuf/trace_events.pb.h"
|
||||
|
||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
||||
|
||||
#include "tensorflow/core/profiler/convert/trace_events_to_json.h"
|
||||
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/core/platform/protobuf.h"
|
||||
#include "tensorflow/core/platform/test.h"
|
||||
#include "tensorflow/core/profiler/protobuf/trace_events.pb.h"
|
||||
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||
#define TENSORFLOW_CORE_PROFILER_INTERNAL_TFPROF_TIMELINE_H_
|
||||
|
||||
#include "absl/strings/str_cat.h"
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/core/framework/graph.pb.h"
|
||||
#include "tensorflow/core/framework/step_stats.pb.h"
|
||||
#include "tensorflow/core/profiler/internal/tfprof_node_show.h"
|
||||
|
@ -20,7 +20,7 @@ limitations under the License.
|
||||
#include <vector>
|
||||
|
||||
#include "flatbuffers/flexbuffers.h" // from @flatbuffers
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/core/framework/node_def.pb.h"
|
||||
#include "tensorflow/core/framework/node_def_util.h"
|
||||
#include "tensorflow/core/framework/op.h"
|
||||
|
@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
==============================================================================*/
|
||||
#include "include/json/json.h"
|
||||
#include "json/json.h"
|
||||
#include "tensorflow/lite/tools/list_flex_ops.h"
|
||||
|
||||
namespace tflite {
|
||||
|
27
third_party/systemlibs/jsoncpp.BUILD
vendored
27
third_party/systemlibs/jsoncpp.BUILD
vendored
@ -5,35 +5,8 @@ filegroup(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
HEADERS = [
|
||||
"include/json/allocator.h",
|
||||
"include/json/assertions.h",
|
||||
"include/json/autolink.h",
|
||||
"include/json/config.h",
|
||||
"include/json/features.h",
|
||||
"include/json/forwards.h",
|
||||
"include/json/json.h",
|
||||
"include/json/reader.h",
|
||||
"include/json/value.h",
|
||||
"include/json/version.h",
|
||||
"include/json/writer.h",
|
||||
]
|
||||
|
||||
genrule(
|
||||
name = "link_headers",
|
||||
outs = HEADERS,
|
||||
cmd = """
|
||||
for i in $(OUTS); do
|
||||
i=$${i##*/}
|
||||
ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i
|
||||
done
|
||||
""",
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "jsoncpp",
|
||||
hdrs = HEADERS,
|
||||
includes = ["."],
|
||||
linkopts = ["-ljsoncpp"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user