mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
eeb31321f7
third_party/gtest/BUILD.gn mostly written by rsesek. Also includes DEPS roll of mini_chromium for Wexit_time_destructors config. $ git log --oneline dd0c3e96..fa146c12 fa146c1 (HEAD, origin/master, origin/HEAD) gn: Extract Wexit-time-destructors into separate config 95bfddb fuchsia: Fix base::RandBytes() after 5a1c5f82ce75 b79608a fuchsia: Use llvm-ar from the Fuchsia clang package c34725b fuchsia: Look for the toolchain and SDK in per-build-host directories e8e1ee4 fuchsia: Don't assume that kernel will provide all requested rand bytes 5a1c5f8 fuchsia: Implement RandBytes() df359ca fuchsia: Enable -fPIC bd50c95 Restore accidentally changed license a70db15 Improvements to GN build config 7de4d23 fuchsia: Fix compile of base/logging.cc 25a8b57 Add link GN rules to non-win build, set c++14 in CC flags. 7d15806 fuchsia: The very basics of compiling mini_chromium/base with GN Bug: crashpad:79, crashpad:196 Change-Id: I3e741f185b028a96705eefc1f993037830d97448 Reviewed-on: https://chromium-review.googlesource.com/797414 Commit-Queue: Scott Graham <scottmg@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org>
94 lines
2.2 KiB
Plaintext
94 lines
2.2 KiB
Plaintext
# Copyright 2017 The Crashpad Authors. All rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
if (target_os == "") {
|
|
target_os = host_os
|
|
}
|
|
|
|
if (current_os == "") {
|
|
current_os = target_os
|
|
}
|
|
|
|
if (target_cpu == "") {
|
|
target_cpu = host_cpu
|
|
}
|
|
|
|
if (current_cpu == "") {
|
|
current_cpu = target_cpu
|
|
}
|
|
|
|
declare_args() {
|
|
is_debug = false
|
|
is_clang = current_os == "mac" || current_os == "fuchsia"
|
|
clang_root = ""
|
|
}
|
|
|
|
is_mac = false
|
|
is_win = false
|
|
is_linux = false
|
|
is_android = false
|
|
is_fuchsia = false
|
|
is_ios = false # This is necessary for third_party/zlib/zlib/BUILD.gn.
|
|
|
|
if (current_os == "mac") {
|
|
is_mac = true
|
|
} else if (current_os == "win") {
|
|
is_win = true
|
|
} else if (current_os == "android") {
|
|
is_android = true
|
|
} else if (current_os == "linux") {
|
|
is_linux = true
|
|
} else if (current_os == "fuchsia") {
|
|
is_fuchsia = true
|
|
}
|
|
|
|
is_posix = is_mac || is_linux || is_android || is_fuchsia
|
|
|
|
if (is_win) {
|
|
set_default_toolchain(
|
|
"//third_party/mini_chromium/mini_chromium/build:msvc_toolchain")
|
|
} else {
|
|
set_default_toolchain(
|
|
"//third_party/mini_chromium/mini_chromium/build:gcc_like_toolchain")
|
|
}
|
|
|
|
_default_configs = [
|
|
"//third_party/mini_chromium/mini_chromium/build:default",
|
|
"//third_party/mini_chromium/mini_chromium/build:Wexit_time_destructors",
|
|
|
|
# This (no-op) is added here so that build files that expect to be able to
|
|
# remove it can do so without causing an error.
|
|
"//build/config/compiler:chromium_code",
|
|
]
|
|
|
|
set_defaults("source_set") {
|
|
configs = _default_configs
|
|
}
|
|
|
|
set_defaults("static_library") {
|
|
configs = _default_configs
|
|
}
|
|
|
|
set_defaults("executable") {
|
|
configs = _default_configs
|
|
}
|
|
|
|
set_defaults("loadable_module") {
|
|
configs = _default_configs
|
|
}
|
|
|
|
set_defaults("shared_library") {
|
|
configs = _default_configs
|
|
}
|