Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: build/config/fuchsia/BUILD.gn

Issue 2784063002: Config changes to support target_os="fuchsia" (Closed)
Patch Set: ahem Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | build/config/fuchsia/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2017 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
5 import("//build/config/sysroot.gni")
6
7 assert(is_fuchsia)
8 assert(is_posix)
9
10 config("compiler") {
11 configs = [
12 ":compiler_sysroot",
13 ":compiler_target",
14 ]
15
16 libs = [
17 "mxio",
18 "magenta",
19 "unwind",
20 ]
21 }
22
23 config("compiler_sysroot") {
24 # The sole purpose of SYSROOT_VERSION is to change the command line on every
25 # sysroot update so as to force rebuilds.
26 defines = [ "SYSROOT_VERSION=$sysroot_version" ]
27 cflags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
Nico 2017/05/11 18:04:14 https://cs.chromium.org/chromium/src/build/config/
scottmg 2017/05/11 18:16:36 Huh, I thought it didn't (I have no idea why I wou
28 ldflags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
29 asmflags = cflags
30 }
31
32 config("compiler_target") {
33 cflags = []
34 ldflags = []
35 if (current_cpu == "arm64") {
36 cflags += [ "--target=aarch64-fuchsia" ]
37 ldflags += [ "--target=aarch64-fuchsia" ]
38 } else if (current_cpu == "x64") {
39 cflags += [ "--target=x86_64-fuchsia" ]
40 ldflags += [ "--target=x86_64-fuchsia" ]
41 } else {
42 assert(false, "Unsupported architecture")
43 }
44 asmflags = cflags
45 }
OLDNEW
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | build/config/fuchsia/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698