1 # Copyright 2015 Google Inc. 2 # 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 # GYP file to build pathops unit tests. 6 { 7 'includes': [ 8 'apptype_console.gypi', 9 ], 10 'targets': [ 11 { 12 'target_name': 'pathops_unittest', 13 'type': 'executable', 14 'includes': [ 15 'pathops_unittest.gypi', 16 ], 17 'dependencies': [ 18 'flags.gyp:flags_common', 19 'tools.gyp:crash_handler', 20 ], 21 'sources': [ 22 '../tests/PathOpsAngleIdeas.cpp', 23 '../tests/PathOpsBattles.cpp', 24 '../tests/PathOpsCubicLineIntersectionIdeas.cpp', 25 '../tests/PathOpsDebug.cpp', 26 '../tests/PathOpsOpLoopThreadedTest.cpp', 27 '../tests/PathOpsTSectDebug.h', 28 '../tests/skia_test.cpp', 29 ], 30 'conditions': [ 31 [ 'skia_android_framework == 1', { 32 'libraries': [ 33 '-lskia', 34 ], 35 'libraries!': [ 36 '-lz', 37 '-llog', 38 ], 39 }], 40 [ 'skia_gpu == 1', { 41 'include_dirs': [ 42 '../src/gpu', 43 ], 44 'sources': [ 45 '../src/gpu/GrContextFactory.cpp', 46 '../src/gpu/GrContextFactory.h', 47 ] 48 }], 49 ], 50 }, 51 ], 52 } 53