Home | History | Annotate | Download | only in chrome_elf
      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   ],
     12   'targets': [
     13     {
     14       'target_name': 'chrome_elf',
     15       'type': 'shared_library',
     16       'include_dirs': [
     17         '..',
     18       ],
     19       'sources': [
     20         'chrome_elf.def',
     21         'chrome_elf_main.cc',
     22         'chrome_elf_main.h',
     23       ],
     24       'dependencies': [
     25         'chrome_elf_lib',
     26       ],
     27       'msvs_settings': {
     28         'VCLinkerTool': {
     29           'BaseAddress': '0x01c20000',
     30           # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency).
     31           'SubSystem': '2',
     32         },
     33       },
     34     },
     35     {
     36       'target_name': 'chrome_elf_unittests',
     37       'type': 'executable',
     38       'sources': [
     39         'ntdll_cache_unittest.cc',
     40       ],
     41       'include_dirs': [
     42         '..',
     43       ],
     44       'dependencies': [
     45         'chrome_elf_lib',
     46         '<(DEPTH)/base/base.gyp:run_all_unittests',
     47         '<(DEPTH)/testing/gtest.gyp:gtest',
     48       ],
     49     },
     50     {
     51       'target_name': 'chrome_elf_lib',
     52       'type': 'static_library',
     53       'include_dirs': [
     54         '..',
     55       ],
     56       'sources': [
     57         'chrome_elf_types.h',
     58         'ntdll_cache.cc',
     59         'ntdll_cache.h',
     60       ],
     61     },
     62   ],
     63 }
     64