| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This is an gyp include to use YASM for compiling assembly files. | 5 # This is an gyp include to use YASM for compiling assembly files. |
| 6 # | 6 # |
| 7 # Files to be compiled with YASM should have an extension of .asm. | 7 # Files to be compiled with YASM should have an extension of .asm. |
| 8 # | 8 # |
| 9 # There are three variables for this include: | 9 # There are three variables for this include: |
| 10 # yasm_flags : Pass additional flags into YASM. | 10 # yasm_flags : Pass additional flags into YASM. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 'yasm_includes': [], | 33 'yasm_includes': [], |
| 34 | 34 |
| 35 'conditions': [ | 35 'conditions': [ |
| 36 [ 'use_system_yasm==0', { | 36 [ 'use_system_yasm==0', { |
| 37 'yasm_path': '<(PRODUCT_DIR)/yasm<(EXECUTABLE_SUFFIX)', | 37 'yasm_path': '<(PRODUCT_DIR)/yasm<(EXECUTABLE_SUFFIX)', |
| 38 }, { | 38 }, { |
| 39 'yasm_path': '<!(which yasm)', | 39 'yasm_path': '<!(which yasm)', |
| 40 }], | 40 }], |
| 41 | 41 |
| 42 # Define yasm_flags that pass into YASM. | 42 # Define yasm_flags that pass into YASM. |
| 43 [ 'os_posix==1 and OS!="mac" and target_arch=="ia32"', { | 43 [ 'os_posix==1 and OS!="mac" and OS!="ios" and target_arch=="ia32"', { |
| 44 'yasm_flags': [ | 44 'yasm_flags': [ |
| 45 '-felf32', | 45 '-felf32', |
| 46 '-m', 'x86', | 46 '-m', 'x86', |
| 47 ], | 47 ], |
| 48 }], | 48 }], |
| 49 [ 'os_posix==1 and OS!="mac" and target_arch=="x64"', { | 49 [ 'os_posix==1 and OS!="mac" and OS!="ios" and target_arch=="x64"', { |
| 50 'yasm_flags': [ | 50 'yasm_flags': [ |
| 51 '-DPIC', | 51 '-DPIC', |
| 52 '-felf64', | 52 '-felf64', |
| 53 '-m', 'amd64', | 53 '-m', 'amd64', |
| 54 ], | 54 ], |
| 55 }], | 55 }], |
| 56 [ 'OS=="mac" and target_arch=="ia32"', { | 56 [ '(OS=="mac" or OS=="ios") and target_arch=="ia32"', { |
| 57 'yasm_flags': [ | 57 'yasm_flags': [ |
| 58 '-fmacho32', | 58 '-fmacho32', |
| 59 '-m', 'x86', | 59 '-m', 'x86', |
| 60 ], | 60 ], |
| 61 }], | 61 }], |
| 62 [ 'OS=="mac" and target_arch=="x64"', { | 62 [ '(OS=="mac" or OS=="ios") and target_arch=="x64"', { |
| 63 'yasm_flags': [ | 63 'yasm_flags': [ |
| 64 '-fmacho64', | 64 '-fmacho64', |
| 65 '-m', 'amd64', | 65 '-m', 'amd64', |
| 66 ], | 66 ], |
| 67 }], | 67 }], |
| 68 [ 'OS=="win" and target_arch=="ia32"', { | 68 [ 'OS=="win" and target_arch=="ia32"', { |
| 69 'yasm_flags': [ | 69 'yasm_flags': [ |
| 70 '-DPREFIX', | 70 '-DPREFIX', |
| 71 '-fwin32', | 71 '-fwin32', |
| 72 '-m', 'x86', | 72 '-m', 'x86', |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 '<(yasm_path)', | 110 '<(yasm_path)', |
| 111 '<@(yasm_flags)', | 111 '<@(yasm_flags)', |
| 112 '-o', '<(yasm_output_path)/<(RULE_INPUT_ROOT).<(asm_obj_extension)', | 112 '-o', '<(yasm_output_path)/<(RULE_INPUT_ROOT).<(asm_obj_extension)', |
| 113 '<(RULE_INPUT_PATH)', | 113 '<(RULE_INPUT_PATH)', |
| 114 ], | 114 ], |
| 115 'process_outputs_as_sources': 1, | 115 'process_outputs_as_sources': 1, |
| 116 'message': 'Compile assembly <(RULE_INPUT_PATH).', | 116 'message': 'Compile assembly <(RULE_INPUT_PATH).', |
| 117 }, | 117 }, |
| 118 ], # rules | 118 ], # rules |
| 119 } | 119 } |
| OLD | NEW |