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

Side by Side Diff: sky/engine/core/BUILD.gn

Issue 915293003: Rename sky/engine/bindings2 to sky/engine/bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more better Created 5 years, 10 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 | « sky/engine/bindings2/snapshot.cc.tmpl ('k') | sky/engine/core/animation/Animation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//sky/engine/build/scripts/scripts.gni") 5 import("//sky/engine/build/scripts/scripts.gni")
6 import("//sky/engine/core/core.gni") 6 import("//sky/engine/core/core.gni")
7 7
8 visibility = [ "//sky/engine/*" ] 8 visibility = [ "//sky/engine/*" ]
9 9
10 rel_sky_core_gen_dir = rebase_path(sky_core_output_dir, root_build_dir) 10 rel_sky_core_gen_dir = rebase_path(sky_core_output_dir, root_build_dir)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 static_library("core") { 56 static_library("core") {
57 output_name = "sky_core" 57 output_name = "sky_core"
58 58
59 deps = [ 59 deps = [
60 ":core_generated", 60 ":core_generated",
61 ":libraries", 61 ":libraries",
62 ":prerequisites", 62 ":prerequisites",
63 "//sky/engine/platform", 63 "//sky/engine/platform",
64 "//sky/engine/bindings2", 64 "//sky/engine/bindings",
65 "//dart/runtime/bin:libdart_withcore", 65 "//dart/runtime/bin:libdart_withcore",
66 ] 66 ]
67 67
68 sources = sky_core_files 68 sources = sky_core_files
69 69
70 forward_dependent_configs_from = [ ":libraries" ] 70 forward_dependent_configs_from = [ ":libraries" ]
71 71
72 # core and core_generated are really the same thing. 72 # core and core_generated are really the same thing.
73 allow_circular_includes_from = [ 73 allow_circular_includes_from = [
74 ":core_generated", 74 ":core_generated",
75 "//sky/engine/bindings2", 75 "//sky/engine/bindings",
76 ] 76 ]
77 } 77 }
78 78
79 source_set("testing") { 79 source_set("testing") {
80 deps = [ 80 deps = [
81 ":core", 81 ":core",
82 ":core_generated", 82 ":core_generated",
83 ":prerequisites", 83 ":prerequisites",
84 "//sky/engine/platform", 84 "//sky/engine/platform",
85 "//sky/engine/wtf", 85 "//sky/engine/wtf",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 # output_file = The .in file to write, relative to the sky_gen_dir. 133 # output_file = The .in file to write, relative to the sky_gen_dir.
134 # suffix = (Optional) String to be passed to script via --suffix 134 # suffix = (Optional) String to be passed to script via --suffix
135 template("generate_event_interfaces") { 135 template("generate_event_interfaces") {
136 action(target_name) { 136 action(target_name) {
137 # Write the file list to a unique temp file to avoid blowing out the 137 # Write the file list to a unique temp file to avoid blowing out the
138 # command line length limit. 138 # command line length limit.
139 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp" 139 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp"
140 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir)) 140 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir))
141 141
142 inputs = [ 142 inputs = [
143 "//sky/engine/bindings2/scripts/utilities.py", 143 "//sky/engine/bindings/scripts/utilities.py",
144 idl_files_list, 144 idl_files_list,
145 ] + invoker.sources 145 ] + invoker.sources
146 146
147 output_file = "$root_gen_dir/sky/" + invoker.output_file 147 output_file = "$root_gen_dir/sky/" + invoker.output_file
148 outputs = [ 148 outputs = [
149 output_file, 149 output_file,
150 ] 150 ]
151 151
152 script = "//sky/engine/bindings2/scripts/generate_event_interfaces.py" 152 script = "//sky/engine/bindings/scripts/generate_event_interfaces.py"
153 args = [ 153 args = [
154 "--event-idl-files-list", 154 "--event-idl-files-list",
155 rebase_path(idl_files_list, root_build_dir), 155 rebase_path(idl_files_list, root_build_dir),
156 "--event-interfaces-file", 156 "--event-interfaces-file",
157 rebase_path(output_file, root_build_dir), 157 rebase_path(output_file, root_build_dir),
158 "--write-file-only-if-changed=1", # Always true for Ninja. 158 "--write-file-only-if-changed=1", # Always true for Ninja.
159 ] 159 ]
160 160
161 if (defined(invoker.suffix)) { 161 if (defined(invoker.suffix)) {
162 args += [ 162 args += [
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 "$sky_core_output_dir/{{source_name_part}}.h", 488 "$sky_core_output_dir/{{source_name_part}}.h",
489 ] 489 ]
490 args = [ 490 args = [
491 "{{source}}", 491 "{{source}}",
492 rel_sky_core_gen_dir, 492 rel_sky_core_gen_dir,
493 bison_exe, 493 bison_exe,
494 ] 494 ]
495 495
496 deps = make_core_generated_deps 496 deps = make_core_generated_deps
497 } 497 }
OLDNEW
« no previous file with comments | « sky/engine/bindings2/snapshot.cc.tmpl ('k') | sky/engine/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698