Commit c04fdebd authored by bungeman's avatar bungeman Committed by Commit bot

Use gypi form of blink_skia_config.

The file blink_skia_config.gyp is changing to a gypi.
This allows easier sharing between the gyp and gn build systems.

Review URL: https://codereview.chromium.org/677513003

Cr-Commit-Position: refs/heads/master@{#301105}
parent 00c5180f
...@@ -11,6 +11,15 @@ if (cpu_arch == "arm") { ...@@ -11,6 +11,15 @@ if (cpu_arch == "arm") {
skia_support_gpu = !is_ios skia_support_gpu = !is_ios
skia_support_pdf = !is_ios && printing_mode != 0 skia_support_pdf = !is_ios && printing_mode != 0
# The list of Skia defines that are to be set for blink.
gypi_blink_skia_defines = exec_script(
"//build/gypi_to_gn.py",
[ rebase_path("//third_party/WebKit/public/blink_skia_config.gypi"),
"--replace=<(skia_include_path)=//third_party/skia/include",
"--replace=<(skia_src_path)=//third_party/skia/src" ],
"scope",
[ "//third_party/WebKit/public/blink_skia_config.gypi" ])
# The list of Skia defines that are to be set for chromium. # The list of Skia defines that are to be set for chromium.
gypi_skia_defines = exec_script( gypi_skia_defines = exec_script(
"//build/gypi_to_gn.py", "//build/gypi_to_gn.py",
...@@ -98,7 +107,8 @@ config("skia_config") { ...@@ -98,7 +107,8 @@ config("skia_config") {
"//third_party/skia/src/lazy", "//third_party/skia/src/lazy",
] ]
defines = gypi_skia_defines.skia_for_chromium_defines defines = gypi_blink_skia_defines.blink_skia_defines
defines += gypi_skia_defines.skia_for_chromium_defines
defines += [ defines += [
"SK_ENABLE_INST_COUNT=0", "SK_ENABLE_INST_COUNT=0",
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
# Skia build. # Skia build.
{ {
'includes': [ 'includes': [
# blink_skia_config.gypi defines blink_skia_defines
'../third_party/WebKit/public/blink_skia_config.gypi',
# skia_for_chromium_defines.gypi defines skia_for_chromium_defines # skia_for_chromium_defines.gypi defines skia_for_chromium_defines
'../third_party/skia/gyp/skia_for_chromium_defines.gypi', '../third_party/skia/gyp/skia_for_chromium_defines.gypi',
], ],
...@@ -156,6 +159,10 @@ ...@@ -156,6 +159,10 @@
'GR_GL_IGNORE_ES3_MSAA=0', 'GR_GL_IGNORE_ES3_MSAA=0',
'SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT', 'SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT',
# This variable contains additional defines, specified in blink's
# blink_skia_config.gypi file.
'<@(blink_skia_defines)',
# This variable contains additional defines, specified in skia's # This variable contains additional defines, specified in skia's
# skia_for_chromium_defines.gypi file. # skia_for_chromium_defines.gypi file.
'<@(skia_for_chromium_defines)', '<@(skia_for_chromium_defines)',
......
...@@ -205,14 +205,6 @@ ...@@ -205,14 +205,6 @@
], ],
}], }],
[ 'OS != "ios"', {
'dependencies': [
'../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
],
'export_dependent_settings': [
'../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
],
}],
[ 'OS != "mac"', { [ 'OS != "mac"', {
'sources/': [ 'sources/': [
['exclude', '/mac/'] ['exclude', '/mac/']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment