Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2015 The Chromium Authors. 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 # Toolchain-related configuration that may be needed outside the context of the | |
| 6 # toolchain() rules themselves. | |
| 7 | |
| 8 # Subdirectory within root_out_dir for shared library files. | |
| 9 if (is_android) { | |
| 10 # On android, use the stripped version of the library, because | |
| 11 # applications are always fetched over the network. | |
| 12 shlib_subdir = "lib.stripped" | |
| 13 } else if (is_linux) { | |
| 14 shlib_subdir = "lib" | |
| 15 } else { | |
| 16 # win, mac, ios, nacl | |
| 17 shlib_subdir = "." | |
| 18 } | |
| 19 | |
| 20 # Root out dir for shared library files. | |
| 21 root_shlib_dir = root_out_dir | |
| 22 if (shlib_subdir != ".") { | |
| 23 root_shlib_dir += "/$shlib_subdir" | |
| 24 } | |
| 25 | |
| 26 # Extension for shared library files. | |
|
brettw
2015/07/30 23:17:47
Can you append "..., including the dot."
agrieve
2015/07/31 02:09:24
Done.
| |
| 27 if (is_mac || is_ios) { | |
| 28 shlib_extension = ".dylib" | |
| 29 } else if (is_android && is_component_build) { | |
| 30 # By appending .cr, we prevent name collisions with libraries already | |
| 31 # loaded by the Android zygote. | |
| 32 shlib_extension = ".cr.so" | |
| 33 } else if (is_posix) { | |
| 34 shlib_extension = ".so" | |
| 35 } else if (is_win) { | |
| 36 shlib_extension = ".dll" | |
| 37 } else { | |
| 38 assert(false, "Platform not supported") | |
| 39 } | |
| 40 | |
| 41 # Prefix for shared library files. | |
| 42 if (is_posix) { | |
| 43 shlib_prefix = "lib" | |
| 44 } else { | |
| 45 shlib_prefix = "" | |
| 46 } | |
| OLD | NEW |