| OLD | NEW |
| 1 # Copyright 2016 the V8 project authors. All rights reserved. | 1 # Copyright 2016 the V8 project 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 protocol_path = "//third_party/WebKit/Source/platform/inspector_protocol" | 5 protocol_path = "//third_party/WebKit/Source/platform/inspector_protocol" |
| 6 protocol_sources = [ | 6 protocol_sources = [ |
| 7 "$target_gen_dir/Console.cpp", | 7 "$target_gen_dir/Console.cpp", |
| 8 "$target_gen_dir/Console.h", | 8 "$target_gen_dir/Console.h", |
| 9 "$target_gen_dir/Debugger.cpp", | 9 "$target_gen_dir/Debugger.cpp", |
| 10 "$target_gen_dir/Debugger.h", | 10 "$target_gen_dir/Debugger.h", |
| 11 "$target_gen_dir/HeapProfiler.cpp", | 11 "$target_gen_dir/HeapProfiler.cpp", |
| 12 "$target_gen_dir/HeapProfiler.h", | 12 "$target_gen_dir/HeapProfiler.h", |
| 13 "$target_gen_dir/Profiler.cpp", | 13 "$target_gen_dir/Profiler.cpp", |
| 14 "$target_gen_dir/Profiler.h", | 14 "$target_gen_dir/Profiler.h", |
| 15 "$target_gen_dir/public/Debugger.h", |
| 16 "$target_gen_dir/public/Runtime.h", |
| 15 "$target_gen_dir/Runtime.cpp", | 17 "$target_gen_dir/Runtime.cpp", |
| 16 "$target_gen_dir/Runtime.h", | 18 "$target_gen_dir/Runtime.h", |
| 17 ] | 19 ] |
| 18 | 20 |
| 19 action("inspector_protocol_sources") { | 21 action("inspector_protocol_sources") { |
| 20 visibility = [ ":*" ] # Only targets in this file can depend on this. | 22 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 21 script = "$protocol_path/CodeGenerator.py" | 23 script = "$protocol_path/CodeGenerator.py" |
| 22 sources = [ | 24 sources = [ |
| 23 "$protocol_path/CodeGenerator.py", | 25 "$protocol_path/CodeGenerator.py", |
| 24 "$protocol_path/Exported_h.template", | 26 "$protocol_path/Exported_h.template", |
| 25 "$protocol_path/Imported_h.template", | 27 "$protocol_path/Imported_h.template", |
| 26 "$protocol_path/TypeBuilder_cpp.template", | 28 "$protocol_path/TypeBuilder_cpp.template", |
| 27 "$protocol_path/TypeBuilder_h.template", | 29 "$protocol_path/TypeBuilder_h.template", |
| 28 ] | 30 ] |
| 29 inputs = [ | 31 inputs = [ |
| 30 "js_protocol.json", | 32 "js_protocol.json", |
| 31 ] | 33 ] |
| 32 outputs = protocol_sources | 34 outputs = protocol_sources |
| 33 args = [ | 35 args = [ |
| 34 "--protocol", | 36 "--protocol", |
| 35 rebase_path("js_protocol.json", root_build_dir), | 37 rebase_path("js_protocol.json", root_build_dir), |
| 36 "--string_type", | 38 "--string_type", |
| 37 "String", | 39 "String", |
| 38 "--export_macro", | 40 "--export_macro", |
| 39 "PLATFORM_EXPORT", | 41 "PLATFORM_EXPORT", |
| 40 "--output_dir", | 42 "--output_dir", |
| 41 rebase_path(target_gen_dir, root_build_dir), | 43 rebase_path(target_gen_dir, root_build_dir), |
| 42 "--output_package", | 44 "--output_package", |
| 43 "inspector", | 45 "inspector", |
| 46 "--exported_dir", |
| 47 rebase_path("$target_gen_dir/public", root_build_dir), |
| 48 "--exported_package", |
| 49 "inspector/public", |
| 44 ] | 50 ] |
| 45 } | 51 } |
| 46 | 52 |
| 47 config("inspector_protocol_config") { | 53 config("inspector_protocol_config") { |
| 48 include_dirs = [ | 54 include_dirs = [ |
| 49 "$protocol_path/../..", | 55 "$protocol_path/../..", |
| 50 ] | 56 ] |
| 51 defines = [ | 57 defines = [ |
| 52 "V8_INSPECTOR_USE_STL" | 58 "V8_INSPECTOR_USE_STL" |
| 53 ] | 59 ] |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 "$protocol_path/Platform.h", | 99 "$protocol_path/Platform.h", |
| 94 "$protocol_path/PlatformSTL.h", | 100 "$protocol_path/PlatformSTL.h", |
| 95 "$protocol_path/String16.h", | 101 "$protocol_path/String16.h", |
| 96 "$protocol_path/String16STL.cpp", | 102 "$protocol_path/String16STL.cpp", |
| 97 "$protocol_path/String16STL.h", | 103 "$protocol_path/String16STL.h", |
| 98 "$protocol_path/ValueConversions.h", | 104 "$protocol_path/ValueConversions.h", |
| 99 "$protocol_path/Values.cpp", | 105 "$protocol_path/Values.cpp", |
| 100 "$protocol_path/Values.h", | 106 "$protocol_path/Values.h", |
| 101 ] | 107 ] |
| 102 } | 108 } |
| OLD | NEW |