summaryrefslogtreecommitdiffstats
path: root/sync/sync_android.gypi
blob: 5ea0f3a346c3abc67afc5db3a3c408b55838dcef (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
# 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.

{
  'conditions': [
    ['OS == "android"', {
      'targets': [
        {
          # GN: //sync/android:sync_java
          'target_name': 'sync_java',
          'type': 'none',
          'variables': {
            'java_in_dir': '../sync/android/java',
          },
          'dependencies': [
            'model_type_java',
            'stop_source_java',
            'sync_jni_headers',
            '../base/base.gyp:base_java',
            '../net/net.gyp:net_java',
            '../third_party/android_tools/android_tools.gyp:google_play_services_javalib',
            '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib',
            '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib',
          ],
          'includes': [ '../build/java.gypi' ],
        },
        {
          'target_name': 'sync_jni_headers',
          'type': 'none',
          'sources': [
            'android/java/src/org/chromium/sync/ModelTypeHelper.java',
          ],
          'variables': {
            'jni_gen_package': 'sync',
          },
          'includes': [ '../build/jni_generator.gypi' ],
        },
        # GN: //sync/android:java_enums
        {
          'target_name': 'model_type_java',
          'type': 'none',
          'variables': {
            'source_file': 'internal_api/public/base/model_type.h',
          },
          'includes': [ '../build/android/java_cpp_enum.gypi' ],
        },
        {
          'target_name': 'stop_source_java',
          'type': 'none',
          'variables': {
            'source_file': 'internal_api/public/base/stop_source.h',
          },
          'includes': [ '../build/android/java_cpp_enum.gypi' ],
        },
      ],
    }],
  ],
}