From 05a1c372db8ad7303c67254b975a614bdaa37e0d Mon Sep 17 00:00:00 2001
From: heppen <hepeng68@huawei.com>
Date: Fri, 17 Nov 2023 16:08:48 +0800
Subject: [PATCH] add build gn file of icu/jsoncpp/zlib

---
 .../third_party/icu/icu4c/BUILD.gn            | 19 +++++++++++++++++++
 .../compiler_gn/third_party/jsoncpp/BUILD.gn  | 11 +++++++++++
 .../compiler_gn/third_party/zlib/BUILD.gn     | 10 ++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 openeuler/compiler_gn/third_party/icu/icu4c/BUILD.gn
 create mode 100644 openeuler/compiler_gn/third_party/jsoncpp/BUILD.gn
 create mode 100644 openeuler/compiler_gn/third_party/zlib/BUILD.gn

diff --git a/openeuler/compiler_gn/third_party/icu/icu4c/BUILD.gn b/openeuler/compiler_gn/third_party/icu/icu4c/BUILD.gn
new file mode 100644
index 0000000..ac57abf
--- /dev/null
+++ b/openeuler/compiler_gn/third_party/icu/icu4c/BUILD.gn
@@ -0,0 +1,19 @@
+import("//build/ohos.gni")
+
+config("icuuc_config"){
+  include_dirs = [ "/usr/include/unicode" ]
+  libs = [ "icuuc" ]
+}
+
+group("shared_icuuc") {
+  public_configs = [ ":icuuc_config" ]
+}
+
+config("icui18n_config"){ 
+  include_dirs = [ "/usr/include/unicode" ]
+  libs = [ "icui18n" ]
+}
+
+ohos_shared_library("shared_icui18n") {
+   public_configs = [ ":icui18n_config" ] 
+}
diff --git a/openeuler/compiler_gn/third_party/jsoncpp/BUILD.gn b/openeuler/compiler_gn/third_party/jsoncpp/BUILD.gn
new file mode 100644
index 0000000..2264d70
--- /dev/null
+++ b/openeuler/compiler_gn/third_party/jsoncpp/BUILD.gn
@@ -0,0 +1,11 @@
+import("//build/ohos.gni")
+
+
+config("jsoncpp_config") {
+  include_dirs = [ "/usr/include/json" ]
+  libs = ["jsoncpp"]
+}
+
+group("jsoncpp") {
+  public_configs = [":jsoncpp_config"]
+}
diff --git a/openeuler/compiler_gn/third_party/zlib/BUILD.gn b/openeuler/compiler_gn/third_party/zlib/BUILD.gn
new file mode 100644
index 0000000..1837ef8
--- /dev/null
+++ b/openeuler/compiler_gn/third_party/zlib/BUILD.gn
@@ -0,0 +1,10 @@
+import("//build/ohos.gni")
+
+config("zlib_config") {
+  include_dirs = [ "/usr/include" ]
+  libs = [ "z" ]
+}
+
+group("shared_libz") {
+  public_configs = [":zlib_config" ]
+}
-- 
2.33.0

