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

Side by Side Diff: sdk/BUILD.gn

Issue 2940723002: Exclude 'test' and 'testcases' from lib/ packages. (Closed)
Patch Set: Created 3 years, 6 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 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) 2017, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 # This GN file contains build rules for assembling the Dart SDK. There are 5 # This GN file contains build rules for assembling the Dart SDK. There are
6 # two possible variants: the "Full" SDK, and the "Platform" SDK. If you want 6 # two possible variants: the "Full" SDK, and the "Platform" SDK. If you want
7 # to make a new subset of the Full SDK, make it the same way we make 7 # to make a new subset of the Full SDK, make it the same way we make
8 # the Platform SDK. 8 # the Platform SDK.
9 # 9 #
10 # Warning: 10 # Warning:
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 deps += [ ":copy_${snapshot[0]}_snapshot" ] 378 deps += [ ":copy_${snapshot[0]}_snapshot" ]
379 } 379 }
380 } 380 }
381 381
382 # This loop generates rules for copying analyzer sources into lib/ 382 # This loop generates rules for copying analyzer sources into lib/
383 foreach(analyzer_source_dir, _analyzer_source_dirs) { 383 foreach(analyzer_source_dir, _analyzer_source_dirs) {
384 copy_tree("copy_${analyzer_source_dir}_source_dir") { 384 copy_tree("copy_${analyzer_source_dir}_source_dir") {
385 visibility = [ ":copy_analyzer_sources" ] 385 visibility = [ ":copy_analyzer_sources" ]
386 source = "../pkg/$analyzer_source_dir" 386 source = "../pkg/$analyzer_source_dir"
387 dest = "$root_out_dir/dart-sdk/lib/$analyzer_source_dir" 387 dest = "$root_out_dir/dart-sdk/lib/$analyzer_source_dir"
388 exclude = "*.svn,doc,*.py,*.gypi,*.sh,.gitignore,packages" 388 exclude = "*.svn,doc,*.py,*.gypi,*.sh,.gitignore,packages,test,testcases"
389 } 389 }
390 } 390 }
391 391
392 # This is the main rule for copying analyzer sources to lib/ 392 # This is the main rule for copying analyzer sources to lib/
393 group("copy_analyzer_sources") { 393 group("copy_analyzer_sources") {
394 visibility = [ ":create_common_sdk" ] 394 visibility = [ ":create_common_sdk" ]
395 deps = [] 395 deps = []
396 foreach(analyzer_source_dir, _analyzer_source_dirs) { 396 foreach(analyzer_source_dir, _analyzer_source_dirs) {
397 deps += [ ":copy_${analyzer_source_dir}_source_dir" ] 397 deps += [ ":copy_${analyzer_source_dir}_source_dir" ]
398 } 398 }
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 group("create_sdk") { 749 group("create_sdk") {
750 deps = [ 750 deps = [
751 ":create_common_sdk", 751 ":create_common_sdk",
752 ] 752 ]
753 if (dart_platform_sdk) { 753 if (dart_platform_sdk) {
754 deps += [ ":create_platform_sdk" ] 754 deps += [ ":create_platform_sdk" ]
755 } else { 755 } else {
756 deps += [ ":create_full_sdk" ] 756 deps += [ ":create_full_sdk" ]
757 } 757 }
758 } 758 }
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