# Copyright 2015 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # GYP file to build various tools. # # To build on Linux: # ./gyp_skia tools.gyp && make tools # { 'includes': [ 'apptype_console.gypi', ], 'targets': [ { # Build all executable targets defined below. 'target_name': 'tools', 'type': 'none', 'dependencies': [ 'chrome_fuzz', 'dump_record', 'get_images_from_skps', 'get_current_monitor_profile', 'gpuveto', 'imgblur', 'imgslice', 'lua_app', 'lua_pictures', 'pinspect', 'skdiff', 'skhello', 'skpinfo', 'skpmaker', 'test_public_includes', 'using_skia_and_harfbuzz', 'visualize_color_gamut', 'whitelist_typefaces', ], 'conditions': [ ['skia_mesa and skia_os in ["linux", "mac"]', { 'dependencies': [ 'fiddle_build_test' ] } ], ['skia_shared_lib', { 'dependencies': [ 'sklua', # This can only be built if skia is built as a shared library ], }, ], [ 'skia_os == "android"', { 'dependencies': [ # Build this by default to catch compile errors more quickly, since # the only other time this code is exercised in the android framework 'android_utils', ], }, ], ], }, { 'target_name': 'dump_record', 'type': 'executable', 'sources': [ '../tools/dump_record.cpp', '../tools/DumpRecord.cpp', ], 'include_dirs': [ '../include/private', '../src/core', ], 'dependencies': [ 'flags.gyp:flags', 'skia_lib.gyp:skia_lib', ], }, { 'target_name': 'monobench', 'type': 'executable', 'dependencies': [ 'flags.gyp:flags', 'flags.gyp:flags_common', 'resources', 'skia_lib.gyp:skia_lib', 'timer', 'pdf.gyp:pdf', 'tools.gyp:sk_tool_utils', ], 'include_dirs': [ '../bench', '../include/private', '../src/core', '../src/effects', '../src/effects/gradients', '../src/image', '../src/gpu', '../src/pdf', '../src/utils', ], 'sources': [ '../tools/monobench.cpp', '../bench/Benchmark.cpp', '