fgorski | d0e3446c | 2015-06-03 00:28:20 | [diff] [blame] | 1 | # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'targets': [ |
| 7 | { |
| 8 | # GN: //components/offline_pages:offline_pages |
| 9 | 'target_name': 'offline_pages', |
| 10 | 'type': 'static_library', |
| 11 | 'include_dirs': [ |
| 12 | '..', |
| 13 | ], |
| 14 | 'dependencies': [ |
| 15 | '../base/base.gyp:base', |
| 16 | '../net/net.gyp:net', |
| 17 | '../url/url.gyp:url_lib', |
abhishek.a21 | faf6421 | 2015-07-22 09:11:44 | [diff] [blame] | 18 | '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
| 19 | 'components.gyp:leveldb_proto', |
fgorski | d0e3446c | 2015-06-03 00:28:20 | [diff] [blame] | 20 | 'keyed_service_core', |
abhishek.a21 | faf6421 | 2015-07-22 09:11:44 | [diff] [blame] | 21 | 'offline_pages_proto', |
fgorski | d0e3446c | 2015-06-03 00:28:20 | [diff] [blame] | 22 | ], |
| 23 | 'sources': [ |
fgorski | d1c862af | 2015-06-16 15:36:25 | [diff] [blame] | 24 | 'offline_pages/offline_page_archiver.h', |
jianli | f2c2a0d2 | 2015-08-04 01:06:46 | [diff] [blame] | 25 | 'offline_pages/offline_page_feature.cc', |
| 26 | 'offline_pages/offline_page_feature.h', |
fgorski | d0e3446c | 2015-06-03 00:28:20 | [diff] [blame] | 27 | 'offline_pages/offline_page_item.cc', |
| 28 | 'offline_pages/offline_page_item.h', |
| 29 | 'offline_pages/offline_page_model.cc', |
| 30 | 'offline_pages/offline_page_model.h', |
fgorski | 2475986c | 2015-06-10 07:45:04 | [diff] [blame] | 31 | 'offline_pages/offline_page_metadata_store.cc', |
| 32 | 'offline_pages/offline_page_metadata_store.h', |
abhishek.a21 | faf6421 | 2015-07-22 09:11:44 | [diff] [blame] | 33 | 'offline_pages/offline_page_metadata_store_impl.cc', |
| 34 | 'offline_pages/offline_page_metadata_store_impl.h', |
jianli | b15d06f | 2015-08-05 20:45:08 | [diff] [blame] | 35 | 'offline_pages/offline_page_switches.cc', |
| 36 | 'offline_pages/offline_page_switches.h', |
fgorski | d0e3446c | 2015-06-03 00:28:20 | [diff] [blame] | 37 | ], |
| 38 | }, |
abhishek.a21 | faf6421 | 2015-07-22 09:11:44 | [diff] [blame] | 39 | { |
fgorski | 38601ab | 2015-12-08 23:30:07 | [diff] [blame] | 40 | # GN version: //components/offline_pages:test_support |
| 41 | 'target_name': 'offline_pages_test_support', |
| 42 | 'type': 'static_library', |
| 43 | 'dependencies': [ |
| 44 | '../base/base.gyp:base', |
| 45 | '../testing/gtest.gyp:gtest', |
| 46 | '../url/url.gyp:url_lib', |
| 47 | 'offline_pages', |
| 48 | ], |
| 49 | 'sources': [ |
| 50 | 'offline_pages/offline_page_test_archiver.h', |
| 51 | 'offline_pages/offline_page_test_archiver.cc', |
| 52 | 'offline_pages/offline_page_test_store.h', |
| 53 | 'offline_pages/offline_page_test_store.cc', |
| 54 | ], |
| 55 | }, |
| 56 | { |
abhishek.a21 | faf6421 | 2015-07-22 09:11:44 | [diff] [blame] | 57 | # Protobuf compiler / generator for the offline page item protocol buffer. |
| 58 | # GN version: //components/offline_pages/proto |
| 59 | 'target_name': 'offline_pages_proto', |
| 60 | 'type': 'static_library', |
| 61 | 'sources': [ 'offline_pages/proto/offline_pages.proto', ], |
| 62 | 'variables': { |
| 63 | 'proto_in_dir': 'offline_pages/proto', |
| 64 | 'proto_out_dir': 'components/offline_pages/proto', |
| 65 | }, |
| 66 | 'includes': [ '../build/protoc.gypi', ], |
| 67 | }, |
fgorski | d0e3446c | 2015-06-03 00:28:20 | [diff] [blame] | 68 | ], |
fgorski | 6cc8334 | 2015-07-22 14:29:52 | [diff] [blame] | 69 | 'conditions': [ |
| 70 | ['OS == "android"', { |
| 71 | 'targets': [ |
| 72 | { |
jianli | 33ced7a | 2016-01-20 04:11:07 | [diff] [blame] | 73 | # GN: //components/offline_pages:offline_page_feature_enums_java |
| 74 | 'target_name': 'offline_page_feature_enums_java', |
| 75 | 'type': 'none', |
| 76 | 'variables': { |
| 77 | 'source_file': 'offline_pages/offline_page_feature.h', |
| 78 | }, |
| 79 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| 80 | }, |
| 81 | { |
| 82 | # GN: //components/offline_pages:offline_page_model_enums_java |
| 83 | 'target_name': 'offline_page_model_enums_java', |
fgorski | 6cc8334 | 2015-07-22 14:29:52 | [diff] [blame] | 84 | 'type': 'none', |
| 85 | 'variables': { |
| 86 | 'source_file': 'offline_pages/offline_page_model.h', |
| 87 | }, |
| 88 | 'includes': [ '../build/android/java_cpp_enum.gypi' ], |
| 89 | }, |
| 90 | ], |
| 91 | }], |
| 92 | ], |
fgorski | d0e3446c | 2015-06-03 00:28:20 | [diff] [blame] | 93 | } |