From 5dce66d1349da2adf1111fe6e6301bcb1c0a889e Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Tue, 15 Jul 2014 19:20:06 +0000 Subject: components: Add GN build files for three more components. This patch adds BUILD files for: - enhanced_bookmarks - leveldb_proto - omaha_query_params BUG=None TEST=gn gen out/Debug_gn && ninja -C out/Debug_gn R=brettw@chromium.org TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/391603002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283234 0039d316-1c4b-4281-b951-d872f2087c98 --- components/BUILD.gn | 5 ++- components/bookmarks/browser/BUILD.gn | 12 +++---- components/enhanced_bookmarks/BUILD.gn | 45 +++++++++++++++++++++++++ components/enhanced_bookmarks/proto/BUILD.gn | 11 ++++++ components/leveldb_proto/BUILD.gn | 28 +++++++++++++++ components/leveldb_proto/testing/proto/BUILD.gn | 11 ++++++ components/omaha_query_params/BUILD.gn | 16 +++++++++ 7 files changed, 121 insertions(+), 7 deletions(-) create mode 100644 components/enhanced_bookmarks/BUILD.gn create mode 100644 components/enhanced_bookmarks/proto/BUILD.gn create mode 100644 components/leveldb_proto/BUILD.gn create mode 100644 components/leveldb_proto/testing/proto/BUILD.gn create mode 100644 components/omaha_query_params/BUILD.gn (limited to 'components') diff --git a/components/BUILD.gn b/components/BUILD.gn index b51f697..fa70043 100644 --- a/components/BUILD.gn +++ b/components/BUILD.gn @@ -21,16 +21,19 @@ group("all_components") { "//components/data_reduction_proxy/common", "//components/dom_distiller/core", "//components/domain_reliability", - "//components/favicon_base", + "//components/enhanced_bookmarks", "//components/favicon/core", + "//components/favicon_base", "//components/feedback", "//components/history/core/browser", "//components/history/core/common", "//components/history/core/test", "//components/json_schema", "//components/language_usage_metrics", + "//components/leveldb_proto", "//components/metrics", "//components/navigation_metrics", + "//components/omaha_query_params", "//components/onc", "//components/os_crypt", "//components/policy", diff --git a/components/bookmarks/browser/BUILD.gn b/components/bookmarks/browser/BUILD.gn index f6b4db2..f6c736c 100644 --- a/components/bookmarks/browser/BUILD.gn +++ b/components/bookmarks/browser/BUILD.gn @@ -39,18 +39,18 @@ source_set("browser") { deps = [ "//base", - "//net", - "//third_party/icu", - "//ui/base", - "//ui/gfx", - "//url", "//components/bookmarks/common", - "//components/strings", "//components/favicon_base", "//components/keyed_service/core", "//components/pref_registry", "//components/query_parser", "//components/startup_metric_utils", + "//components/strings", + "//net", + "//third_party/icu", + "//ui/base", + "//ui/gfx", + "//url", ] if (toolkit_views) { diff --git a/components/enhanced_bookmarks/BUILD.gn b/components/enhanced_bookmarks/BUILD.gn new file mode 100644 index 0000000..1cb9ef5 --- /dev/null +++ b/components/enhanced_bookmarks/BUILD.gn @@ -0,0 +1,45 @@ +# Copyright 2014 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. + +source_set("enhanced_bookmarks") { + sources = [ + "image_store.cc", + "image_store.h", + "image_store_util.cc", + "image_store_util.h", + "image_store_util_ios.mm", + "metadata_accessor.cc", + "metadata_accessor.h", + "persistent_image_store.cc", + "persistent_image_store.h", + ] + + deps = [ + "//base", + "//components/bookmarks/browser", + "//components/enhanced_bookmarks/proto", + "//sql", + "//ui/gfx", + "//url", + ] + + if (is_ios) { + sources -= [ + "image_store_util.cc", + ] + } +} + +source_set("test_support") { + sources = [ + "test_image_store.cc", + "test_image_store.h", + ] + + deps = [ + ":enhanced_bookmarks", + "//skia", + "//testing/gtest", + ] +} diff --git a/components/enhanced_bookmarks/proto/BUILD.gn b/components/enhanced_bookmarks/proto/BUILD.gn new file mode 100644 index 0000000..ddea52b --- /dev/null +++ b/components/enhanced_bookmarks/proto/BUILD.gn @@ -0,0 +1,11 @@ +# Copyright 2014 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") + +proto_library("proto") { + sources = [ + "metadata.proto", + ] +} diff --git a/components/leveldb_proto/BUILD.gn b/components/leveldb_proto/BUILD.gn new file mode 100644 index 0000000..9743af0 --- /dev/null +++ b/components/leveldb_proto/BUILD.gn @@ -0,0 +1,28 @@ +# Copyright 2014 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. + +source_set("leveldb_proto") { + sources = [ + "leveldb_database.cc", + "leveldb_database.h", + "proto_database.h", + "proto_database_impl.h", + ] + + deps = [ + "//base", + "//third_party/leveldatabase", + ] +} + +source_set("test_support") { + sources = [ + "testing/fake_db.h", + ] + + deps = [ + ":leveldb_proto", + "//components/leveldb_proto/testing/proto", + ] +} diff --git a/components/leveldb_proto/testing/proto/BUILD.gn b/components/leveldb_proto/testing/proto/BUILD.gn new file mode 100644 index 0000000..9f50367 --- /dev/null +++ b/components/leveldb_proto/testing/proto/BUILD.gn @@ -0,0 +1,11 @@ +# Copyright 2014 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") + +proto_library("proto") { + sources = [ + "test.proto", + ] +} diff --git a/components/omaha_query_params/BUILD.gn b/components/omaha_query_params/BUILD.gn new file mode 100644 index 0000000..7d2089a --- /dev/null +++ b/components/omaha_query_params/BUILD.gn @@ -0,0 +1,16 @@ +# Copyright 2014 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. + +source_set("omaha_query_params") { + sources = [ + "omaha_query_params.cc", + "omaha_query_params.h", + "omaha_query_params_delegate.cc", + "omaha_query_params_delegate.h", + ] + + deps = [ + "//base", + ] +} -- cgit v1.1