| OLD | NEW |
| 1 # GYP file to build various tools. | 1 # GYP file to build various tools. |
| 2 # | 2 # |
| 3 # To build on Linux: | 3 # To build on Linux: |
| 4 # ./gyp_skia tools.gyp && make tools | 4 # ./gyp_skia tools.gyp && make tools |
| 5 # | 5 # |
| 6 { | 6 { |
| 7 'includes': [ | 7 'includes': [ |
| 8 'apptype_console.gypi', | 8 'apptype_console.gypi', |
| 9 ], | 9 ], |
| 10 'targets': [ | 10 'targets': [ |
| 11 { | 11 { |
| 12 # Build all executable targets defined below. | 12 # Build all executable targets defined below. |
| 13 'target_name': 'tools', | 13 'target_name': 'tools', |
| 14 'type': 'none', | 14 'type': 'none', |
| 15 'dependencies': [ | 15 'dependencies': [ |
| 16 'bench_pictures', | 16 'bench_pictures', |
| 17 'filter', | 17 'filter', |
| 18 'lua_pictures', | 18 'lua_pictures', |
| 19 'lua_app', | 19 'lua_app', |
| 20 'pinspect', | 20 'pinspect', |
| 21 'render_pdfs', | 21 'render_pdfs', |
| 22 'render_pictures', | 22 'render_pictures', |
| 23 'skdiff', | 23 'skdiff', |
| 24 'skhello', | 24 'skhello', |
| 25 'skimage', | 25 'skimage', |
| 26 ], | 26 ], |
| 27 'conditions': [ |
| 28 ['skia_shared_lib', |
| 29 { |
| 30 'dependencies': [ |
| 31 'sklua', # This can only be built if skia is built as a shared lib
rary |
| 32 ], |
| 33 }, |
| 34 ], |
| 35 ], |
| 27 }, | 36 }, |
| 28 { | 37 { |
| 29 'target_name': 'skdiff', | 38 'target_name': 'skdiff', |
| 30 'type': 'executable', | 39 'type': 'executable', |
| 31 'sources': [ | 40 'sources': [ |
| 32 '../tools/skdiff.cpp', | 41 '../tools/skdiff.cpp', |
| 33 '../tools/skdiff.h', | 42 '../tools/skdiff.h', |
| 34 '../tools/skdiff_html.cpp', | 43 '../tools/skdiff_html.cpp', |
| 35 '../tools/skdiff_html.h', | 44 '../tools/skdiff_html.h', |
| 36 '../tools/skdiff_main.cpp', | 45 '../tools/skdiff_main.cpp', |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 '../src/utils/', | 99 '../src/utils/', |
| 91 ], | 100 ], |
| 92 'dependencies': [ | 101 'dependencies': [ |
| 93 'skia_lib.gyp:skia_lib', | 102 'skia_lib.gyp:skia_lib', |
| 94 'flags.gyp:flags', | 103 'flags.gyp:flags', |
| 95 'gm.gyp:gm_expectations', | 104 'gm.gyp:gm_expectations', |
| 96 'jsoncpp.gyp:jsoncpp', | 105 'jsoncpp.gyp:jsoncpp', |
| 97 'utils.gyp:utils', | 106 'utils.gyp:utils', |
| 98 ], | 107 ], |
| 99 }, | 108 }, |
| 109 |
| 100 { | 110 { |
| 101 'target_name': 'lua_app', | 111 'target_name': 'lua_app', |
| 102 'type': 'executable', | 112 'type': 'executable', |
| 103 'sources': [ | 113 'sources': [ |
| 104 '../tools/lua/lua_app.cpp', | 114 '../tools/lua/lua_app.cpp', |
| 105 '../src/utils/SkLua.cpp', | 115 '../src/utils/SkLua.cpp', |
| 106 ], | 116 ], |
| 107 'dependencies': [ | 117 'dependencies': [ |
| 108 'skia_lib.gyp:skia_lib', | 118 'skia_lib.gyp:skia_lib', |
| 109 'effects.gyp:effects', | 119 'effects.gyp:effects', |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 '../src/utils/debugger/SkObjectParser.h', | 315 '../src/utils/debugger/SkObjectParser.h', |
| 306 '../src/utils/debugger/SkObjectParser.cpp', | 316 '../src/utils/debugger/SkObjectParser.cpp', |
| 307 ], | 317 ], |
| 308 'dependencies': [ | 318 'dependencies': [ |
| 309 'skia_lib.gyp:skia_lib', | 319 'skia_lib.gyp:skia_lib', |
| 310 'tools.gyp:picture_utils', | 320 'tools.gyp:picture_utils', |
| 311 ], | 321 ], |
| 312 }, | 322 }, |
| 313 ], | 323 ], |
| 314 'conditions': [ | 324 'conditions': [ |
| 325 ['skia_shared_lib', |
| 326 { |
| 327 'targets': [ |
| 328 { |
| 329 'target_name': 'sklua', |
| 330 'product_name': 'skia', |
| 331 'product_prefix': '', |
| 332 'product_dir': '<(PRODUCT_DIR)/', |
| 333 'type': 'shared_library', |
| 334 'sources': [ |
| 335 '../src/utils/SkLuaCanvas.cpp', |
| 336 '../src/utils/SkLua.cpp', |
| 337 ], |
| 338 'include_dirs': [ |
| 339 '../third_party/lua/src/', |
| 340 ], |
| 341 'dependencies': [ |
| 342 'lua.gyp:lua', |
| 343 'pdf.gyp:pdf', |
| 344 'skia_lib.gyp:skia_lib', |
| 345 ], |
| 346 'conditions': [ |
| 347 ['skia_os != "win"', |
| 348 { |
| 349 'ldflags': [ |
| 350 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags', |
| 351 ], |
| 352 }, |
| 353 ], |
| 354 ], |
| 355 }, |
| 356 ], |
| 357 }, |
| 358 ], |
| 315 ['skia_win_debuggers_path and skia_os == "win"', | 359 ['skia_win_debuggers_path and skia_os == "win"', |
| 316 { | 360 { |
| 317 'targets': [ | 361 'targets': [ |
| 318 { | 362 { |
| 319 'target_name': 'win_dbghelp', | 363 'target_name': 'win_dbghelp', |
| 320 'type': 'static_library', | 364 'type': 'static_library', |
| 321 'defines': [ | 365 'defines': [ |
| 322 'SK_CDB_PATH="<(skia_win_debuggers_path)"', | 366 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 323 ], | 367 ], |
| 324 'sources': [ | 368 'sources': [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 343 }, | 387 }, |
| 344 ], | 388 ], |
| 345 ], | 389 ], |
| 346 } | 390 } |
| 347 | 391 |
| 348 # Local Variables: | 392 # Local Variables: |
| 349 # tab-width:2 | 393 # tab-width:2 |
| 350 # indent-tabs-mode:nil | 394 # indent-tabs-mode:nil |
| 351 # End: | 395 # End: |
| 352 # vim: set expandtab tabstop=2 shiftwidth=2: | 396 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |