summaryrefslogtreecommitdiffstats
path: root/ios/web/ios_web.gyp
blob: 0f5d4d3df088d72bfcb775b45d624bf5da1b87e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# 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.

{
  'variables': {
    'chromium_code': 1,
   },
  'targets': [
    {
      'target_name': 'ios_web',
      'type': 'static_library',
      'include_dirs': [
        '../..',
      ],
      'dependencies': [
        'webp_decoder',
        '../../base/base.gyp:base',
        '../../content/content.gyp:content_browser',
        '../../net/net.gyp:net',
        '../../ui/base/ui_base.gyp:ui_base',
        '../../ui/gfx/gfx.gyp:gfx',
      ],
      'sources': [
        'browser_state.cc',
        'load_committed_details.cc',
        'navigation/navigation_item_impl.h',
        'navigation/navigation_item_impl.mm',
        'public/browser_state.h',
        'public/favicon_status.cc',
        'public/favicon_status.h',
        'public/load_committed_details.h',
        'public/navigation_item.h',
        'public/referrer.h',
        'public/security_style.h',
        'public/ssl_status.cc',
        'public/ssl_status.h',
        'public/string_util.h',
        'public/user_agent.h',
        'public/user_agent.mm',
        'public/web_state/js/crw_js_base_manager.h',
        'public/web_state/js/crw_js_injection_evaluator.h',
        'public/web_state/js/crw_js_injection_manager.h',
        'public/web_state/js/crw_js_injection_receiver.h',
        'public/web_state/js/crw_js_message_manager.h',
        'public/web_state/web_state_observer.h',
        'public/web_thread.h',
        'string_util.cc',
        'web_state/js/crw_js_base_manager.mm',
        'web_state/js/crw_js_common_manager.h',
        'web_state/js/crw_js_common_manager.mm',
        'web_state/js/crw_js_injection_manager.mm',
        'web_state/js/crw_js_injection_receiver.mm',
        'web_state/js/crw_js_message_dynamic_manager.h',
        'web_state/js/crw_js_message_dynamic_manager.mm',
        'web_state/js/crw_js_message_manager.mm',
        'web_state/web_state_observer.cc',
        'web_thread.cc',
        'web_thread_impl.cc',
        'web_thread_impl.h',
        'web_view_util.h',
        'web_view_util.mm',
      ],
    },
    {
      'target_name': 'js_resources',
      'type': 'none',
      'sources': [
        'web_state/js/resources/base.js',
        'web_state/js/resources/common.js',
        'web_state/js/resources/message.js',
        'web_state/js/resources/message_dynamic_ui.js',
        'web_state/js/resources/message_dynamic_wk.js',
      ],
      'link_settings': {
        'mac_bundle_resources': [
          '<(SHARED_INTERMEDIATE_DIR)/base.js',
          '<(SHARED_INTERMEDIATE_DIR)/common.js',
          '<(SHARED_INTERMEDIATE_DIR)/message.js',
          '<(SHARED_INTERMEDIATE_DIR)/message_dynamic_ui.js',
          '<(SHARED_INTERMEDIATE_DIR)/message_dynamic_wk.js',
        ],
      },
      'includes': [
        'js_compile.gypi'
      ],
    },
    {
      'target_name': 'webp_decoder',
      'type': 'static_library',
      'include_dirs': [
        '../..',
      ],
      'dependencies': [
        '../../base/base.gyp:base',
        '../../third_party/libwebp/libwebp.gyp:libwebp_dec',
      ],
      'sources': [
        'public/webp_decoder.h',
        'public/webp_decoder.mm',
      ],
    },
    {
      'target_name': 'test_support_ios_web',
      'type': 'static_library',
      'dependencies': [
        '../../content/content_shell_and_tests.gyp:test_support_content',
        'ios_web',
      ],
      'include_dirs': [
        '../..',
      ],
      'sources': [
        'public/test/crw_test_js_injection_receiver.h',
        'public/test/crw_test_js_injection_receiver.mm',
        'public/test/test_browser_state.cc',
        'public/test/test_browser_state.h',
        'public/test/test_web_state.cc',
        'public/test/test_web_state.h',
        'public/test/test_web_thread.h',
        'test/test_web_thread.cc',
      ],
    },
  ],
}