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

Side by Side Diff: tools/gn/secondary/build/config/mac/BUILD.gn

Issue 22290010: Add support for data deps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove switch Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/secondary/base/BUILD.gn ('k') | tools/gn/target.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 (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 # On Mac, this is usefor everything except static libraries. 5 # On Mac, this is usefor everything except static libraries.
6 config("mac_dynamic_flags") { 6 config("mac_dynamic_flags") {
7 ldflags = [ 7 ldflags = [
8 "-Wl,-search_paths_first", 8 "-Wl,-search_paths_first",
9 ] 9 ]
10 } 10 }
(...skipping 22 matching lines...) Expand all
33 depfile = "\$out.d" 33 depfile = "\$out.d"
34 deps = "gcc" 34 deps = "gcc"
35 } 35 }
36 tool("objcxx") { 36 tool("objcxx") {
37 command = "$cxx -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_cc \ $cflags_objcc \$cflags_pch_objcc -c \$in -o \$out" 37 command = "$cxx -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_cc \ $cflags_objcc \$cflags_pch_objcc -c \$in -o \$out"
38 description = "OBJCXX \$out" 38 description = "OBJCXX \$out"
39 depfile = "\$out.d" 39 depfile = "\$out.d"
40 deps = "gcc" 40 deps = "gcc"
41 } 41 }
42 tool("alink") { 42 tool("alink") {
43 command = "rm -f \$out && ./gyp-mac-tool filter-libtool libtool \$libtool_fl ags -static -o \$out \$in\$postbuilds" 43 command = "rm -f \$out && ./gyp-mac-tool filter-libtool libtool \$libtool_fl ags -static -o \$out \$in \$postbuilds"
44 description = "LIBTOOL-STATIC \$out, POSTBUILDS" 44 description = "LIBTOOL-STATIC \$out, POSTBUILDS"
45 } 45 }
46 tool("solink") { 46 tool("solink") {
47 command = "if [ ! -e \$lib -o ! -e \${lib}.TOC ] || otool -l \$lib | grep -q LC_REEXPORT_DYLIB ; then $ld -shared \$ldflags -o \$lib \$in \$solibs \$libs\$p ostbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.TOC; else $ld -shared \$ldflags -o \$li b \$in \$solibs \$libs\$postbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.tmp && if ! cm p -s \${lib}.tmp \${lib}.TOC; then mv \${lib}.tmp \${lib}.TOC ; fi; fi" 47 command = "if [ ! -e \$lib -o ! -e \${lib}.TOC ] || otool -l \$lib | grep -q LC_REEXPORT_DYLIB ; then $ld -shared \$ldflags -o \$lib \$in \$solibs \$libs \$ postbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.TOC; else $ld -shared \$ldflags -o \$l ib \$in \$solibs \$libs \$postbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5 ; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.tmp && if ! cmp -s \${lib}.tmp \${lib}.TOC; then mv \${lib}.tmp \${lib}.TOC ; fi; fi"
48 description = "SOLINK \$lib, POSTBUILDS" 48 description = "SOLINK \$lib, POSTBUILDS"
49 #pool = "link_pool" 49 #pool = "link_pool"
50 restat = "1" 50 restat = "1"
51 } 51 }
52 tool("solink_module") {
53 command = "if [ ! -e \$lib -o ! -e \${lib}.TOC ] || otool -l \$lib | grep -q LC_REEXPORT_DYLIB ; then $ld -shared \$ldflags -o \$lib \$in \$solibs \$libs\$p ostbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.TOC; else $ld -shared \$ldflags -o \$li b \$in \$solibs \$libs\$postbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.tmp && if ! cm p -s \${lib}.tmp \${lib}.TOC; then mv \${lib}.tmp \${lib}.TOC ; fi; fi"
54 description = "SOLINK(module) \$lib, POSTBUILDS"
55 #pool = "link_pool"
56 restat = "1"
57 }
58 tool("link") { 52 tool("link") {
59 command = "$ld \$ldflags -o \$out \$in \$solibs \$libs\$postbuilds" 53 command = "$ld \$ldflags -o \$out \$in \$solibs \$libs \$postbuilds"
60 description = "LINK \$out, POSTBUILDS" 54 description = "LINK \$out, POSTBUILDS"
61 #pool = "link_pool" 55 #pool = "link_pool"
62 } 56 }
63 #tool("infoplist") { 57 #tool("infoplist") {
64 # command = "$cc -E -P -Wno-trigraphs -x c \$defines \$in -o \$out && plutil -convert xml1 \$out \$out" 58 # command = "$cc -E -P -Wno-trigraphs -x c \$defines \$in -o \$out && plutil -convert xml1 \$out \$out"
65 # description = "INFOPLIST \$out" 59 # description = "INFOPLIST \$out"
66 #} 60 #}
67 #tool("mac_tool") { 61 #tool("mac_tool") {
68 # command = "\$env ./gyp-mac-tool \$mactool_cmd \$in \$out" 62 # command = "\$env ./gyp-mac-tool \$mactool_cmd \$in \$out"
69 # description = "MACTOOL \$mactool_cmd \$in" 63 # description = "MACTOOL \$mactool_cmd \$in"
70 #} 64 #}
71 #tool("package_framework") { 65 #tool("package_framework") {
72 # command = "./gyp-mac-tool package-framework \$out \$version\$postbuilds && touch \$out" 66 # command = "./gyp-mac-tool package-framework \$out \$version \$postbuilds && touch \$out"
73 # description = "PACKAGE FRAMEWORK \$out, POSTBUILDS" 67 # description = "PACKAGE FRAMEWORK \$out, POSTBUILDS"
74 #} 68 #}
75 tool("stamp") { 69 tool("stamp") {
76 command = "\${postbuilds}touch \$out" 70 command = "\${postbuilds}touch \$out"
77 description = "STAMP \$out" 71 description = "STAMP \$out"
78 } 72 }
79 tool("copy") { 73 tool("copy") {
80 command = "ln -f \$in \$out 2>/dev/null || (rm -rf \$out && cp -af \$in \$ou t)" 74 command = "ln -f \$in \$out 2>/dev/null || (rm -rf \$out && cp -af \$in \$ou t)"
81 description = "COPY \$in \$out" 75 description = "COPY \$in \$out"
82 } 76 }
83 } 77 }
OLDNEW
« no previous file with comments | « tools/gn/secondary/base/BUILD.gn ('k') | tools/gn/target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698