| OLD | NEW |
| 1 # Copyright 2015 The Native Client Authors. All rights reserved. | 1 # Copyright 2015 The Native Client 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
| 7 | 7 |
| 8 # Generate a nmf file | 8 # Generate a nmf file |
| 9 # | 9 # |
| 10 # Native Client Manifest (nmf) is a JSON file that tells the browser where to | 10 # Native Client Manifest (nmf) is a JSON file that tells the browser where to |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 data = [] | 75 data = [] |
| 76 | 76 |
| 77 nmfflags += [ "--library-path=" + rebase_path(root_out_dir) ] | 77 nmfflags += [ "--library-path=" + rebase_path(root_out_dir) ] |
| 78 | 78 |
| 79 # NOTE: There is no explicit dependency for the lib directory | 79 # NOTE: There is no explicit dependency for the lib directory |
| 80 # (lib32 and lib64 for x86/x64) created in the product directory. | 80 # (lib32 and lib64 for x86/x64) created in the product directory. |
| 81 # They are created as a side-effect of nmf creation. | 81 # They are created as a side-effect of nmf creation. |
| 82 if (current_cpu != "x86" && current_cpu != "x64") { | 82 if (current_cpu != "x86" && current_cpu != "x64") { |
| 83 nmfflags += | 83 nmfflags += |
| 84 [ "--library-path=" + rebase_path("${nacl_toolchain_tooldir}/lib") ] | 84 [ "--library-path=" + rebase_path("${nacl_toolchain_tooldir}/lib") ] |
| 85 data += [ "${lib_path}/lib/" ] | 85 if (current_cpu == "arm") { |
| 86 data += [ "${lib_path}/libarm/" ] |
| 87 } else { |
| 88 data += [ "${lib_path}/lib/" ] |
| 89 } |
| 86 } else { | 90 } else { |
| 87 # For x86-32, the lib/ directory is called lib32/ instead. | 91 # For x86-32, the lib/ directory is called lib32/ instead. |
| 88 if (current_cpu == "x86") { | 92 if (current_cpu == "x86") { |
| 89 nmfflags += [ "--library-path=" + | 93 nmfflags += [ "--library-path=" + |
| 90 rebase_path("${nacl_toolchain_tooldir}/lib32") ] | 94 rebase_path("${nacl_toolchain_tooldir}/lib32") ] |
| 91 data += [ "${lib_path}/lib32/" ] | 95 data += [ "${lib_path}/lib32/" ] |
| 92 } | 96 } |
| 93 | 97 |
| 94 # x86-32 Windows needs to build both x86-32 and x86-64 NaCl | 98 # x86-32 Windows needs to build both x86-32 and x86-64 NaCl |
| 95 # binaries into the same nmf covering both architectures. That | 99 # binaries into the same nmf covering both architectures. That |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 args = [ | 176 args = [ |
| 173 "--program=" + rebase_path(executable, root_build_dir), | 177 "--program=" + rebase_path(executable, root_build_dir), |
| 174 "--arch=${arch}", | 178 "--arch=${arch}", |
| 175 "--output=" + rebase_path(nmf, root_build_dir), | 179 "--output=" + rebase_path(nmf, root_build_dir), |
| 176 ] | 180 ] |
| 177 if (defined(invoker.nmfflags)) { | 181 if (defined(invoker.nmfflags)) { |
| 178 args += invoker.nmfflags | 182 args += invoker.nmfflags |
| 179 } | 183 } |
| 180 } | 184 } |
| 181 } | 185 } |
| OLD | NEW |