Commit 7b6128ac authored by rockot's avatar rockot Committed by Commit bot

Add gypi_to_gn for content/utility sources list

BUG=None

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

Cr-Commit-Position: refs/heads/master@{#330393}
parent 76ebffc0
...@@ -128,6 +128,7 @@ exec_script_whitelist = [ ...@@ -128,6 +128,7 @@ exec_script_whitelist = [
"//content/public/android/BUILD.gn", "//content/public/android/BUILD.gn",
"//content/renderer/renderer.gni", "//content/renderer/renderer.gni",
"//content/test/BUILD.gn", "//content/test/BUILD.gn",
"//content/utility/utility.gni",
"//extensions/common/api/schemas.gni", "//extensions/common/api/schemas.gni",
"//extensions/extensions.gni", "//extensions/extensions.gni",
"//extensions/shell/app_shell.gni", "//extensions/shell/app_shell.gni",
......
...@@ -7,22 +7,30 @@ ...@@ -7,22 +7,30 @@
'../base/base.gyp:base', '../base/base.gyp:base',
'../courgette/courgette.gyp:courgette_lib', '../courgette/courgette.gyp:courgette_lib',
], ],
'sources': [ 'variables': {
'public/utility/content_utility_client.cc', 'utility_sources': [
'public/utility/content_utility_client.h', 'utility/in_process_utility_thread.cc',
'public/utility/utility_thread.cc', 'utility/in_process_utility_thread.h',
'public/utility/utility_thread.h', 'utility/utility_blink_platform_impl.cc',
'utility/in_process_utility_thread.cc', 'utility/utility_blink_platform_impl.h',
'utility/in_process_utility_thread.h', 'utility/utility_main.cc',
'utility/utility_blink_platform_impl.cc', 'utility/utility_thread_impl.cc',
'utility/utility_blink_platform_impl.h', 'utility/utility_thread_impl.h',
'utility/utility_main.cc', 'utility/webthread_impl_for_utility_thread.cc',
'utility/utility_thread_impl.cc', 'utility/webthread_impl_for_utility_thread.h',
'utility/utility_thread_impl.h', ],
'utility/webthread_impl_for_utility_thread.cc', 'public_utility_sources': [
'utility/webthread_impl_for_utility_thread.h', 'public/utility/content_utility_client.cc',
], 'public/utility/content_utility_client.h',
'public/utility/utility_thread.cc',
'public/utility/utility_thread.h',
],
},
'include_dirs': [ 'include_dirs': [
'..', '..',
], ],
'sources': [
'<@(public_utility_sources)',
'<@(utility_sources)',
],
} }
...@@ -2,22 +2,15 @@ ...@@ -2,22 +2,15 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//content/utility/utility.gni")
source_set("utility") { source_set("utility") {
# Only the public target should depend on this. All other targets (even # Only the public target should depend on this. All other targets (even
# internal content ones) should depend on the public one. # internal content ones) should depend on the public one.
visibility = [ "//content/public/utility:utility_sources" ] visibility = [ "//content/public/utility:utility_sources" ]
sources = [ sources =
"in_process_utility_thread.cc", rebase_path(content_utility_gypi_values.utility_sources, ".", "//content")
"in_process_utility_thread.h",
"utility_blink_platform_impl.cc",
"utility_blink_platform_impl.h",
"utility_main.cc",
"utility_thread_impl.cc",
"utility_thread_impl.h",
"webthread_impl_for_utility_thread.cc",
"webthread_impl_for_utility_thread.h",
]
configs += [ "//content:content_implementation" ] configs += [ "//content:content_implementation" ]
......
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file defines the content utility gypi values. This file is read once and
# cached, which is a performance optimization that allows us to share the
# results of parsing the .gypi file between the public and private BUILD.gn
# files. It also saves us from duplicating this exec_script call.
content_utility_gypi_values =
exec_script("//build/gypi_to_gn.py",
[
rebase_path("../content_utility.gypi"),
"--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir",
],
"scope",
[ "../content_utility.gypi" ])
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