Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1118)

Unified Diff: sync/protocol/sync_proto.gyp

Issue 11412211: [sync] Componentize sync: Part Final: Target 'sync' is now its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on r171683 (no code changes) Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'],
},
],

Powered by Google App Engine
This is Rietveld 408576698