Home | History | Annotate | Download | only in metro_driver
      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   'conditions': [
      6     ['OS=="win"', {
      7       'variables': {
      8         'chromium_code': 1,
      9       },
     10       'includes': [
     11         '../../build/win_precompile.gypi',
     12         '../../chrome/version.gypi',
     13       ],
     14       'target_defaults': {
     15         'msvs_settings': {
     16             'VCLinkerTool': {
     17                 'AdditionalDependencies': [
     18                     'D2D1.lib',
     19                     'D3D11.lib',
     20                 ],
     21             },
     22         },
     23       },
     24       'targets': [
     25         {
     26           'target_name': 'metro_driver_version_resources',
     27           'type': 'none',
     28           'conditions': [
     29             ['branding == "Chrome"', {
     30               'variables': {
     31                  'branding_path': '../../chrome/app/theme/google_chrome/BRANDING',
     32               },
     33             }, { # else branding!="Chrome"
     34               'variables': {
     35                  'branding_path': '../../chrome/app/theme/chromium/BRANDING',
     36               },
     37             }],
     38           ],
     39           'variables': {
     40             'output_dir': 'metro_driver',
     41             'template_input_path': '../../chrome/app/chrome_version.rc.version',
     42           },
     43           'sources': [
     44             'metro_driver_dll.ver',
     45           ],
     46           'includes': [
     47             '../../chrome/version_resource_rules.gypi',
     48           ],
     49         },
     50         {
     51           'target_name': 'metro_driver',
     52           'type': 'shared_library',
     53           'dependencies': [
     54             '../../base/base.gyp:base',
     55             '../../chrome/common_constants.gyp:common_constants',
     56             '../../chrome/chrome.gyp:installer_util',
     57             '../../crypto/crypto.gyp:crypto',
     58             '../../google_update/google_update.gyp:google_update',
     59             '../../ipc/ipc.gyp:ipc',
     60             '../../sandbox/sandbox.gyp:sandbox',
     61             '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
     62             '../../url/url.gyp:url_lib',
     63             '../win8.gyp:check_sdk_patch',
     64             'metro_driver_version_resources',
     65           ],
     66           'sources': [
     67             'display_properties.cc',
     68             'metro_driver.cc',
     69             'metro_driver.h',
     70             'stdafx.h',
     71             'winrt_utils.cc',
     72             'winrt_utils.h',
     73             '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc',
     74           ],
     75           'conditions': [
     76             ['use_aura==1', {
     77               'dependencies': [
     78                 '../win8.gyp:metro_viewer_constants',
     79               ],
     80               'sources': [
     81                 'chrome_app_view_ash.cc',
     82                 'chrome_app_view_ash.h',
     83                 'direct3d_helper.cc',
     84                 'direct3d_helper.h',
     85                 'file_picker_ash.cc',
     86                 'file_picker_ash.h',
     87               ],
     88               'includes': [
     89                 'ime/ime.gypi',
     90               ],
     91             }, {  # use_aura!=1
     92               'sources': [
     93                 'chrome_app_view.cc',
     94                 'chrome_app_view.h',
     95                 'chrome_url_launch_handler.cc',
     96                 'chrome_url_launch_handler.h',
     97                 'devices_handler.cc',
     98                 'devices_handler.h',
     99                 'file_picker.cc',
    100                 'file_picker.h',
    101                 'metro_dialog_box.cc',
    102                 'metro_dialog_box.h',
    103                 'print_document_source.cc',
    104                 'print_document_source.h',
    105                 'print_handler.cc',
    106                 'print_handler.h',
    107                 'secondary_tile.cc',
    108                 'secondary_tile.h',
    109                 'settings_handler.cc',
    110                 'settings_handler.h',
    111                 'toast_notification_handler.cc',
    112                 'toast_notification_handler.h',
    113               ],
    114             }],
    115           ],
    116           'copies': [
    117             {
    118               'destination': '<(PRODUCT_DIR)',
    119               'files': [
    120                 'resources/Logo.png',
    121                 'resources/SecondaryTile.png',
    122                 'resources/SmallLogo.png',
    123                 'resources/splash-620x300.png',
    124                 'resources/VisualElementsManifest.xml',
    125               ],
    126             },
    127           ],
    128         },
    129         {
    130           'target_name': 'metro_driver_unittests',
    131           'type': 'executable',
    132           'dependencies': [
    133             '../../base/base.gyp:base',
    134             '../../chrome/chrome.gyp:installer_util',
    135             '../../testing/gtest.gyp:gtest',
    136             'metro_driver',
    137           ],
    138           'sources': [
    139             'run_all_unittests.cc',
    140             'winrt_utils.cc',
    141             'winrt_utils.h',
    142             'winrt_utils_unittest.cc',
    143           ],
    144         },
    145       ],
    146     },],
    147   ],
    148 }
    149