| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # Build ALMOST everything provided by Skia; this should be the default target. | 5 # Build ALMOST everything provided by Skia; this should be the default target. |
| 6 # | 6 # |
| 7 # This omits the following targets that many developers won't want to build: | 7 # This omits the following targets that many developers won't want to build: |
| 8 # - debugger: this requires QT to build | 8 # - debugger: this requires QT to build |
| 9 # | 9 # |
| 10 { | 10 { |
| 11 'variables': { | 11 'variables': { |
| 12 'skia_skip_gui%': 0, | 12 'skia_skip_gui%': 0, |
| 13 }, | 13 }, |
| 14 'targets': [ | 14 'targets': [ |
| 15 { | 15 { |
| 16 'target_name': 'most', | 16 'target_name': 'most', |
| 17 'type': 'none', | 17 'type': 'none', |
| 18 'dependencies': [ | 18 'dependencies': [ |
| 19 # The minimal set of static libraries for basic Skia functionality. | 19 # The minimal set of static libraries for basic Skia functionality. |
| 20 'skia_lib.gyp:skia_lib', | 20 'skia_lib.gyp:skia_lib', |
| 21 | 21 |
| 22 'bench.gyp:*', | 22 'bench.gyp:*', |
| 23 'example.gyp:HelloWorld', | 23 'example.gyp:HelloWorld', |
| 24 'SampleApp.gyp:SampleApp', | 24 'SampleApp.gyp:SampleApp', |
| 25 'tools.gyp:tools', | 25 'tools.gyp:tools', |
| 26 'pathops_unittest.gyp:*', | 26 'pathops_unittest.gyp:*', |
| 27 'pathops_skpclip.gyp:*', | 27 'pathops_skpclip.gyp:*', |
| 28 'dm.gyp:dm', | 28 'dm.gyp:dm', |
| 29 'visualbench.gyp:visualbench', | |
| 30 'fuzz.gyp:fuzz', | 29 'fuzz.gyp:fuzz', |
| 31 'kilobench.gyp:kilobench', | |
| 32 'viewer.gyp:viewer', | 30 'viewer.gyp:viewer', |
| 33 ], | 31 ], |
| 34 'conditions': [ | 32 'conditions': [ |
| 35 [ 'skia_gpu == 0', { | 33 [ 'skia_gpu == 0', { |
| 36 'dependencies!': [ | 34 'dependencies!': [ |
| 37 'visualbench.gyp:visualbench', | |
| 38 'kilobench.gyp:kilobench', | |
| 39 'viewer.gyp:viewer', | 35 'viewer.gyp:viewer', |
| 40 ] | 36 ] |
| 41 }], | 37 }], |
| 42 [ 'skia_os != "android" and skia_os != "linux"', { | |
| 43 'dependencies!': [ | |
| 44 'kilobench.gyp:kilobench', | |
| 45 ], | |
| 46 }], | |
| 47 [ 'skia_gpu == 0 or skia_os == "android"', { | 38 [ 'skia_gpu == 0 or skia_os == "android"', { |
| 48 'dependencies!': [ | 39 'dependencies!': [ |
| 49 'example.gyp:HelloWorld', | 40 'example.gyp:HelloWorld', |
| 50 ], | 41 ], |
| 51 }], | 42 }], |
| 52 ['skia_os == "android" and skia_vulkan == 1', { | 43 ['skia_os == "android" and skia_vulkan == 1', { |
| 53 'dependencies': [ | 44 'dependencies': [ |
| 54 'android_system.gyp:Viewer_APK', | 45 'android_system.gyp:Viewer_APK', |
| 55 ], | 46 ], |
| 56 }], | 47 }], |
| 57 ['skia_os == "ios"', { | 48 ['skia_os == "ios"', { |
| 58 'dependencies!': [ | 49 'dependencies!': [ |
| 59 'example.gyp:HelloWorld', | 50 'example.gyp:HelloWorld', |
| 60 'SampleApp.gyp:SampleApp', | 51 'SampleApp.gyp:SampleApp', |
| 61 'visualbench.gyp:visualbench', | |
| 62 ], | 52 ], |
| 63 'dependencies': ['iOSShell.gyp:iOSShell' ], | 53 'dependencies': ['iOSShell.gyp:iOSShell' ], |
| 64 }], | 54 }], |
| 65 ['skia_os == "mac" or skia_os == "linux"', { | 55 ['skia_os == "mac" or skia_os == "linux"', { |
| 66 'dependencies': [ | 56 'dependencies': [ |
| 67 'nanomsg.gyp:*' , | 57 'nanomsg.gyp:*' , |
| 68 ], | 58 ], |
| 69 }], | 59 }], |
| 70 ['skia_os in ["linux", "mac", "win"]', { | 60 ['skia_os in ["linux", "mac", "win"]', { |
| 71 'dependencies': [ | 61 'dependencies': [ |
| 72 'skiaserve.gyp:skiaserve', | 62 'skiaserve.gyp:skiaserve', |
| 73 ], | 63 ], |
| 74 }], | 64 }], |
| 75 [ 'skia_vulkan == 0 or (skia_os != "win" and skia_os != "android")', { | 65 [ 'skia_vulkan == 0 or (skia_os != "win" and skia_os != "android")', { |
| 76 'dependencies!': [ | 66 'dependencies!': [ |
| 77 'viewer.gyp:viewer', | 67 'viewer.gyp:viewer', |
| 78 ], | 68 ], |
| 79 }], | 69 }], |
| 80 [ 'skia_skip_gui', | 70 [ 'skia_skip_gui', |
| 81 { | 71 { |
| 82 'dependencies!': [ | 72 'dependencies!': [ |
| 83 'example.gyp:HelloWorld', | 73 'example.gyp:HelloWorld', |
| 84 'SampleApp.gyp:SampleApp', | 74 'SampleApp.gyp:SampleApp', |
| 85 'visualbench.gyp:visualbench', | |
| 86 ] | 75 ] |
| 87 } | 76 } |
| 88 ], | 77 ], |
| 89 ], | 78 ], |
| 90 }, | 79 }, |
| 91 ], | 80 ], |
| 92 } | 81 } |
| OLD | NEW |