mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
gn, mac: Get basic generation working
A couple targets compile, but not linking yet. Requires https://chromium-review.googlesource.com/c/chromium/mini_chromium/+/812410 Bug: crashpad:79 Change-Id: Ifc472628ec5233fc88c746e74a1f7b3ce0637f91 Reviewed-on: https://chromium-review.googlesource.com/811884 Commit-Queue: Scott Graham <scottmg@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
82a80acd31
commit
a4fc880278
@ -39,7 +39,6 @@ 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
|
||||
@ -91,3 +90,9 @@ set_defaults("loadable_module") {
|
||||
set_defaults("shared_library") {
|
||||
configs = _default_configs
|
||||
}
|
||||
|
||||
# These are set to constant values for Chromium build file compatibility. This
|
||||
# generally avoids extra explicit checking of whether or not Crashpad is
|
||||
# building in Chromium mode or not.
|
||||
is_ios = false
|
||||
is_component_build = false
|
||||
|
22
build/chromium_compatibility/build/config/sysroot.gni
Normal file
22
build/chromium_compatibility/build/config/sysroot.gni
Normal file
@ -0,0 +1,22 @@
|
||||
# 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.
|
||||
|
||||
# In Crashpad, sysroot.gni is in mini_chromium, forward to that one.
|
||||
import("//third_party/mini_chromium/mini_chromium/build/sysroot.gni")
|
||||
|
||||
# To avoid Chromium Mac hermetic toolchain paths without explicitly checking
|
||||
# whether building in Chromium mode.
|
||||
if (is_mac) {
|
||||
use_system_xcode = true
|
||||
}
|
@ -16,9 +16,7 @@ import("//testing/test.gni")
|
||||
|
||||
if (is_mac) {
|
||||
import("//build/config/sysroot.gni")
|
||||
}
|
||||
|
||||
if (is_mac) {
|
||||
action_foreach("mig") {
|
||||
script = "mach/mig.py"
|
||||
|
||||
@ -46,7 +44,7 @@ if (is_mac) {
|
||||
}
|
||||
args += [
|
||||
"--sdk",
|
||||
mac_sdk_path,
|
||||
sysroot,
|
||||
"--include",
|
||||
rebase_path("../compat/mac", root_build_dir),
|
||||
]
|
||||
@ -326,10 +324,8 @@ static_library("util") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base",
|
||||
|
||||
# TODO(GN): Should this point at Chromium's zlib when in Chromium?
|
||||
"../third_party/zlib",
|
||||
"//base",
|
||||
]
|
||||
|
||||
if (is_mac) {
|
||||
@ -340,6 +336,7 @@ static_library("util") {
|
||||
"IOKit.framework",
|
||||
]
|
||||
deps += [ ":mig" ]
|
||||
include_dirs += [ "$root_build_dir/gen" ]
|
||||
}
|
||||
|
||||
if (is_win) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user