summaryrefslogtreecommitdiffstats
path: root/ui/android/ui_android.gyp
blob: 1acc7f4062a3c47abb162d6c494c743bcc0ae0ee (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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Copyright 2013 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: //ui/android
      'target_name': 'ui_android',
      'type': '<(component)',
      'dependencies': [
        '../../cc/cc.gyp:cc',
        '../../base/base.gyp:base',
        '../../skia/skia.gyp:skia',
        '../gfx/gfx.gyp:gfx',
        '../gfx/gfx.gyp:gfx_geometry',
        'ui_android_jni_headers',
      ],
      'defines': [
        'UI_ANDROID_IMPLEMENTATION',
      ],
      'sources' : [
        'resources/resource_manager.cc',
        'resources/resource_manager.h',
        'resources/ui_resource_android.cc',
        'resources/ui_resource_android.h',
        'ui_android_export.h',
        'ui_android_jni_registrar.cc',
        'ui_android_jni_registrar.h',
      ],
    },
    {
      'target_name': 'ui_android_jni_headers',
      'type': 'none',
      'sources': [
        'java/src/org/chromium/ui/resources/ResourceManager.java',
      ],
      'variables': {
        'jni_gen_package': 'ui_android',
      },
      'includes': [ '../../build/jni_generator.gypi' ],
    },
    { 
      'target_name': 'android_resource_type_java',
      'type': 'none',
      'variables': {
        'source_file': 'resources/resource_manager.h',
      },
      'includes': [ '../../build/android/java_cpp_enum.gypi' ],
    },
    {
      'target_name': 'bitmap_format_java',
      'type': 'none',
      'variables': {
        'source_file': '../gfx/android/java_bitmap.h',
      },
      'includes': [ '../../build/android/java_cpp_enum.gypi' ],
    },
    {
      'target_name': 'page_transition_types_java',
      'type': 'none',
      'variables': {
        'source_file': '../base/page_transition_types.h',
      },
      'includes': [ '../../build/android/java_cpp_enum.gypi' ],
    },
    {
      'target_name': 'system_ui_resource_type_java',
      'type': 'none',
      'variables': {
        'source_file': '../base/android/system_ui_resource_type.h',
      },
      'includes': [ '../../build/android/java_cpp_enum.gypi' ],
    },
    {
      'target_name': 'window_open_disposition_java',
      'type': 'none',
      'variables': {
        'source_file': '../base/window_open_disposition.h',
      },
      'includes': [ '../../build/android/java_cpp_enum.gypi' ],
    },
    {
      'target_name': 'text_input_type_java',
      'type': 'none',
      'variables': {
        'source_file': '../base/ime/text_input_type.h',
      },
      'includes': [ '../../build/android/java_cpp_enum.gypi' ],
    },
    {
      'target_name': 'ui_java',
      'type': 'none',
      'variables': {
        'java_in_dir': '../../ui/android/java',
        'has_java_resources': 1,
        'R_package': 'org.chromium.ui',
        'R_package_relpath': 'org/chromium/ui',
      },
      'dependencies': [
        '../../base/base.gyp:base_java',
        'android_resource_type_java',
        'bitmap_format_java',
        'page_transition_types_java',
        'system_ui_resource_type_java',
        'ui_strings_grd',
        'window_open_disposition_java',
        'text_input_type_java',
      ],
      'includes': [ '../../build/java.gypi' ],
    },
    {
      'target_name': 'ui_javatests',
      'type': 'none',
      'variables': {
        'java_in_dir': '../../ui/android/javatests',
      },
      'dependencies': [
        '../../base/base.gyp:base_java_test_support',
        'ui_java',
      ],
      'includes': [ '../../build/java.gypi' ],
    },
    {
      'target_name': 'ui_strings_grd',
       # The android_webview/Android.mk file depends on this target directly.
      'android_unmangled_name': 1,
      'type': 'none',
      'variables': {
        'grd_file': '../../ui/android/java/strings/android_ui_strings.grd',
      },
      'includes': [
        '../../build/java_strings_grd.gypi',
      ],
    },
  ],
}