| 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 # GYP file to build various tools. | 5 # GYP file to build various tools. |
| 6 # | 6 # |
| 7 # To build on Linux: | 7 # To build on Linux: |
| 8 # ./gyp_skia tools.gyp && make tools | 8 # ./gyp_skia tools.gyp && make tools |
| 9 # | 9 # |
| 10 { | 10 { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 'flags.gyp:flags', | 125 'flags.gyp:flags', |
| 126 'skia_lib.gyp:skia_lib', | 126 'skia_lib.gyp:skia_lib', |
| 127 ], | 127 ], |
| 128 'direct_dependent_settings': { | 128 'direct_dependent_settings': { |
| 129 'include_dirs': [ '../tools', ], | 129 'include_dirs': [ '../tools', ], |
| 130 }, | 130 }, |
| 131 }, | 131 }, |
| 132 { | 132 { |
| 133 'target_name' : 'timer', | 133 'target_name' : 'timer', |
| 134 'type': 'static_library', | 134 'type': 'static_library', |
| 135 'sources': [ | 135 'sources': [ '../tools/timer/Timer.cpp' ], |
| 136 '../tools/timer/Timer.cpp', | |
| 137 '../tools/timer/TimerData.cpp', | |
| 138 ], | |
| 139 'include_dirs': [ | |
| 140 '../include/private', | |
| 141 '../src/core', | |
| 142 '../src/gpu', | |
| 143 ], | |
| 144 'direct_dependent_settings': { | 136 'direct_dependent_settings': { |
| 145 'include_dirs': ['../tools/timer'], | 137 'include_dirs': ['../tools/timer'], |
| 146 }, | 138 }, |
| 147 'dependencies': [ | 139 'dependencies': [ 'skia_lib.gyp:skia_lib' ], |
| 148 'skia_lib.gyp:skia_lib', | |
| 149 'jsoncpp.gyp:jsoncpp', | |
| 150 ], | |
| 151 'conditions': [ | |
| 152 ['skia_gpu == 1', { | |
| 153 'sources': [ '../tools/timer/GpuTimer.cpp' ], | |
| 154 }], | |
| 155 [ 'skia_os in ["mac", "ios"]', { | |
| 156 'sources': [ '../tools/timer/SysTimer_mach.cpp' ], | |
| 157 }], | |
| 158 [ 'skia_os == "win"', { | |
| 159 'sources': [ '../tools/timer/SysTimer_windows.cpp' ], | |
| 160 }], | |
| 161 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chr
omeos"]', { | |
| 162 'sources': [ '../tools/timer/SysTimer_posix.cpp' ], | |
| 163 }], | |
| 164 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | |
| 165 'link_settings': { 'libraries': [ '-lrt' ] }, | |
| 166 }], | |
| 167 ], | |
| 168 }, | 140 }, |
| 169 { | 141 { |
| 170 'target_name': 'skdiff', | 142 'target_name': 'skdiff', |
| 171 'type': 'executable', | 143 'type': 'executable', |
| 172 'sources': [ | 144 'sources': [ |
| 173 '../tools/skdiff.cpp', | 145 '../tools/skdiff.cpp', |
| 174 '../tools/skdiff.h', | 146 '../tools/skdiff.h', |
| 175 '../tools/skdiff_html.cpp', | 147 '../tools/skdiff_html.cpp', |
| 176 '../tools/skdiff_html.h', | 148 '../tools/skdiff_html.h', |
| 177 '../tools/skdiff_main.cpp', | 149 '../tools/skdiff_main.cpp', |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 'flags.gyp:flags', | 733 'flags.gyp:flags', |
| 762 'skia_lib.gyp:skia_lib', | 734 'skia_lib.gyp:skia_lib', |
| 763 'resources', | 735 'resources', |
| 764 ], | 736 ], |
| 765 }, | 737 }, |
| 766 ], | 738 ], |
| 767 }, | 739 }, |
| 768 ], | 740 ], |
| 769 ], | 741 ], |
| 770 } | 742 } |
| OLD | NEW |