| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 ] | 399 ] |
| 400 lib_dirs += [ "$android_stlport_root/libs/$android_app_abi" ] | 400 lib_dirs += [ "$android_stlport_root/libs/$android_app_abi" ] |
| 401 | 401 |
| 402 if (component_mode == "shared_library") { | 402 if (component_mode == "shared_library") { |
| 403 libs += [ "stlport_shared" ] | 403 libs += [ "stlport_shared" ] |
| 404 } else { | 404 } else { |
| 405 libs += [ "stlport_static" ] | 405 libs += [ "stlport_static" ] |
| 406 } | 406 } |
| 407 } | 407 } |
| 408 | 408 |
| 409 if (cpu_arch == "mipsel") { |
| 410 libs += [ |
| 411 # ld linker is used for mips Android, and ld does not accept library |
| 412 # absolute path prefixed by "-l"; Since libgcc does not exist in mips |
| 413 # sysroot the proper library will be linked. |
| 414 # TODO(gordanac): Remove once gold linker is used for mips Android. |
| 415 "gcc", |
| 416 ] |
| 417 } else { |
| 418 libs += [ |
| 419 # Manually link the libgcc.a that the cross compiler uses. This is |
| 420 # absolute because the linker will look inside the sysroot if it's not. |
| 421 rebase_path(android_libgcc_file), |
| 422 ] |
| 423 } |
| 424 |
| 409 libs += [ | 425 libs += [ |
| 410 # Manually link the libgcc.a that the cross compiler uses. This is | |
| 411 # absolute because the linker will look inside the sysroot if it's not. | |
| 412 rebase_path(android_libgcc_file), | |
| 413 "c", | 426 "c", |
| 414 "dl", | 427 "dl", |
| 415 "m", | 428 "m", |
| 416 ] | 429 ] |
| 417 | 430 |
| 418 } | 431 } |
| 419 } | 432 } |
| 420 | 433 |
| 421 # chromium_code --------------------------------------------------------------- | 434 # chromium_code --------------------------------------------------------------- |
| 422 # | 435 # |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 } else { | 810 } else { |
| 798 cflags = [ "-g1" ] | 811 cflags = [ "-g1" ] |
| 799 } | 812 } |
| 800 } | 813 } |
| 801 | 814 |
| 802 config("no_symbols") { | 815 config("no_symbols") { |
| 803 if (!is_win) { | 816 if (!is_win) { |
| 804 cflags = [ "-g0" ] | 817 cflags = [ "-g0" ] |
| 805 } | 818 } |
| 806 } | 819 } |
| OLD | NEW |