summaryrefslogtreecommitdiffstats
path: root/components/dom_distiller.gypi
diff options
context:
space:
mode:
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-23 04:14:45 +0000
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-23 04:14:45 +0000
commit0664b5ab48235d28d61918085c4e7e5cf17251e8 (patch)
tree0ef50367e6a7e9ac55dfc34c8d607712b80b31b4 /components/dom_distiller.gypi
parente6ce1afe33d374de89565720dedec0a0109bedd2 (diff)
downloadchromium_src-0664b5ab48235d28d61918085c4e7e5cf17251e8.zip
chromium_src-0664b5ab48235d28d61918085c4e7e5cf17251e8.tar.gz
chromium_src-0664b5ab48235d28d61918085c4e7e5cf17251e8.tar.bz2
Add database for Dom Distiller articles
For the dom distiller, there is a local list of article metadata. This adds a skeleton proto for the dom distiller articles, and provides the implementation of a database for persisting the entries. Underlying database is provided by leveldb. Also adds unit test for both the asynchronous communication with the underlying database and tests for the underlying usage of leveldb. BUG=295840,288015 TBR=joi@chromium.org Review URL: https://chromiumcodereview.appspot.com/22799030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r--components/dom_distiller.gypi43
1 files changed, 31 insertions, 12 deletions
diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi
index 82d31af..d4f9f44 100644
--- a/components/dom_distiller.gypi
+++ b/components/dom_distiller.gypi
@@ -5,17 +5,6 @@
{
'targets': [
{
- 'target_name': 'dom_distiller_core',
- 'type': 'static_library',
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'dom_distiller/core/dom_distiller_constants.cc',
- 'dom_distiller/core/dom_distiller_constants.h',
- ],
- },
- {
'target_name': 'dom_distiller_webui',
'type': 'static_library',
'dependencies': [
@@ -23,7 +12,6 @@
'dom_distiller_core',
'dom_distiller_resources',
'../base/base.gyp:base',
- '../base/base.gyp:base',
'../content/content.gyp:content_browser',
'../skia/skia.gyp:skia',
],
@@ -54,5 +42,36 @@
],
'includes': [ '../build/grit_target.gypi' ],
},
+ {
+ 'target_name': 'dom_distiller_core',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'dom_distiller_core_proto',
+ '../base/base.gyp:base',
+ '../third_party/protobuf/protobuf.gyp:protobuf_lite',
+ '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'dom_distiller/core/dom_distiller_constants.cc',
+ 'dom_distiller/core/dom_distiller_constants.h',
+ 'dom_distiller/core/dom_distiller_database.cc',
+ 'dom_distiller/core/dom_distiller_database.h',
+ ],
+ },
+ {
+ 'target_name': 'dom_distiller_core_proto',
+ 'type': 'static_library',
+ 'sources': [
+ 'dom_distiller/core/proto/article_entry.proto',
+ ],
+ 'variables': {
+ 'proto_in_dir': 'dom_distiller/core/proto',
+ 'proto_out_dir': 'components/dom_distiller/core/proto',
+ },
+ 'includes': [ '../build/protoc.gypi', ],
+ },
],
}