• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2014 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
5import("//build/toolchain/toolchain.gni")
6
7declare_args() {
8  toolchains_dir = "//prebuilts/clang/ohos"
9}
10if (!is_llvm_build) {
11  default_clang_base_path = "${toolchains_dir}/${host_platform_dir}/llvm"
12  clang_lib_path = "${toolchains_dir}/${host_platform_dir}/llvm/lib/clang/${clang_version}/lib"
13} else {
14  default_clang_base_path = "//out/llvm-install"
15  clang_lib_path = "//out/llvm-install/lib/clang/${clang_version}/lib"
16}
17
18declare_args() {
19  # Indicates if the build should use the Chrome-specific plugins for enforcing
20  # coding guidelines, etc. Only used when compiling with Clang.
21  #clang_use_chrome_plugins = is_clang && !is_nacl && !use_xcode_clang
22  clang_use_chrome_plugins = false
23
24  clang_base_path = default_clang_base_path
25
26  clang_lib_base_path = clang_lib_path
27
28  clang_stl_path = "${toolchains_dir}/${host_platform_dir}/libcxx-ndk/lib"
29}
30