summaryrefslogtreecommitdiffstats
path: root/ios/web/ios_web_shell.gyp
blob: e4a5c649fe6c2cfe5818b74ac9825d772affd4d5 (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
# 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': [
    {
      # GN version: //ios/web/shell:ios_web_shell
      'target_name': 'ios_web_shell',
      'type': 'executable',
      'mac_bundle': 1,
      'include_dirs': [
        '../..',
      ],
      'dependencies': [
        'ios_web_shell_lib',
      ],
      'xcode_settings': {
        'INFOPLIST_FILE': 'shell/Info.plist',
        'STRIPFLAGS': '-S',
        'OTHER_LDFLAGS': [
          '-Xlinker -objc_abi_version',
          '-Xlinker 2',
          '-exported_symbols_list',
          '../../ios/web/ios_web_shell_exported_symbols_list'
        ]
      },
      'sources': [
        'shell/web_exe_main.mm',
      ],
    },
    {
      # GN version: //ios/web/shell:shell
      'target_name': 'ios_web_shell_lib',
      'type': 'static_library',
      'include_dirs': [
        '../..',
      ],
      'dependencies': [
        'ios_web.gyp:ios_web',
        'ios_web.gyp:ios_web_app',
        '../../base/base.gyp:base',
        '../../net/net.gyp:net',
        '../../net/net.gyp:net_extras',
        '../../ui/base/ui_base.gyp:ui_base',
      ],
      'export_dependent_settings': [
        'ios_web.gyp:ios_web',
        'ios_web.gyp:ios_web_app',
        '../../base/base.gyp:base',
        '../../net/net.gyp:net',
        '../../ui/base/ui_base.gyp:ui_base',
      ],
      'sources': [
        'shell/app_delegate.h',
        'shell/app_delegate.mm',
        'shell/shell_browser_state.h',
        'shell/shell_browser_state.mm',
        'shell/shell_main_delegate.h',
        'shell/shell_main_delegate.mm',
        'shell/shell_network_delegate.cc',
        'shell/shell_network_delegate.h',
        'shell/shell_url_request_context_getter.h',
        'shell/shell_url_request_context_getter.mm',
        'shell/shell_web_client.h',
        'shell/shell_web_client.mm',
        'shell/shell_web_main_parts.h',
        'shell/shell_web_main_parts.mm',
        'shell/view_controller.h',
        'shell/view_controller.mm',
      ],
      'xcode_settings': {
        'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
      },
      'link_settings': {
        'libraries': [
          '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
          '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
          '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
          '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
        ],
        'mac_bundle_resources': [
          'shell/Default.png',
          'shell/MainView.xib',
          'shell/textfield_background@2x.png',
          'shell/toolbar_back@2x.png',
          'shell/toolbar_forward@2x.png',
        ],
      },
    },
  ],
}