• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 The PDFium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# Variable that can be used to support multiple build scenarios, like having
6# Chromium specific targets in a client project's GN file etc.
7build_with_chromium = false
8
9# Support different NDK locations in non-Chromium builds.
10default_android_ndk_root = "//third_party/android_ndk"
11default_android_ndk_version = "r16"
12default_android_ndk_major_version = 16
13
14# PDFium builds don't support building java targets.
15enable_java_templates = false
16
17# Enables assertions on safety checks in libc++.
18enable_safe_libcxx = true
19
20# Whether to use the neon FPU instruction set or not.
21if (current_cpu == "arm") {
22  arm_use_neon = true
23}
24
25# PDFium just uses the Chromium suppression files for now.
26asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc"
27lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc"
28tsan_suppressions_file = "//build/sanitizers/tsan_suppressions.cc"
29
30declare_args() {
31  # Android 32-bit non-component, non-clang builds cannot have symbol_level=2
32  # due to 4GiB file size limit, see https://crbug.com/648948.
33  # Set this flag to true to skip the assertion.
34  ignore_elf32_limitations = false
35
36  # Use the system install of Xcode for tools like ibtool, libtool, etc.
37  # This does not affect the compiler. When this variable is false, targets will
38  # instead use a hermetic install of Xcode. [The hermetic install can be
39  # obtained with gclient sync after setting the environment variable
40  # FORCE_MAC_TOOLCHAIN].
41  use_system_xcode = ""
42
43  # Allows googletest to pretty-print various absl types.
44  # Assumes //third_party/abseil-cpp is an available dependency for googletest.
45  gtest_enable_absl_printers = true
46}
47
48if (use_system_xcode == "") {
49  if (target_os == "mac") {
50    _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
51                          [ target_os ],
52                          "value")
53    use_system_xcode = _result == 0
54  }
55  if (target_os == "ios") {
56    use_system_xcode = true
57  }
58}
59