camera: migrate cros-camera-libcamera_client to gn
BUG=chromium:767517
TEST=emerge-amd64-generic cros-camera-libcamera_client
Cq-Depend: chromium:1673711
Change-Id: If02b79743ec2c200c2d8821521fbf02124f98e22
Reviewed-on: https://chromium-review.googlesource.com/1673944
Tested-by: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Keigo Oka <oka@chromium.org>
diff --git a/camera/android/libcamera_client/BUILD.gn b/camera/android/libcamera_client/BUILD.gn
new file mode 100644
index 0000000..70d29e2
--- /dev/null
+++ b/camera/android/libcamera_client/BUILD.gn
@@ -0,0 +1,28 @@
+# Copyright 2019 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+group("all") {
+ deps = [
+ ":libcamera_client",
+ ]
+}
+
+shared_library("libcamera_client") {
+ sources = [
+ "src/camera_metadata.cc",
+ ]
+ include_dirs = [ "//camera/android/libcamera_client/include" ]
+ configs += [
+ "//camera/build:cros_camera_common",
+
+ # We don"t want to modify the Android sources to add the visibility
+ # attributes, so allow -fvisibility=default here.
+ # gnlint: disable=GnLintVisibilityFlags
+ "//common-mk:visibility_default",
+ ]
+ pkg_deps = [
+ "cros-camera-android-headers",
+ "libcamera_metadata",
+ ]
+}
diff --git a/camera/android/libcamera_client/libcamera_client.gyp b/camera/android/libcamera_client/libcamera_client.gyp
deleted file mode 100644
index f213cd4..0000000
--- a/camera/android/libcamera_client/libcamera_client.gyp
+++ /dev/null
@@ -1,29 +0,0 @@
-# gyplint: disable=GypLintVisibilityFlags
-{
- 'includes': [
- '../../build/cros-camera-common.gypi',
- ],
- 'target_defaults': {
- 'variables': {
- 'deps': [
- 'cros-camera-android-headers',
- 'libcamera_metadata',
- ],
- },
- },
- 'targets': [
- {
- 'target_name': 'libcamera_client',
- 'type': 'shared_library',
- 'cflags': [
- '-I<(src_root_path)/android/libcamera_client/include',
- # We don't want to modify the Android sources to add the visibility
- # attributes, so allow -fvisibility=default here.
- '-fvisibility=default',
- ],
- 'sources': [
- 'src/camera_metadata.cc',
- ],
- },
- ],
-}