Revert "Copy files for rapidjson build"
This reverts commit a5e9ba0cb035d35c26c6741071888e5b501601d0.
I don't think we should copy these headers to the out directory. Instead, we should create BUILD.gn files for tink (and/or modify the tink source) to work within the Fuchsia Build System.
Change-Id: I88349890ce15ea48b46c6a4a5df769b4e5c9c4a0
diff --git a/BUILD.gn b/BUILD.gn
index 50701f9..031ded3 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -28,7 +28,6 @@
config("rapidjson_config") {
include_dirs = [
".",
- "$target_gen_dir",
]
# rapidjson needs these defines to support C++11 features. These features
@@ -81,8 +80,4 @@
]
public_configs = [ ":rapidjson_config" ]
-
- deps = [
- "rapidjson:copyfiles",
- ]
}
diff --git a/rapidjson/BUILD.gn b/rapidjson/BUILD.gn
deleted file mode 100644
index a60d3e6..0000000
--- a/rapidjson/BUILD.gn
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 2018 The Fuchsia Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# We add this copy target in order to support //third_party/tink. Tink expects
-# include files for rapidjson to be under the directory include/rapidjson, so
-# simply adding an include directory to the cflags is not sufficient. See CB-181
-# for more details.
-copy("copyfiles") {
- sources = [
- "allocators.h",
- "cursorstreamwrapper.h",
- "document.h",
- "encodedstream.h",
- "encodings.h",
- "filereadstream.h",
- "filewritestream.h",
- "fwd.h",
- "istreamwrapper.h",
- "memorybuffer.h",
- "memorystream.h",
- "ostreamwrapper.h",
- "pointer.h",
- "prettywriter.h",
- "rapidjson.h",
- "reader.h",
- "schema.h",
- "stream.h",
- "stringbuffer.h",
- "writer.h",
- ]
- outputs = ["$target_gen_dir/../include/rapidjson/{{source_file_part}}"]
- deps = [
- "internal:copyfiles",
- "error:copyfiles",
- ]
-}
diff --git a/rapidjson/error/BUILD.gn b/rapidjson/error/BUILD.gn
deleted file mode 100644
index 6512a55..0000000
--- a/rapidjson/error/BUILD.gn
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright 2018 The Fuchsia Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-copy("copyfiles") {
- sources = [
- "en.h",
- "error.h",
- ]
- outputs = ["$target_gen_dir/../../include/rapidjson/error/{{source_file_part}}"]
-}
diff --git a/rapidjson/internal/BUILD.gn b/rapidjson/internal/BUILD.gn
deleted file mode 100644
index 20217ea..0000000
--- a/rapidjson/internal/BUILD.gn
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 2018 The Fuchsia Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-copy("copyfiles") {
- sources = [
- "biginteger.h",
- "diyfp.h",
- "dtoa.h",
- "ieee754.h",
- "itoa.h",
- "meta.h",
- "pow10.h",
- "regex.h",
- "stack.h",
- "strfunc.h",
- "strtod.h",
- "swap.h",
- ]
- outputs = ["$target_gen_dir/../../include/rapidjson/internal/{{source_file_part}}"]
-}