Home | History | Annotate | Download | only in snapshot
      1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'variables': {
      7     'chromium_code': 1,
      8   },
      9   'targets': [
     10     {
     11       'target_name': 'snapshot',
     12       'type': '<(component)',
     13       'dependencies': [
     14         '../../skia/skia.gyp:skia',
     15         '../../base/base.gyp:base',
     16         '../ui.gyp:ui',
     17       ],
     18       'defines': [
     19         'SNAPSHOT_IMPLEMENTATION',
     20       ],
     21       'sources': [
     22         'snapshot.h',
     23         'snapshot_android.cc',
     24         'snapshot_aura.cc',
     25         'snapshot_export.h',
     26         'snapshot_gtk.cc',
     27         'snapshot_ios.mm',
     28         'snapshot_mac.mm',
     29         'snapshot_win.cc',
     30         'snapshot_win.h',
     31       ],
     32       'include_dirs': [
     33         '..',
     34       ],
     35       'conditions': [
     36         ['use_aura==1', {
     37           'dependencies': [
     38             '../aura/aura.gyp:aura',
     39             '../compositor/compositor.gyp:compositor',
     40           ],
     41         }],
     42       ],
     43     },
     44     {
     45       'target_name': 'snapshot_unittests',
     46       'type': '<(gtest_target_type)',
     47       'dependencies': [
     48         '../../skia/skia.gyp:skia',
     49         '../../base/base.gyp:base',
     50         '../../base/base.gyp:test_support_base',
     51         '../../testing/gtest.gyp:gtest',
     52         '../ui.gyp:ui',
     53         'snapshot'
     54       ],
     55       'sources': [
     56         'snapshot_aura_unittest.cc',
     57         'snapshot_mac_unittest.mm',
     58         'test/run_all_unittests.cc',
     59       ],
     60       'conditions': [
     61         ['use_aura==1', {
     62           'dependencies': [
     63             '../../base/base.gyp:test_support_base',
     64             '../aura/aura.gyp:aura_test_support',
     65             '../compositor/compositor.gyp:compositor',
     66             '../compositor/compositor.gyp:compositor_test_support',
     67           ],
     68         }],
     69         # See http://crbug.com/162998#c4 for why this is needed.
     70         ['OS=="linux" and linux_use_tcmalloc==1', {
     71           'dependencies': [
     72             '../../base/allocator/allocator.gyp:allocator',
     73           ],
     74         }],
     75       ],
     76     },
     77   ],
     78   'conditions': [
     79     ['OS=="win"', {
     80       'targets': [
     81         {
     82           'target_name': 'snapshot_test_support',
     83           'type': 'static_library',
     84           'sources': [
     85             'test/snapshot_desktop.h',
     86             'test/snapshot_desktop_win.cc',
     87           ],
     88           'dependencies': [
     89             'snapshot',
     90           ],
     91           'include_dirs': [
     92             '../..',
     93           ],
     94         },
     95       ],
     96     }],
     97   ],
     98 }
     99