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

Side by Side Diff: build/toolchain/mac/BUILD.gn

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | tools/gn/BUILD.gn » ('j') | tools/gn/function_toolchain.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires
6 # some enhancements since the commands on Mac are slightly different than on 6 # some enhancements since the commands on Mac are slightly different than on
7 # Linux. 7 # Linux.
8 8
9 import("../goma.gni") 9 import("../goma.gni")
10 import("//build/config/ios/ios_sdk.gni") 10 import("//build/config/ios/ios_sdk.gni")
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 ] 111 ]
112 default_output_extension = ".a" 112 default_output_extension = ".a"
113 output_prefix = "lib" 113 output_prefix = "lib"
114 } 114 }
115 115
116 tool("solink") { 116 tool("solink") {
117 dylib = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" # e g "./libfoo.dylib" 117 dylib = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}" # e g "./libfoo.dylib"
118 rspfile = dylib + ".rsp" 118 rspfile = dylib + ".rsp"
119 119
120 # These variables are not built into GN but are helpers that implement 120 # These variables are not built into GN but are helpers that implement
121 # (1) linking to produce a .so, (2) extracting the symbols from that file 121 # (1) linking to produce a .dylib, (2) extracting the symbols from that
122 # to a temporary file, (3) if the temporary file has differences from the 122 # file to a temporary file, (3) if the temporary file has differences from
123 # existing .TOC file, overwrite it, otherwise, don't change it. 123 # the existing .TOC file, overwrite it, otherwise, don't change it.
124 # 124 #
125 # As a special case, if the library reexports symbols from other dynamic 125 # As a special case, if the library reexports symbols from other dynamic
126 # libraries, we always update the .TOC and skip the temporary file and 126 # libraries, we always update the .TOC and skip the temporary file and
127 # diffing steps, since that library always needs to be re-linked. 127 # diffing steps, since that library always needs to be re-linked.
128 tocname = dylib + ".TOC" 128 tocname = dylib + ".TOC"
129 temporary_tocname = dylib + ".tmp" 129 temporary_tocname = dylib + ".tmp"
130 130
131 does_reexport_command = "[ ! -e $dylib -o ! -e $tocname ] || otool -l $dyl ib | grep -q LC_REEXPORT_DYLIB" 131 does_reexport_command = "[ ! -e $dylib -o ! -e $tocname ] || otool -l $dyl ib | grep -q LC_REEXPORT_DYLIB"
132 132
133 link_command = "$ld -shared {{ldflags}} -o $dylib -Wl,-filelist,$rspfile" 133 link_command = "$ld -shared {{ldflags}} -o $dylib -Wl,-filelist,$rspfile"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 250 }
251 251
252 mac_toolchain("x64") { 252 mac_toolchain("x64") {
253 toolchain_cpu = "x64" 253 toolchain_cpu = "x64"
254 toolchain_os = "mac" 254 toolchain_os = "mac"
255 cc = "${goma_prefix}/gcc" 255 cc = "${goma_prefix}/gcc"
256 cxx = "${goma_prefix}/g++" 256 cxx = "${goma_prefix}/g++"
257 ld = cxx 257 ld = cxx
258 is_clang = false 258 is_clang = false
259 } 259 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/BUILD.gn » ('j') | tools/gn/function_toolchain.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698