OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 | 9 |
10 'includes': [ | 10 'includes': [ |
11 'sync_android.gypi', | 11 'sync_android.gypi', |
12 'sync_tests.gypi', | 12 'sync_tests.gypi', |
13 ], | 13 ], |
14 | 14 |
15 'targets': [ | 15 'targets': [ |
16 # This target will add '-lsync_core' and '-lsync_proto' to the link line of | 16 # This target will add '-lsync_core' and '-lsync_proto' to the link line of |
17 # targets that depend on it. Anything that depends on sync code should | 17 # targets that depend on it. Anything that depends on sync code should |
18 # declare a dependency on this target. | 18 # declare a dependency on this target. |
19 { | 19 { |
20 'target_name': 'sync', | 20 'target_name': 'sync', |
21 'type': 'none', | 21 'type': 'none', |
22 'dependencies': [ | 22 'dependencies': [ |
23 'sync_core', | 23 'sync_core', |
24 'sync_proto', | 24 'sync_proto', |
25 'attachment_store_proto', | |
maniscalco
2014/10/21 21:41:03
sort order?
pavely
2014/10/24 20:42:55
Done.
| |
25 ], | 26 ], |
26 'export_dependent_settings': [ | 27 'export_dependent_settings': [ |
27 'sync_proto', | 28 'sync_proto', |
28 ], | 29 ], |
29 }, | 30 }, |
30 | 31 |
31 # Contains everything related to sync implementation that does not depend | 32 # Contains everything related to sync implementation that does not depend |
32 # on chrome/ or components/. Do not depend on this directly. Depend on | 33 # on chrome/ or components/. Do not depend on this directly. Depend on |
33 # the 'sync' target to get the sync protobufs, too. | 34 # the 'sync' target to get the sync protobufs, too. |
34 { | 35 { |
(...skipping 11 matching lines...) Expand all Loading... | |
46 '../base/base.gyp:base_i18n', | 47 '../base/base.gyp:base_i18n', |
47 '../crypto/crypto.gyp:crypto', | 48 '../crypto/crypto.gyp:crypto', |
48 '../google_apis/google_apis.gyp:google_apis', | 49 '../google_apis/google_apis.gyp:google_apis', |
49 '../net/net.gyp:net', | 50 '../net/net.gyp:net', |
50 '../sql/sql.gyp:sql', | 51 '../sql/sql.gyp:sql', |
51 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | 52 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
52 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | 53 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
53 '../third_party/zlib/zlib.gyp:zlib', | 54 '../third_party/zlib/zlib.gyp:zlib', |
54 '../url/url.gyp:url_lib', | 55 '../url/url.gyp:url_lib', |
55 'sync_proto', | 56 'sync_proto', |
57 'attachment_store_proto', | |
maniscalco
2014/10/21 21:41:03
sort order?
pavely
2014/10/24 20:42:55
Done.
| |
56 ], | 58 ], |
57 'export_dependent_settings': [ | 59 'export_dependent_settings': [ |
58 'sync_proto', | 60 'sync_proto', |
59 ], | 61 ], |
60 'sources': [ | 62 'sources': [ |
61 'api/attachments/attachment.cc', | 63 'api/attachments/attachment.cc', |
62 'api/attachments/attachment.h', | 64 'api/attachments/attachment.h', |
63 'api/attachments/attachment_id.cc', | 65 'api/attachments/attachment_id.cc', |
64 'api/attachments/attachment_id.h', | 66 'api/attachments/attachment_id.h', |
65 'api/attachments/attachment_store.cc', | 67 'api/attachments/attachment_store.cc', |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
511 'enable_wexit_time_desctructors': 1, | 513 'enable_wexit_time_desctructors': 1, |
512 'proto_in_dir': './protocol', | 514 'proto_in_dir': './protocol', |
513 'proto_out_dir': 'sync/protocol', | 515 'proto_out_dir': 'sync/protocol', |
514 'cc_generator_options': 'dllexport_decl=SYNC_PROTO_EXPORT:', | 516 'cc_generator_options': 'dllexport_decl=SYNC_PROTO_EXPORT:', |
515 'cc_include': 'sync/protocol/sync_proto_export.h', | 517 'cc_include': 'sync/protocol/sync_proto_export.h', |
516 }, | 518 }, |
517 'includes': [ | 519 'includes': [ |
518 '../build/protoc.gypi' | 520 '../build/protoc.gypi' |
519 ], | 521 ], |
520 }, | 522 }, |
523 { | |
524 # Contains attachment_store protobuf definitions. Do not depend on this | |
525 # directly. | |
526 # Depend on the 'sync' target to get the relevant C++ code, too. | |
527 # | |
528 # GN version: //sync/internal_api/attachments/proto | |
529 'target_name': 'attachment_store_proto', | |
530 'type': '<(component)', | |
531 'sources': [ | |
532 # NOTE: If you add a file to this list, also add it to | |
533 # sync/internal_api/attachments/proto/BUILD.gn | |
534 'internal_api/attachments/proto/attachment_store.proto', | |
535 ], | |
536 'variables': { | |
537 'enable_wexit_time_desctructors': 1, | |
maniscalco
2014/10/21 21:41:04
Can you explain to me what this is for. Is it nec
pavely
2014/10/24 20:42:55
It enables "exit time destructors" warning. Allows
maniscalco
2014/10/24 21:52:39
Ah! Cool. I agree that we want this. Good catch
| |
538 'proto_in_dir': './internal_api/attachments/proto', | |
maniscalco
2014/10/21 21:41:04
Is the leading ./ important? In other gyp files,
pavely
2014/10/24 20:42:55
Removed ./
| |
539 'proto_out_dir': 'sync/internal_api/attachments/proto', | |
540 }, | |
541 'includes': [ | |
542 '../build/protoc.gypi' | |
543 ], | |
544 }, | |
521 ], | 545 ], |
522 } | 546 } |
OLD | NEW |