Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: components/subresource_filter.gypi

Issue 2140623002: Data structures for Safe Browsing subresource filtering rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/subresource_filter/core/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/subresource_filter.gypi
diff --git a/components/subresource_filter.gypi b/components/subresource_filter.gypi
index 6fc89918897054259d99fbe592a7a5828bc9ca92..b864159beda53990a619c40d0837378584d03a63 100644
--- a/components/subresource_filter.gypi
+++ b/components/subresource_filter.gypi
@@ -1,10 +1,10 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
+# Copyright 2016 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.
{
'targets': [
- {
+ {
# GN version: //components/subresource_filter/core/browser
'target_name': 'subresource_filter_core_browser',
'type': 'static_library',
@@ -53,6 +53,8 @@
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
+ 'subresource_filter_core_common_ruleset_flatbuffer',
+ 'subresource_filter_core_common_ruleset_proto',
],
'include_dirs': [
'..',
@@ -71,6 +73,40 @@
'subresource_filter/core/common/string_splitter.h',
'subresource_filter/core/common/uint64_hasher.h',
],
+ 'export_dependent_settings': [
+ 'subresource_filter_core_common_ruleset_flatbuffer',
+ 'subresource_filter_core_common_ruleset_proto',
+ ],
+ },
+ {
+ # GN version: //components/subresource_filter/core/common/flat:flatbuffer
+ 'target_name': 'subresource_filter_core_common_ruleset_flatbuffer',
+ 'type': 'none',
+ 'sources': [
+ # Note: sources list duplicated in GN build.
+ 'subresource_filter/core/common/flat/rules.fbs',
+ ],
+ 'variables': {
+ 'flatc_out_dir': 'components/subresource_filter/core/common/flat'
+ },
+ 'includes': ['../third_party/flatbuffers/flatc.gypi'],
+ 'dependencies': [
+ '<(DEPTH)/third_party/flatbuffers/flatbuffers.gyp:flatbuffers',
+ ]
+ },
+ {
+ # GN version: //components/subresource_filter/core/common/proto:proto
+ 'target_name': 'subresource_filter_core_common_ruleset_proto',
+ 'type': 'static_library',
+ 'sources': [
+ # Note: sources list duplicated in GN build.
+ 'subresource_filter/core/common/proto/rules.proto',
+ ],
+ 'variables': {
+ 'proto_in_dir': 'subresource_filter/core/common/proto',
+ 'proto_out_dir': 'components/subresource_filter/core/common/proto',
+ },
+ 'includes': [ '../build/protoc.gypi' ],
},
],
'conditions': [
« no previous file with comments | « no previous file | components/subresource_filter/core/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698