| OLD | NEW |
| 1 # Copyright (c) 2014 The Native ClientAuthors. All rights reserved. | 1 # Copyright (c) 2014 The Native ClientAuthors. 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 import("//native_client/src/trusted/asm.gni") | 5 import("//native_client/src/trusted/asm.gni") |
| 6 | 6 |
| 7 if (current_cpu == "x86" || current_cpu == "x64") { | 7 if (current_cpu == "x86" || current_cpu == "x64") { |
| 8 if (current_toolchain == nacl_asm_toolchain) { | 8 if (current_toolchain == nacl_asm_toolchain) { |
| 9 source_set("nccopy_asm") { | 9 source_set("nccopy_asm") { |
| 10 sources = [ | 10 sources = [ |
| 11 "nccopycode_stores.S", | 11 "nccopycode_stores.S", |
| 12 ] | 12 ] |
| 13 deps = [ | 13 deps = [ |
| 14 "//build/config/nacl:nacl_base", | 14 "//build/config/nacl:nacl_base", |
| 15 ] | 15 ] |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 source_set("nccopy") { | 19 static_library("nccopy") { |
| 20 sources = [ | 20 sources = [ |
| 21 "nccopycode.c", | 21 "nccopycode.c", |
| 22 ] | 22 ] |
| 23 deps = [ | 23 deps = [ |
| 24 "//build/config/nacl:nacl_base", | 24 "//build/config/nacl:nacl_base", |
| 25 ":nccopy_asm($nacl_asm_toolchain)", | 25 ":nccopy_asm($nacl_asm_toolchain)", |
| 26 ] | 26 ] |
| 27 } | 27 } |
| 28 } | 28 } |
| OLD | NEW |