summaryrefslogtreecommitdiffstats
path: root/ceee/common/common.gyp
blob: 82f61d6874890c86ea201baa374f69e990fbc16e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'variables': {
    'chromium_code': 1,
  },
  'includes': [
    '../../build/common.gypi',
    '../../ceee/common.gypi',
  ],
  'target_defaults': {
    'include_dirs': [
      '../..',
    ],
  },
  'targets': [
    {
      'target_name': 'initializing_coclass',
      'type': 'none',
      'sources': [
        'initializing_coclass.h',
        'initializing_coclass.py',
      ],
      'actions': [
        {
          'action_name': 'make_initializing_coclass',
          'msvs_cygwin_shell': 0,
          'msvs_quote_cmd': 0,
          'inputs': [
            'initializing_coclass.py',
          ],
          'outputs': [
            '<(SHARED_INTERMEDIATE_DIR)/initializing_coclass_gen.inl',
          ],
          'action': [
            '<@(python)',
            'initializing_coclass.py',
            '"<(SHARED_INTERMEDIATE_DIR)/initializing_coclass_gen.inl"',
          ],
        },
      ],
      # All who use this need to be able to find the .inl file we generate.
      'all_dependent_settings': {
        'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'],
      },
    },
    {
      'target_name': 'ceee_common',
      'type': 'static_library',
      'dependencies': [
        'initializing_coclass',
        '../../base/base.gyp:base',
        '../../testing/gmock.gyp:gmock',
        '../../third_party/npapi/npapi.gyp:npapi',
      ],
      'msvs_guid': '4BAB6049-29A7-47C2-A754-14CA3FBF5BD9',
      'sources': [
        'com_utils.cc',
        'com_utils.h',
        'initializing_coclass.h',
        'install_utils.cc',
        'install_utils.h',
        'npobject_impl.cc',
        'npobject_impl.h',
        'npplugin_impl.cc',
        'npplugin_impl.h',
        'process_utils_win.cc',
        'process_utils_win.h',
        'sidestep_integration.cc',
        'windows_constants.cc',
        'windows_constants.h',
        'window_utils.cc',
        'window_utils.h',
      ],
    },
    {
      'target_name': 'ceee_common_unittests',
      'type': 'executable',
      'msvs_guid': 'A6DF7E24-63DF-47E6-BA72-423FCA8AC36D',
      'sources': [
        'com_utils_unittest.cc',
        'common_unittest_main.cc',
        'initializing_coclass_unittest.cc',
        'install_utils_unittest.cc',
        'npobject_impl_unittest.cc',
        'npplugin_impl_unittest.cc',
        'process_utils_win_unittest.cc',
        'sidestep_unittest.cc',
        'window_utils_unittest.cc',
      ],
      'dependencies': [
        'ceee_common',
        '<(DEPTH)/ceee/testing/sidestep/sidestep.gyp:sidestep',
        '../testing/utils/test_utils.gyp:test_utils',
        '../../base/base.gyp:base',
        '../../testing/gmock.gyp:gmock',
        '../../testing/gtest.gyp:gtest',
        '../../third_party/npapi/npapi.gyp:npapi',
      ],
    }
  ]
}