Index: sync/protocol/sync_proto.gyp |
diff --git a/sync/protocol/sync_proto.gyp b/sync/protocol/sync_proto.gyp |
index 295e329ed1b717d8860da186fe3fe00c3c9a9566..7ded2be84b42c73bb4fb7bf3319e067fced7415c 100644 |
--- a/sync/protocol/sync_proto.gyp |
+++ b/sync/protocol/sync_proto.gyp |
@@ -1,4 +1,4 @@ |
-# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+# Copyright 2012 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. |
@@ -10,6 +10,9 @@ |
{ |
'target_name': 'sync_proto', |
'type': 'static_library', |
+ 'defines': [ |
+ 'SYNC_IMPLEMENTATION', |
+ ], |
'sources': [ |
'app_notification_specifics.proto', |
'app_setting_specifics.proto', |
@@ -38,7 +41,15 @@ |
], |
'variables': { |
'proto_out_dir': 'sync/protocol', |
+ 'cc_generator_options': 'dllexport_decl=SYNC_EXPORT:', |
+ 'cc_include': 'sync_export.h', |
}, |
+ # Copies 'sync/base/sync_export.h' to 'cc_dir'. Required so that the |
+ # 'SYNC_EXPORT' macro can be auto-added to the sync proto headers. |
+ 'copies': [{ |
+ 'destination': '<(cc_dir)', |
+ '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.
|
+ }], |
'includes': ['../../build/protoc.gypi'], |
}, |
], |