Chromium Code Reviews| Index: remoting/remoting_host.gypi |
| diff --git a/remoting/remoting_host.gypi b/remoting/remoting_host.gypi |
| index f1f31d72b020224d02436ee016c43c271d27da0e..4824d3bc8bac6d9d8b5ffbac754ed4e224c4aaa6 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 os.path.exists(\'tools/internal/internal_mac-inl.h\') and 1 or 0")' |
|
Jamie
2014/12/13 02:12:16
A more Pythonic way of expressing this would be:
dcaiafa
2014/12/13 02:16:56
Done.
|
| + }, |
| + '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', |