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
|
# 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,
},
'includes': [
'sync_android.gypi',
'sync_tests.gypi',
],
'conditions': [
# Notes:
# 1) In static mode, the public 'sync' target has a target type of 'none',
# and is composed of the static library targets 'sync_api', 'sync_core',
# 'sync_internal_api', and 'sync_proto'.
# 2) In component mode, we build the public 'sync' target into a single DLL,
# which includes the contents of sync_api.gypi, sync_core.gypi,
# sync_internal_api.gypi, and sync_proto.gypi.
# 3) All external targets that depend on anything in sync/ must simply
# declare a dependency on 'sync.gyp:sync'
['component=="static_library"', {
'targets': [
# The public sync static library target.
{
'target_name': 'sync',
'type': 'none',
'dependencies': [
'sync_api',
'sync_core',
'sync_internal_api',
'sync_proto',
],
'export_dependent_settings': [
'sync_proto',
],
},
# The sync external API library.
{
'target_name': 'sync_api',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'includes': [
'sync_api.gypi',
],
'dependencies': [
'sync_internal_api',
'sync_proto',
],
},
# The core sync library.
{
'target_name': 'sync_core',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'includes': [
'sync_core.gypi',
],
'dependencies': [
'sync_proto',
],
'export_dependent_settings': [
'sync_proto',
],
},
# The sync internal API library.
{
'target_name': 'sync_internal_api',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'includes': [
'sync_internal_api.gypi',
],
'dependencies': [
'sync_core',
'sync_proto',
],
'export_dependent_settings': [
'sync_core',
'sync_proto',
],
},
# The sync protocol buffer library.
{
# GN version: //sync/protocol
'target_name': 'sync_proto',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'includes': [
'sync_proto.gypi',
],
},
],
},
{ # component != static_library
'targets': [
# The public sync shared library target.
{
'target_name': 'sync',
'type': 'shared_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'includes': [
'sync_api.gypi',
'sync_core.gypi',
'sync_internal_api.gypi',
'sync_proto.gypi',
],
},
],
}],
],
}
|