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

Side by Side Diff: BUILD.gn

Issue 2248323002: Fix BUILD.gn for arch other then x86 and x64 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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
« 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 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 declare_args() { 6 declare_args() {
7 } 7 }
8 8
9 skia_public_includes = [ 9 skia_public_includes = [
10 "include/android", 10 "include/android",
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 gpu_gypi = exec_script("gn/gypi_to_gn.py", 111 gpu_gypi = exec_script("gn/gypi_to_gn.py",
112 [ 112 [
113 rebase_path("gyp/gpu.gypi"), 113 rebase_path("gyp/gpu.gypi"),
114 "--replace=<(skia_include_path)=include", 114 "--replace=<(skia_include_path)=include",
115 "--replace=<(skia_src_path)=src", 115 "--replace=<(skia_src_path)=src",
116 ], 116 ],
117 "scope", 117 "scope",
118 [ "gyp/gpu.gypi" ]) 118 [ "gyp/gpu.gypi" ])
119 119
120 opts_gypi = exec_script("gn/gypi_to_gn.py", 120 is_x86 = current_cpu == "x64" || current_cpu == "x86"
121 [ 121 if (is_x86) {
122 rebase_path("gyp/opts.gypi"), 122 opts_gypi = exec_script("gn/gypi_to_gn.py",
123 "--replace=<(skia_include_path)=include", 123 [
124 "--replace=<(skia_src_path)=src", 124 rebase_path("gyp/opts.gypi"),
125 ], 125 "--replace=<(skia_include_path)=include",
126 "scope", 126 "--replace=<(skia_src_path)=src",
127 [ "gyp/opts.gypi" ]) 127 ],
128 "scope",
129 [ "gyp/opts.gypi" ])
130 }
128 131
129 pdf_gypi = exec_script("gn/gypi_to_gn.py", 132 pdf_gypi = exec_script("gn/gypi_to_gn.py",
130 [ 133 [
131 rebase_path("gyp/pdf.gypi"), 134 rebase_path("gyp/pdf.gypi"),
132 "--replace=<(skia_include_path)=include", 135 "--replace=<(skia_include_path)=include",
133 "--replace=<(skia_src_path)=src", 136 "--replace=<(skia_src_path)=src",
134 ], 137 ],
135 "scope", 138 "scope",
136 [ "gyp/pdf.gypi" ]) 139 [ "gyp/pdf.gypi" ])
137 140
138 utils_gypi = exec_script("gn/gypi_to_gn.py", 141 utils_gypi = exec_script("gn/gypi_to_gn.py",
139 [ 142 [
140 rebase_path("gyp/utils.gypi"), 143 rebase_path("gyp/utils.gypi"),
141 "--replace=<(skia_include_path)=include", 144 "--replace=<(skia_include_path)=include",
142 "--replace=<(skia_src_path)=src", 145 "--replace=<(skia_src_path)=src",
143 ], 146 ],
144 "scope", 147 "scope",
145 [ "gyp/utils.gypi" ]) 148 [ "gyp/utils.gypi" ])
146 149
147 is_x86 = current_cpu == "x64" || current_cpu == "x86"
148
149 if (is_x86) { 150 if (is_x86) {
mtklein 2016/08/17 12:43:39 Let's try to fix this differently, by adding opts_
anmittal 2016/08/17 18:11:54 Done.
150 source_set("opts_sse2") { 151 source_set("opts_sse2") {
151 configs += skia_library_configs 152 configs += skia_library_configs
152 sources = opts_gypi.sse2_sources 153 sources = opts_gypi.sse2_sources
153 cflags = [ "-msse2" ] 154 cflags = [ "-msse2" ]
154 } 155 }
155 156
156 source_set("opts_ssse3") { 157 source_set("opts_ssse3") {
157 configs += skia_library_configs 158 configs += skia_library_configs
158 sources = opts_gypi.ssse3_sources 159 sources = opts_gypi.ssse3_sources
159 cflags = [ "-mssse3" ] 160 cflags = [ "-mssse3" ]
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 ":skia", 524 ":skia",
524 ":tool_utils", 525 ":tool_utils",
525 ] 526 ]
526 } 527 }
527 528
528 test_lib("experimental_svg_model") { 529 test_lib("experimental_svg_model") {
529 public_include_dirs = [ "experimental/svg/model" ] 530 public_include_dirs = [ "experimental/svg/model" ]
530 sources = [ 531 sources = [
531 "experimental/svg/model/SkSVGAttribute.cpp", 532 "experimental/svg/model/SkSVGAttribute.cpp",
532 "experimental/svg/model/SkSVGAttributeParser.cpp", 533 "experimental/svg/model/SkSVGAttributeParser.cpp",
534 "experimental/svg/model/SkSVGCircle.cpp",
533 "experimental/svg/model/SkSVGContainer.cpp", 535 "experimental/svg/model/SkSVGContainer.cpp",
534 "experimental/svg/model/SkSVGCircle.cpp",
535 "experimental/svg/model/SkSVGDOM.cpp", 536 "experimental/svg/model/SkSVGDOM.cpp",
536 "experimental/svg/model/SkSVGEllipse.cpp", 537 "experimental/svg/model/SkSVGEllipse.cpp",
537 "experimental/svg/model/SkSVGNode.cpp", 538 "experimental/svg/model/SkSVGNode.cpp",
538 "experimental/svg/model/SkSVGPath.cpp", 539 "experimental/svg/model/SkSVGPath.cpp",
539 "experimental/svg/model/SkSVGPoly.cpp", 540 "experimental/svg/model/SkSVGPoly.cpp",
540 "experimental/svg/model/SkSVGRect.cpp", 541 "experimental/svg/model/SkSVGRect.cpp",
541 "experimental/svg/model/SkSVGRenderContext.cpp", 542 "experimental/svg/model/SkSVGRenderContext.cpp",
542 "experimental/svg/model/SkSVGSVG.cpp", 543 "experimental/svg/model/SkSVGSVG.cpp",
543 "experimental/svg/model/SkSVGShape.cpp", 544 "experimental/svg/model/SkSVGShape.cpp",
544 "experimental/svg/model/SkSVGTransformableNode.cpp", 545 "experimental/svg/model/SkSVGTransformableNode.cpp",
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 "tools/SkShaper_harfbuzz.cpp", 604 "tools/SkShaper_harfbuzz.cpp",
604 "tools/using_skia_and_harfbuzz.cpp", 605 "tools/using_skia_and_harfbuzz.cpp",
605 ] 606 ]
606 deps = [ 607 deps = [
607 ":skia", 608 ":skia",
608 "//third_party/harfbuzz", 609 "//third_party/harfbuzz",
609 ] 610 ]
610 testonly = true 611 testonly = true
611 } 612 }
612 } 613 }
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