# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This is an gyp include to use YASM for compiling assembly files. # # Files to be compiled with YASM should have an extension of .asm. # # There are two variables for this include: # yasm_flags : Pass additional flags into YASM. # yasm_output_path : Output directory for the compiled object files. # # Sample usage: # 'sources': [ # 'ultra_optimized_awesome.asm', # ], # 'variables': { # 'yasm_flags': [ # '-I', 'assembly_include', # ], # 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/project', # }, # 'includes': [ # 'third_party/yasm/yasm_compile.gypi' # ], { 'variables': { 'yasm_flags': [], 'conditions': [ [ 'use_system_yasm==0', { 'yasm_path': '<(PRODUCT_DIR)/yasm<(EXECUTABLE_SUFFIX)', }, { 'yasm_path': '