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

Side by Side Diff: BUILD.gn

Issue 1403813002: Enable optimization when compiling for NaCl with GN (Closed) Base URL: http://libyuv.googlecode.com/svn/trunk
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The LibYuv Project Authors. All rights reserved. 1 # Copyright 2014 The LibYuv Project Authors. All rights reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 defines += [ "LIBYUV_DISABLE_X86" ] 95 defines += [ "LIBYUV_DISABLE_X86" ]
96 } 96 }
97 97
98 deps = [ 98 deps = [
99 "//third_party:jpeg", 99 "//third_party:jpeg",
100 ] 100 ]
101 101
102 if (use_neon) { 102 if (use_neon) {
103 deps += [ ":libyuv_neon" ] 103 deps += [ ":libyuv_neon" ]
104 } 104 }
105
106 if (is_nacl) {
107 # Always enable optimization under NaCl to workaround crbug.com/538243 .
108 configs -= [ "//build/config/compiler:default_optimization" ]
109 configs += [ "//build/config/compiler:optimize_max" ]
110 }
105 } 111 }
106 112
107 if (use_neon) { 113 if (use_neon) {
108 static_library("libyuv_neon") { 114 static_library("libyuv_neon") {
109 sources = [ 115 sources = [
110 "source/compare_neon.cc", 116 "source/compare_neon.cc",
111 "source/compare_neon64.cc", 117 "source/compare_neon64.cc",
112 "source/rotate_neon.cc", 118 "source/rotate_neon.cc",
113 "source/rotate_neon64.cc", 119 "source/rotate_neon64.cc",
114 "source/row_neon.cc", 120 "source/row_neon.cc",
115 "source/row_neon64.cc", 121 "source/row_neon64.cc",
116 "source/scale_neon.cc", 122 "source/scale_neon.cc",
117 "source/scale_neon64.cc", 123 "source/scale_neon64.cc",
118 ] 124 ]
119 125
120 public_configs = [ ":libyuv_config" ] 126 public_configs = [ ":libyuv_config" ]
121 127
122 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] 128 configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
123 cflags = [ "-mfpu=neon" ] 129 cflags = [ "-mfpu=neon" ]
124 } 130 }
125 } 131 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698