123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- # Copyright 2022 The Chromium 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("//third_party/protobuf/proto_library.gni")
- # Local content analysis SDK.
- source_set("liblcasdk") {
- public = [ "src/browser/include/content_analysis/sdk/analysis_client.h" ]
- sources = [
- "src/browser/src/client_base.cc",
- "src/browser/src/client_base.h",
- ]
- if (is_win) {
- sources += [
- "src/browser/src/client_win.cc",
- "src/browser/src/client_win.h",
- "src/common/utils_win.cc",
- "src/common/utils_win.h",
- ]
- }
- if (is_linux) {
- sources += [
- "src/browser/src/client_posix.cc",
- "src/browser/src/client_posix.h",
- ]
- }
- if (is_mac) {
- sources += [
- "src/browser/src/client_mac.cc",
- "src/browser/src/client_mac.h",
- ]
- }
- include_dirs = [
- "src",
- "src/browser/include",
- "gen/third_party/content_analysis_sdk/src/proto",
- ]
- public_deps = [
- ":proto",
- "//third_party/protobuf:protobuf_lite",
- ]
- }
- source_set("libagentsdk") {
- sources = [
- "src/agent/include/content_analysis/sdk/analysis_agent.h",
- "src/agent/include/content_analysis/sdk/result_codes.h",
- "src/agent/src/agent_base.cc",
- "src/agent/src/agent_base.h",
- "src/agent/src/event_base.cc",
- "src/agent/src/event_base.h",
- ]
- if (is_win) {
- sources += [
- "src/agent/src/agent_utils_win.cc",
- "src/agent/src/agent_utils_win.h",
- "src/agent/src/agent_win.cc",
- "src/agent/src/agent_win.h",
- "src/agent/src/event_win.cc",
- "src/agent/src/event_win.h",
- "src/common/utils_win.cc",
- "src/common/utils_win.h",
- ]
- } else if (is_mac) {
- sources += [
- "src/agent/src/agent_mac.cc",
- "src/agent/src/agent_mac.h",
- "src/agent/src/event_mac.cc",
- "src/agent/src/event_mac.h",
- ]
- } else {
- sources += [
- "src/agent/src/agent_posix.cc",
- "src/agent/src/agent_posix.h",
- "src/agent/src/event_posix.cc",
- "src/agent/src/event_posix.h",
- ]
- }
- include_dirs = [
- "src",
- "src/agent/include",
- "gen/third_party/content_analysis_sdk/src/proto",
- ]
- public_deps = [
- ":proto",
- "//third_party/protobuf:protobuf_lite",
- ]
- }
- executable("lca_agent") {
- sources = [
- "src/demo/agent.cc",
- "src/demo/handler.h",
- ]
- include_dirs = [
- "src",
- "src/agent/include",
- "gen/third_party/content_analysis_sdk/src/proto",
- ]
- public_deps = [ ":libagentsdk" ]
- }
- proto_library("proto") {
- proto_in_dir = "src/proto"
- sources = [ "src/proto/content_analysis/sdk/analysis.proto" ]
- }
|