Home | History | Annotate | Download | only in linker-flags
      1 # Copyright (c) 2013 Google Inc. 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  'targets': [
      7     {
      8       'target_name': 'test_ordering_exe',
      9       'type': 'executable',
     10       # These are so the names of the functions appear in the disassembly.
     11       'msvs_settings': {
     12         'VCCLCompilerTool': {
     13           'DebugInformationFormat': '3',
     14           'Optimization': '2',
     15         },
     16         'VCLinkerTool': {
     17           'GenerateDebugInformation': 'true',
     18           'LinkIncremental': '1',
     19           'GenerateManifest': 'false',
     20           # Minimize the disassembly to just our code.
     21           'AdditionalOptions': [
     22             '/NODEFAULTLIB',
     23           ],
     24         },
     25       },
     26       'sources': [
     27         # Explicitly sorted the same way as the disassembly in the test .py.
     28         'main-crt.c',
     29         'z.cc',
     30         'x.cc',
     31         'y.cc',
     32         'hello.cc',
     33       ],
     34     },
     35 
     36     {
     37       'target_name': 'test_ordering_subdirs',
     38       'type': 'executable',
     39       # These are so the names of the functions appear in the disassembly.
     40       'msvs_settings': {
     41         'VCCLCompilerTool': {
     42           'DebugInformationFormat': '3',
     43           'Optimization': '2',
     44         },
     45         'VCLinkerTool': {
     46           'GenerateDebugInformation': 'true',
     47           'LinkIncremental': '1',
     48           'GenerateManifest': 'false',
     49           # Minimize the disassembly to just our code.
     50           'AdditionalOptions': [
     51             '/NODEFAULTLIB',
     52           ],
     53         },
     54       },
     55       'sources': [
     56         # Explicitly sorted the same way as the disassembly in the test .py.
     57         'main-crt.c',
     58         'hello.cc',
     59         'b/y.cc',
     60         'a/z.cc',
     61       ],
     62     },
     63 
     64 
     65     {
     66       'target_name': 'test_ordering_subdirs_mixed',
     67       'type': 'executable',
     68       # These are so the names of the functions appear in the disassembly.
     69       'msvs_settings': {
     70         'VCCLCompilerTool': {
     71           'DebugInformationFormat': '3',
     72           'Optimization': '2',
     73         },
     74         'VCLinkerTool': {
     75           'GenerateDebugInformation': 'true',
     76           'LinkIncremental': '1',
     77           'GenerateManifest': 'false',
     78           # Minimize the disassembly to just our code.
     79           'AdditionalOptions': [
     80             '/NODEFAULTLIB',
     81           ],
     82         },
     83       },
     84       'sources': [
     85         # Explicitly sorted the same way as the disassembly in the test .py.
     86         'main-crt.c',
     87         'a/x.cc',
     88         'hello.cc',
     89         'a/z.cc',
     90         'y.cc',
     91       ],
     92     },
     93 
     94   ]
     95 }
     96