OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'sync_proto', | 11 'target_name': 'sync_proto', |
12 'type': 'static_library', | 12 'type': 'static_library', |
13 'defines': [ | |
14 'SYNC_IMPLEMENTATION', | |
15 ], | |
13 'sources': [ | 16 'sources': [ |
14 'app_notification_specifics.proto', | 17 'app_notification_specifics.proto', |
15 'app_setting_specifics.proto', | 18 'app_setting_specifics.proto', |
16 'app_specifics.proto', | 19 'app_specifics.proto', |
17 'autofill_specifics.proto', | 20 'autofill_specifics.proto', |
18 'bookmark_specifics.proto', | 21 'bookmark_specifics.proto', |
19 'client_commands.proto', | 22 'client_commands.proto', |
20 'client_debug_info.proto', | 23 'client_debug_info.proto', |
21 'device_info_specifics.proto', | 24 'device_info_specifics.proto', |
22 'encryption.proto', | 25 'encryption.proto', |
23 'experiments_specifics.proto', | 26 'experiments_specifics.proto', |
24 'extension_setting_specifics.proto', | 27 'extension_setting_specifics.proto', |
25 'extension_specifics.proto', | 28 'extension_specifics.proto', |
26 'get_updates_caller_info.proto', | 29 'get_updates_caller_info.proto', |
27 'history_delete_directive_specifics.proto', | 30 'history_delete_directive_specifics.proto', |
28 'nigori_specifics.proto', | 31 'nigori_specifics.proto', |
29 'password_specifics.proto', | 32 'password_specifics.proto', |
30 'preference_specifics.proto', | 33 'preference_specifics.proto', |
31 'search_engine_specifics.proto', | 34 'search_engine_specifics.proto', |
32 'session_specifics.proto', | 35 'session_specifics.proto', |
33 'sync.proto', | 36 'sync.proto', |
34 'sync_enums.proto', | 37 'sync_enums.proto', |
35 'test.proto', | 38 'test.proto', |
36 'theme_specifics.proto', | 39 'theme_specifics.proto', |
37 'typed_url_specifics.proto', | 40 'typed_url_specifics.proto', |
38 ], | 41 ], |
39 'variables': { | 42 'variables': { |
40 'proto_out_dir': 'sync/protocol', | 43 'proto_out_dir': 'sync/protocol', |
44 'cc_generator_options': 'dllexport_decl=SYNC_EXPORT:', | |
45 'cc_include': 'sync_export.h', | |
41 }, | 46 }, |
47 # Copies 'sync/base/sync_export.h' to 'cc_dir'. Required so that the | |
48 # 'SYNC_EXPORT' macro can be auto-added to the sync proto headers. | |
49 'copies': [{ | |
50 'destination': '<(cc_dir)', | |
51 'files': ['../base/sync_export.h'], | |
Ryan Sleevi
2012/12/07 03:16:31
You should not be depending on cc_dir here - that
Raghu Simha
2012/12/07 06:08:33
Good call. Should be a lot cleaner now.
| |
52 }], | |
42 'includes': ['../../build/protoc.gypi'], | 53 'includes': ['../../build/protoc.gypi'], |
43 }, | 54 }, |
44 ], | 55 ], |
45 } | 56 } |
OLD | NEW |