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

Side by Side Diff: third_party/libwebp/BUILD.gn

Issue 1363793002: Port the order_profiling GYP flag to GN (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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/arm.gni") 5 import("//build/config/arm.gni")
6 6
7 config("libwebp_config") { 7 config("libwebp_config") {
8 include_dirs = [ "." ] 8 include_dirs = [ "." ]
9 } 9 }
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 ] 75 ]
76 configs -= [ "//build/config/compiler:chromium_code" ] 76 configs -= [ "//build/config/compiler:chromium_code" ]
77 configs += [ "//build/config/compiler:no_chromium_code" ] 77 configs += [ "//build/config/compiler:no_chromium_code" ]
78 78
79 all_dependent_configs = [ ":libwebp_config" ] 79 all_dependent_configs = [ ":libwebp_config" ]
80 deps = [ 80 deps = [
81 ":libwebp_utils", 81 ":libwebp_utils",
82 ] 82 ]
83 if (is_android) { 83 if (is_android) {
84 deps += [ "//third_party/android_tools:cpu_features" ] 84 deps += [ "//third_party/android_tools:cpu_features" ]
85
86 configs -= [ "//build/config/android:default_finstrument_functions" ]
87 configs += [ "//build/config/android:no_finstrument_functions" ]
85 } 88 }
86
87 # TODO(GYP):
88 # 'conditions': [
89 # ['order_profiling != 0', {
90 # 'target_conditions' : [
91 # ['_toolset=="target"', {
92 # 'cflags!': [ '-finstrument-functions' ],
93 # }],
94 # ],
95 # }],
96 # ],
97 } 89 }
98 90
99 if (use_dsp_neon) { 91 if (use_dsp_neon) {
100 source_set("libwebp_dsp_neon") { 92 source_set("libwebp_dsp_neon") {
101 sources = [ 93 sources = [
102 "dsp/dec_neon.c", 94 "dsp/dec_neon.c",
103 "dsp/enc_neon.c", 95 "dsp/enc_neon.c",
104 "dsp/lossless_neon.c", 96 "dsp/lossless_neon.c",
105 "dsp/upsampling_neon.c", 97 "dsp/upsampling_neon.c",
106 ] 98 ]
107 99
108 include_dirs = [ "." ] 100 include_dirs = [ "." ]
109 101
110 if (current_cpu == "arm") { 102 if (current_cpu == "arm") {
111 # behavior similar to *.c.neon in an Android.mk 103 # behavior similar to *.c.neon in an Android.mk
112 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] 104 configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
113 cflags = [ "-mfpu=neon" ] 105 cflags = [ "-mfpu=neon" ]
114 } else if (current_cpu == "arm64") { 106 } else if (current_cpu == "arm64") {
115 # avoid an ICE with gcc-4.9: b/15574841 107 # avoid an ICE with gcc-4.9: b/15574841
116 cflags = [ "-frename-registers" ] 108 cflags = [ "-frename-registers" ]
117 } 109 }
118 110
119 # TODO(GYP): 111 if (is_android) {
120 # ['order_profiling != 0', { 112 configs -= [ "//build/config/android:default_finstrument_functions" ]
121 # 'target_conditions' : [ 113 configs += [ "//build/config/android:no_finstrument_functions" ]
122 # ['_toolset=="target"', { 114 }
123 # 'cflags!': [ '-finstrument-functions' ],
124 # }],
125 # ],
126 # }],
127 # ],
128 # }
129 } 115 }
130 } # use_dsp_neon 116 } # use_dsp_neon
131 117
132 source_set("libwebp_enc") { 118 source_set("libwebp_enc") {
133 sources = [ 119 sources = [
134 "enc/alpha.c", 120 "enc/alpha.c",
135 "enc/analysis.c", 121 "enc/analysis.c",
136 "enc/backward_references.c", 122 "enc/backward_references.c",
137 "enc/config.c", 123 "enc/config.c",
138 "enc/cost.c", 124 "enc/cost.c",
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 ":libwebp_demux", 184 ":libwebp_demux",
199 ":libwebp_dsp", 185 ":libwebp_dsp",
200 ":libwebp_enc", 186 ":libwebp_enc",
201 ":libwebp_utils", 187 ":libwebp_utils",
202 ] 188 ]
203 public_configs = [ ":libwebp_config" ] 189 public_configs = [ ":libwebp_config" ]
204 if (use_dsp_neon) { 190 if (use_dsp_neon) {
205 deps += [ ":libwebp_dsp_neon" ] 191 deps += [ ":libwebp_dsp_neon" ]
206 } 192 }
207 } 193 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698