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

Side by Side Diff: BUILD.gn

Issue 2568283002: Limiting SwiftShader compilation to x64 and x86 architectures (Closed)
Patch Set: Created 4 years 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 (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 # This is the root build file for GN. GN will start processing by loading this 5 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either 6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if 7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this 8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it. 9 # file to your new one or GN won't know about it.
10 10
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 } 520 }
521 521
522 if (is_ios || is_win || (is_linux && !is_chromeos)) { 522 if (is_ios || is_win || (is_linux && !is_chromeos)) {
523 deps += [ 523 deps += [
524 "//base:base_i18n_perftests", 524 "//base:base_i18n_perftests",
525 "//base:base_perftests", 525 "//base:base_perftests",
526 "//google_apis:google_apis_unittests", 526 "//google_apis:google_apis_unittests",
527 ] 527 ]
528 } 528 }
529 529
530 if (is_win || is_mac || is_linux) { 530 if ((is_win || is_mac || is_linux) &&
531 (target_cpu == "x86" || target_cpu == "x64")) {
531 deps += [ "//third_party/swiftshader" ] 532 deps += [ "//third_party/swiftshader" ]
532 } 533 }
533 534
534 # TODO(GYP): Figure out which of these should (and can) build 535 # TODO(GYP): Figure out which of these should (and can) build
535 # for chromeos/ios. 536 # for chromeos/ios.
536 if (!is_chromeos && !is_ios) { 537 if (!is_chromeos && !is_ios) {
537 deps += [ 538 deps += [
538 "//base:build_utf8_validator_tables", 539 "//base:build_utf8_validator_tables",
539 "//base:check_example", 540 "//base:check_example",
540 "//cc:cc_perftests", 541 "//cc:cc_perftests",
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 assert(target_name != "") # Mark as used. 1093 assert(target_name != "") # Mark as used.
1093 sources = invoker.actual_sources 1094 sources = invoker.actual_sources
1094 assert( 1095 assert(
1095 sources == invoker.actual_sources, 1096 sources == invoker.actual_sources,
1096 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") 1097 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283")
1097 } 1098 }
1098 1099
1099 assert_valid_out_dir("_unused") { 1100 assert_valid_out_dir("_unused") {
1100 actual_sources = [ "$root_build_dir/foo" ] 1101 actual_sources = [ "$root_build_dir/foo" ]
1101 } 1102 }
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