Home | History | Annotate | Download | only in subdir4
      1 # Copyright (c) 2009 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 # This one tests that assembly files ended as .s and .S are compiled.
      6 
      7 {
      8   'target_defaults': {
      9     'conditions': [
     10       ['OS=="win"', {
     11         'defines': ['PLATFORM_WIN'],
     12       }],
     13       ['OS=="mac"', {
     14         'defines': ['PLATFORM_MAC'],
     15       }],
     16       ['OS=="linux"', {
     17         'defines': ['PLATFORM_LINUX'],
     18       }],
     19     ],
     20   },
     21   'targets': [
     22     {
     23       'target_name': 'program4',
     24       'type': 'executable',
     25       'sources': [
     26         'asm-function.assem',
     27         'program.c',
     28       ],
     29       'conditions': [
     30         ['OS=="linux" or OS=="mac"', {
     31           'rules': [
     32             {
     33               'rule_name': 'convert_assem',
     34               'extension': 'assem',
     35               'inputs': [],
     36               'outputs': [
     37                 '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).S',
     38               ],
     39               'action': [
     40 	        'bash', '-c', 'mv <(RULE_INPUT_PATH) <@(_outputs)',
     41               ],
     42               'process_outputs_as_sources': 1,
     43             },
     44           ],
     45         }],
     46       ],
     47     },
     48   ],
     49 }
     50