Adding static library for client Also fixing clock_linux for fuchsia Change-Id: I5679a187825c8c3539cd99651010871e4e0a620b
diff --git a/BUILD.gn b/BUILD.gn index f4bebc9..7793f40 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -12,6 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +config("client_config") { + visibility = [ ":*" ] + include_dirs = [ "." ] +} + executable("simple_server") { sources = [ "clock_linux.cc", @@ -32,3 +37,17 @@ "//third_party/glog", ] } + +static_library("client_lib") { + sources = [ + "client.cc", + "clock_linux.cc", + "protocol.cc", + ] + defines = [ "USE_GLOG" ] + public_configs = [ ":client_config" ] + deps = [ + "//third_party/boringssl", + "//third_party/glog", + ] +}
diff --git a/clock_linux.cc b/clock_linux.cc index cb86e8f..7b4ece6 100644 --- a/clock_linux.cc +++ b/clock_linux.cc
@@ -13,7 +13,7 @@ * limitations under the License. */ -#if defined(__linux) || defined (__fuchsia__) +#if defined(__linux) || defined (__Fuchsia__) #include <stdint.h> #include <stdlib.h>