Index: remoting/remoting_host.gypi |
diff --git a/remoting/remoting_host.gypi b/remoting/remoting_host.gypi |
index f1f31d72b020224d02436ee016c43c271d27da0e..129178597787e5ba721c24f9db6b757ac69f6422 100644 |
--- a/remoting/remoting_host.gypi |
+++ b/remoting/remoting_host.gypi |
@@ -133,6 +133,21 @@ |
'dependencies': [ |
'../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac', |
], |
+ 'variables': { |
+ # Include internal_mac-inl.h only if it exists. |
+ 'use_remoting_macosx_internal%': |
+ '<!(python -c "import os; print 1 if os.path.exists(\'tools/internal/internal_mac-inl.h\') else 0")' |
+ }, |
+ 'conditions': [ |
+ ['use_remoting_macosx_internal==1', { |
+ 'sources': [ |
+ 'internal/internal_mac-inl.h' |
+ ], |
+ 'defines': [ |
+ 'USE_REMOTING_MACOSX_INTERNAL' |
+ ] |
+ }] |
+ ], |
'link_settings': { |
'libraries': [ |
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |