diff --git a/gyp/osx.gyp b/gyp/osx.gyp index 4a5accda6..18d5fe152 100644 --- a/gyp/osx.gyp +++ b/gyp/osx.gyp @@ -4,8 +4,11 @@ '../platform/osx/sdk/framework-osx.gypi', '../platform/osx/test/osxtest.gypi', '../platform/linux/mapboxgl-app.gypi', - '../test/test.gypi', - '../bin/render.gypi', - '../bin/offline.gypi', + ], + + 'conditions': [ + ['test', { 'includes': [ '../test/test.gypi' ] } ], + ['offline', { 'includes': [ '../bin/offline.gypi' ] } ], + ['render', { 'includes': [ '../bin/render.gypi' ] } ], ], }