OLD | NEW |
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 enable_printing = true # TODO(brettw) pass this feature flag in somehow. | 5 enable_printing = true # TODO(brettw) pass this feature flag in somehow. |
6 skia_support_gpu = !is_ios | 6 skia_support_gpu = !is_ios |
7 skia_support_pdf = !is_ios && enable_printing | 7 skia_support_pdf = !is_ios && enable_printing |
8 | 8 |
9 # External-facing config for dependent code. | 9 # External-facing config for dependent code. |
10 config("skia_config") { | 10 config("skia_config") { |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 if (component_mode == "static_library") { | 1106 if (component_mode == "static_library") { |
1107 group("skia") { | 1107 group("skia") { |
1108 deps = [ | 1108 deps = [ |
1109 ":skia_library", | 1109 ":skia_library", |
1110 ":skia_chrome", | 1110 ":skia_chrome", |
1111 ] | 1111 ] |
1112 forward_dependent_configs_from = deps | 1112 forward_dependent_configs_from = deps |
1113 } | 1113 } |
1114 | 1114 |
1115 static_library("skia_library") { | 1115 static_library("skia_library") { |
1116 external = true | |
1117 sources = skia_library_sources | 1116 sources = skia_library_sources |
1118 | 1117 |
1119 deps = [ | 1118 deps = [ |
1120 ":skia_opts", | 1119 ":skia_opts", |
1121 "//third_party/zlib", | 1120 "//third_party/zlib", |
1122 ] | 1121 ] |
1123 | 1122 |
1124 if (skia_support_pdf) { | 1123 if (skia_support_pdf) { |
1125 deps += [ "//third_party/sfntly" ] | 1124 deps += [ "//third_party/sfntly" ] |
1126 } else { | 1125 } else { |
(...skipping 17 matching lines...) Expand all Loading... |
1144 "//third_party/icu:icuuc", | 1143 "//third_party/icu:icuuc", |
1145 ] | 1144 ] |
1146 } | 1145 } |
1147 } | 1146 } |
1148 | 1147 |
1149 config("skia_chrome_config") { | 1148 config("skia_chrome_config") { |
1150 include_dirs = [ "ext" ] | 1149 include_dirs = [ "ext" ] |
1151 } | 1150 } |
1152 | 1151 |
1153 static_library("skia_chrome") { | 1152 static_library("skia_chrome") { |
1154 external = true | |
1155 sources = skia_chrome_sources | 1153 sources = skia_chrome_sources |
1156 | 1154 |
1157 configs -= [ "//build/config/compiler:chromium_code" ] | 1155 configs -= [ "//build/config/compiler:chromium_code" ] |
1158 configs += [ | 1156 configs += [ |
1159 ":skia_config", | 1157 ":skia_config", |
1160 "//build/config/compiler:no_chromium_code", | 1158 "//build/config/compiler:no_chromium_code", |
1161 ] | 1159 ] |
1162 direct_dependent_configs = [ ":skia_chrome_config" ] | 1160 direct_dependent_configs = [ ":skia_chrome_config" ] |
1163 | 1161 |
1164 deps = [ | 1162 deps = [ |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 ":skia_config", | 1298 ":skia_config", |
1301 "//build/config/compiler:no_chromium_code" | 1299 "//build/config/compiler:no_chromium_code" |
1302 ] | 1300 ] |
1303 | 1301 |
1304 if (is_linux) { | 1302 if (is_linux) { |
1305 cflags = [ "-msse3" ] | 1303 cflags = [ "-msse3" ] |
1306 } else if (is_mac) { | 1304 } else if (is_mac) { |
1307 cflags = [ "-mssse3" ] # Note the third 's'. | 1305 cflags = [ "-mssse3" ] # Note the third 's'. |
1308 } | 1306 } |
1309 } | 1307 } |
OLD | NEW |