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

Unified Diff: build/config/ios/rules.gni

Issue 2245513002: Always enable intermediate source_set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dependency
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/ios/rules.gni
diff --git a/build/config/ios/rules.gni b/build/config/ios/rules.gni
index e21779fd43e9392e175a1324de811be6fb956d34..0ceb265883c8bdc0c6aed720b6323cae8e9509bd 100644
--- a/build/config/ios/rules.gni
+++ b/build/config/ios/rules.gni
@@ -6,12 +6,6 @@ import("//build/config/ios/ios_sdk.gni")
import("//build/config/mac/base_rules.gni")
import("//build/config/mac/symbols.gni")
-# Control whether an intermediate source_set is used when building executables
-# and shared_libraries for ios_app_bundle and ios_framework_bundle. This is a
-# temporary flag that will be removed once scoped_nsobject_unittest{_arc}.mm
-# tests are passing with this flag set to true (see crbug.com/637065)
-_use_intermediate_source_set = false
-
# Invokes lipo on multiple arch-specific binaries to create a fat binary.
#
# Arguments
@@ -375,30 +369,25 @@ template("ios_app_bundle") {
_arch_executable_target = _target_name + "_arch_executable"
_lipo_executable_target = _target_name + "_executable"
- if (_use_intermediate_source_set) {
- source_set(_arch_executable_source) {
- forward_variables_from(invoker,
- "*",
- [
- "bundle_deps",
- "bundle_deps_filter",
- "bundle_extension",
- "enable_code_signing",
- "entitlements_path",
- "extra_substitutions",
- "extra_system_frameworks",
- "info_plist",
- "info_plist_target",
- "output_name",
- "product_type",
- "visibility",
- ])
+ source_set(_arch_executable_source) {
+ forward_variables_from(invoker,
+ "*",
+ [
+ "bundle_deps",
+ "bundle_deps_filter",
+ "bundle_extension",
+ "enable_code_signing",
+ "entitlements_path",
+ "extra_substitutions",
+ "extra_system_frameworks",
+ "info_plist",
+ "info_plist_target",
+ "output_name",
+ "product_type",
+ "visibility",
+ ])
- visibility = [ ":$_arch_executable_target" ]
- }
- } else {
- assert(_arch_executable_source != "",
- "mark _arch_executable_source as used")
+ visibility = [ ":$_arch_executable_target" ]
}
if (use_ios_simulator) {
@@ -426,9 +415,6 @@ template("ios_app_bundle") {
"sources",
"visibility",
])
- if (!_use_intermediate_source_set) {
- forward_variables_from(invoker, [ "sources" ])
- }
visibility = [ ":$_lipo_executable_target($default_toolchain)" ]
if (current_toolchain != default_toolchain) {
@@ -438,9 +424,7 @@ template("ios_app_bundle") {
if (!defined(deps)) {
deps = []
}
- if (_use_intermediate_source_set) {
- deps += [ ":$_arch_executable_source" ]
- }
+ deps += [ ":$_arch_executable_source" ]
if (!defined(libs)) {
libs = []
@@ -878,38 +862,33 @@ template("ios_framework_bundle") {
_arch_shared_library_target = _target_name + "_arch_shared_library"
_lipo_shared_library_target = _target_name + "_shared_library"
- if (_use_intermediate_source_set) {
- source_set(_arch_shared_library_source) {
- forward_variables_from(invoker,
- "*",
- [
- "bundle_deps",
- "bundle_deps_filter",
- "data_deps",
- "enable_code_signing",
- "info_plist",
- "info_plist_target",
- "output_name",
- "visibility",
- ])
+ source_set(_arch_shared_library_source) {
+ forward_variables_from(invoker,
+ "*",
+ [
+ "bundle_deps",
+ "bundle_deps_filter",
+ "data_deps",
+ "enable_code_signing",
+ "info_plist",
+ "info_plist_target",
+ "output_name",
+ "visibility",
+ ])
- visibility = [ ":$_arch_shared_library_target" ]
+ visibility = [ ":$_arch_shared_library_target" ]
- if (_has_public_headers) {
- configs += [
- ":$_framework_headers_config($default_toolchain)",
- ":$_headers_map_config($default_toolchain)",
- ]
+ if (_has_public_headers) {
+ configs += [
+ ":$_framework_headers_config($default_toolchain)",
+ ":$_headers_map_config($default_toolchain)",
+ ]
- if (!defined(deps)) {
- deps = []
- }
- deps += [ ":$_framework_headers_target($default_toolchain)" ]
+ if (!defined(deps)) {
+ deps = []
}
+ deps += [ ":$_framework_headers_target($default_toolchain)" ]
}
- } else {
- assert(_arch_shared_library_source != "",
- "mark _arch_shared_library_source as used")
}
shared_library(_arch_shared_library_target) {
@@ -926,9 +905,6 @@ template("ios_framework_bundle") {
"sources",
"visibility",
])
- if (!_use_intermediate_source_set) {
- forward_variables_from(invoker, [ "sources" ])
- }
visibility = [ ":$_lipo_shared_library_target($default_toolchain)" ]
if (current_toolchain != default_toolchain) {
@@ -938,21 +914,7 @@ template("ios_framework_bundle") {
if (!defined(deps)) {
deps = []
}
- if (_use_intermediate_source_set) {
- deps += [ ":$_arch_shared_library_source" ]
- } else {
- if (_has_public_headers) {
- configs += [
- ":$_framework_headers_config($default_toolchain)",
- ":$_headers_map_config($default_toolchain)",
- ]
-
- if (!defined(deps)) {
- deps = []
- }
- deps += [ ":$_framework_headers_target($default_toolchain)" ]
- }
- }
+ deps += [ ":$_arch_shared_library_source" ]
output_extension = ""
output_name = _output_name
« 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