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

Side by Side Diff: fusl/BUILD.gn

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 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 | « no previous file | fusl/arch/aarch64/atomic_arch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Define the sysroot directory. 5 # Define the sysroot directory.
6 sysroot = "$root_out_dir/sysroot" 6 sysroot = "$root_out_dir/sysroot"
7 sysroot_lib_dir = "${sysroot}/usr/lib" 7 sysroot_lib_dir = "${sysroot}/usr/lib"
8 sysroot_include_dir = "${sysroot}/usr/include" 8 sysroot_include_dir = "${sysroot}/usr/include"
9 sysroot_include_bits_dir = "${sysroot}/usr/include/bits"
9 10
10 config("fusl_config") { 11 config("fusl_config") {
11 cflags = [ 12 cflags = [
12 # Flags from musl 13 # Flags from musl
13 "-std=c99", 14 "-std=c99",
14 "-ffreestanding", 15 "-ffreestanding",
15 "-nostdinc", 16 "-nostdinc",
16 17
17 "-D_XOPEN_SOURCE=700", 18 "-D_XOPEN_SOURCE=700",
18 19
(...skipping 13 matching lines...) Expand all
32 include_dirs = [] 33 include_dirs = []
33 34
34 # Arch specific includes, these need to come before the general includes. 35 # Arch specific includes, these need to come before the general includes.
35 if (current_cpu == "x64") { 36 if (current_cpu == "x64") {
36 include_dirs += [ "arch/x86_64" ] 37 include_dirs += [ "arch/x86_64" ]
37 } 38 }
38 39
39 # General includes, these need to come after the arch specific includes. 40 # General includes, these need to come after the arch specific includes.
40 # src/internal must come before include. 41 # src/internal must come before include.
41 include_dirs += [ 42 include_dirs += [
43 "arch/generic",
42 "src/internal", 44 "src/internal",
43 "include", 45 "include",
44 ] 46 ]
45 } 47 }
46 48
47 config("fusl_no_stack_protector_config") { 49 config("fusl_no_stack_protector_config") {
48 cflags = [ "-fno-stack-protector" ] 50 cflags = [ "-fno-stack-protector" ]
49 } 51 }
50 52
51 static_library("libc") { 53 static_library("libc") {
52 configs = [] 54 configs = []
53 configs += [ ":fusl_config" ] 55 configs += [ ":fusl_config" ]
54 56
55 complete_static_lib = true 57 complete_static_lib = true
56 58
57 deps = [ 59 deps = [
60 "ldso",
58 "src/aio", 61 "src/aio",
59 "src/complex", 62 "src/complex",
60 "src/conf", 63 "src/conf",
61 "src/crypt", 64 "src/crypt",
62 "src/ctype", 65 "src/ctype",
63 "src/dirent", 66 "src/dirent",
64 "src/env", 67 "src/env",
65 "src/errno", 68 "src/errno",
66 "src/exit", 69 "src/exit",
67 "src/fcntl", 70 "src/fcntl",
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 112
110 copy("copy_include") { 113 copy("copy_include") {
111 sources = [ 114 sources = [
112 "include", 115 "include",
113 ] 116 ]
114 outputs = [ 117 outputs = [
115 "${sysroot_include_dir}", 118 "${sysroot_include_dir}",
116 ] 119 ]
117 } 120 }
118 121
119 copy("copy_include_bits") { 122 copy("copy_arch_include_bits") {
120 deps = [ 123 deps = [
121 ":copy_include", 124 ":copy_include",
122 ] 125 ]
123 if (current_cpu == "x64") { 126 if (current_cpu == "x64") {
124 sources = [ 127 sources = [
125 "arch/x86_64/bits", 128 "arch/generic/bits/errno.h",
129 "arch/generic/bits/poll.h",
130 "arch/generic/bits/resource.h",
131 "arch/generic/bits/sem.h",
132 "arch/generic/bits/statfs.h",
133 "arch/generic/bits/stdarg.h",
134 "arch/generic/bits/termios.h",
135 "arch/x86_64/bits/alltypes.h",
136 "arch/x86_64/bits/endian.h",
137 "arch/x86_64/bits/fcntl.h",
138 "arch/x86_64/bits/fenv.h",
139 "arch/x86_64/bits/float.h",
140 "arch/x86_64/bits/io.h",
141 "arch/x86_64/bits/ioctl.h",
142 "arch/x86_64/bits/ipc.h",
143 "arch/x86_64/bits/limits.h",
144 "arch/x86_64/bits/mman.h",
145 "arch/x86_64/bits/msg.h",
146 "arch/x86_64/bits/posix.h",
147 "arch/x86_64/bits/reg.h",
148 "arch/x86_64/bits/setjmp.h",
149 "arch/x86_64/bits/shm.h",
150 "arch/x86_64/bits/signal.h",
151 "arch/x86_64/bits/socket.h",
152 "arch/x86_64/bits/stat.h",
153 "arch/x86_64/bits/stdint.h",
154 "arch/x86_64/bits/syscall.h",
155 "arch/x86_64/bits/user.h",
126 ] 156 ]
127 } 157 }
128 outputs = [ 158 outputs = [
129 "${sysroot_include_dir}/{{source_name_part}}", 159 "${sysroot_include_bits_dir}/{{source_name_part}}.h",
130 ] 160 ]
131 } 161 }
132 162
133 copy("copy_libs") { 163 copy("copy_libs") {
134 deps = [ 164 deps = [
135 ":libc", 165 ":libc",
136 ":libm", 166 ":libm",
137 ] 167 ]
138 sources = [ 168 sources = [
139 "${target_out_dir}/libc.a", 169 "${target_out_dir}/libc.a",
140 "${target_out_dir}/libm.a", 170 "${target_out_dir}/libm.a",
141 ] 171 ]
142 outputs = [ 172 outputs = [
143 "${sysroot_lib_dir}/{{source_name_part}}.a", 173 "${sysroot_lib_dir}/{{source_name_part}}.a",
144 ] 174 ]
145 } 175 }
146 176
147 group("copy_sysroot") { 177 group("copy_sysroot") {
148 deps = [ 178 deps = [
179 ":copy_arch_include_bits",
149 ":copy_include", 180 ":copy_include",
150 ":copy_include_bits",
151 ":copy_libs", 181 ":copy_libs",
152 "crt:copy_crt_objects", 182 "crt:copy_crt_objects",
153 ] 183 ]
154 } 184 }
155 185
156 copy("copy_libcxx") { 186 copy("copy_libcxx") {
157 sources = [ 187 sources = [
158 "${target_out_dir}/../third_party/libcxx/libcxx.a", 188 "${target_out_dir}/../third_party/libcxx/libcxx.a",
159 ] 189 ]
160 outputs = [ 190 outputs = [
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 "crt", 435 "crt",
406 "//third_party/libcxx:libcxx", 436 "//third_party/libcxx:libcxx",
407 ] 437 ]
408 } 438 }
409 439
410 group("fusl") { 440 group("fusl") {
411 deps = [ 441 deps = [
412 ":fusl_pre_toolchain(//build/toolchain/fusl:fusl_$current_cpu)", 442 ":fusl_pre_toolchain(//build/toolchain/fusl:fusl_$current_cpu)",
413 ] 443 ]
414 } 444 }
OLDNEW
« no previous file with comments | « no previous file | fusl/arch/aarch64/atomic_arch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698