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': [ |