Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / chrome_elf / chrome_elf.gyp
1 # Copyright 2013 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   'variables': {
6     'chromium_code': 1,
7   },
8   'includes': [
9     '../build/win_precompile.gypi',
10     '../chrome/version.gypi',
11     'blacklist.gypi',
12   ],
13   'targets': [
14     {
15       'target_name': 'chrome_elf',
16       'type': 'shared_library',
17       'include_dirs': [
18         '..',
19       ],
20       'sources': [
21         'chrome_elf.def',
22         'chrome_elf_main.cc',
23         'chrome_elf_main.h',
24       ],
25       'dependencies': [
26         'blacklist',
27         'chrome_elf_lib',
28       ],
29       'msvs_settings': {
30         'VCLinkerTool': {
31           'BaseAddress': '0x01c20000',
32           # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency).
33           'SubSystem': '2',
34           'AdditionalDependencies!': [
35             'user32.lib',
36           ],
37           'IgnoreDefaultLibraryNames': [
38             'user32.lib',
39           ],
40         },
41       },
42     },
43     {
44       'target_name': 'chrome_elf_unittests_exe',
45       'product_name': 'chrome_elf_unittests',
46       'type': 'executable',
47       'sources': [
48         'blacklist/test/blacklist_test.cc',
49         'elf_imports_unittest.cc',
50         'ntdll_cache_unittest.cc',
51       ],
52       'include_dirs': [
53         '..',
54         '<(SHARED_INTERMEDIATE_DIR)',
55       ],
56       'dependencies': [
57         'chrome_elf_lib',
58         '../base/base.gyp:base',
59         '../base/base.gyp:run_all_unittests',
60         '../base/base.gyp:test_support_base',
61         '../sandbox/sandbox.gyp:sandbox',
62         '../testing/gtest.gyp:gtest',
63         'blacklist',
64         'blacklist_test_dll_1',
65         'blacklist_test_dll_2',
66         'blacklist_test_dll_3',
67         'blacklist_test_main_dll',
68       ],
69     },
70     {
71       # A dummy target to ensure that chrome_elf.dll and chrome.exe gets build
72       # when building chrome_elf_unittests.exe without introducing an
73       # explicit runtime dependency.
74       'target_name': 'chrome_elf_unittests',
75       'type': 'none',
76       'dependencies': [
77         '../chrome/chrome.gyp:chrome',
78         'chrome_elf',
79         'chrome_elf_unittests_exe',
80       ],
81     },
82     {
83       'target_name': 'chrome_elf_lib',
84       'type': 'static_library',
85       'include_dirs': [
86         '..',
87       ],
88       'sources': [
89         'chrome_elf_types.h',
90         'ntdll_cache.cc',
91         'ntdll_cache.h',
92       ],
93     },
94   ],
95 }