blob: d64e26a4254f5eb89d2a7412ef6b489d46962b7d [file] [log] [blame]
# Copyright 2021 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.
import("//common-mk/pkg_config.gni")
group("all") {
deps = [
":libcros_camera_android_deps",
":libcros_camera_android_deps_pkg_config",
]
}
shared_library("libcros_camera_android_deps") {
sources = [
"//camera/android/libcamera_client/src/camera_metadata.cc",
"//camera/android/libcamera_metadata/src/camera_metadata.c",
]
include_dirs = [
"//camera/android/header_files/include/hardware/libhardware/include",
"//camera/android/header_files/include/system/core/include",
"//camera/android/libcamera_client/include",
"//camera/android/libcamera_metadata/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",
]
}
generate_pkg_config("libcros_camera_android_deps_pkg_config") {
name = "libcros_camera_android_deps"
description = "Android dependencies for cros-camera"
version = getenv("PV")
requires_private = []
requires = []
cflags = [
"-I/usr/include/android",
"-I/usr/include/android/hardware/libhardware/include",
"-I/usr/include/android/system/core/include",
]
libs = [ "-lcros_camera_android_deps" ]
}