OLD | NEW |
1 # | 1 # |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 11 matching lines...) Expand all Loading... |
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 # | 29 # |
30 { | 30 { |
31 'includes': [ | 31 'includes': [ |
| 32 '../build/scripts/scripts.gypi', |
32 '../build/win/precompile.gypi', | 33 '../build/win/precompile.gypi', |
33 '../bindings/bindings.gypi', | 34 '../bindings/bindings.gypi', |
34 'modules.gypi', | 35 'modules.gypi', |
35 ], | 36 ], |
36 'targets': [{ | 37 'targets': [{ |
37 'target_name': 'modules', | 38 'target_name': 'modules', |
38 'type': 'static_library', | 39 'type': 'static_library', |
39 'dependencies': [ | 40 'dependencies': [ |
40 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', | 41 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', |
41 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite', | 42 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite', |
42 '../config.gyp:config', | 43 '../config.gyp:config', |
43 '../core/core.gyp:webcore', | 44 '../core/core.gyp:webcore', |
| 45 'make_modules_generated', |
44 ], | 46 ], |
45 'defines': [ | 47 'defines': [ |
46 'BLINK_IMPLEMENTATION=1', | 48 'BLINK_IMPLEMENTATION=1', |
47 'INSIDE_BLINK', | 49 'INSIDE_BLINK', |
48 ], | 50 ], |
49 'sources': [ | 51 'sources': [ |
50 '<@(modules_files)', | 52 '<@(modules_files)', |
51 '<@(bindings_modules_generated_aggregate_files)', | 53 '<@(bindings_modules_generated_aggregate_files)', |
52 ], | 54 ], |
53 # Disable c4267 warnings until we fix size_t to int truncations. | 55 # Disable c4267 warnings until we fix size_t to int truncations. |
54 'msvs_disabled_warnings': [ 4267, 4334, ] | 56 'msvs_disabled_warnings': [ 4267, 4334, ] |
55 }, | 57 }, |
56 { | 58 { |
57 'target_name': 'modules_testing', | 59 'target_name': 'modules_testing', |
58 'type': 'static_library', | 60 'type': 'static_library', |
59 'dependencies': [ | 61 'dependencies': [ |
60 '../config.gyp:config', | 62 '../config.gyp:config', |
61 '../core/core.gyp:webcore', | 63 '../core/core.gyp:webcore', |
62 ], | 64 ], |
63 'defines': [ | 65 'defines': [ |
64 'BLINK_IMPLEMENTATION=1', | 66 'BLINK_IMPLEMENTATION=1', |
65 'INSIDE_BLINK', | 67 'INSIDE_BLINK', |
66 ], | 68 ], |
67 'sources': [ | 69 'sources': [ |
68 '<@(modules_testing_files)', | 70 '<@(modules_testing_files)', |
69 ], | 71 ], |
70 | 72 |
| 73 }, |
| 74 { |
| 75 'target_name': 'make_modules_generated', |
| 76 'type': 'none', |
| 77 'hard_dependency': 1, |
| 78 'dependencies': [ |
| 79 #'generated_testing_idls', |
| 80 '../bindings/core_bindings_generated.gyp:core_bindings_generated', |
| 81 '../config.gyp:config', |
| 82 ], |
| 83 'sources': [ |
| 84 # bison rule |
| 85 '../core/css/CSSGrammar.y', |
| 86 '../core/xml/XPathGrammar.y', |
| 87 ], |
| 88 'actions': [ |
| 89 { |
| 90 'action_name': 'EventTargetModulesFactory', |
| 91 'inputs': [ |
| 92 '<@(make_event_factory_files)', |
| 93 'EventTargetModulesFactory.in', |
| 94 ], |
| 95 'outputs': [ |
| 96 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesHeaders.h', |
| 97 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesInterfaces.h', |
| 98 ], |
| 99 'action': [ |
| 100 'python', |
| 101 '../build/scripts/make_event_factory.py', |
| 102 'EventTargetModulesFactory.in', |
| 103 '--output_dir', |
| 104 '<(SHARED_INTERMEDIATE_DIR)/blink', |
| 105 ], |
| 106 }, |
| 107 { |
| 108 'action_name': 'EventTargetModulesNames', |
| 109 'inputs': [ |
| 110 '<@(make_names_files)', |
| 111 'EventTargetModulesFactory.in', |
| 112 ], |
| 113 'outputs': [ |
| 114 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesNames.cpp', |
| 115 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesNames.h', |
| 116 ], |
| 117 'action': [ |
| 118 'python', |
| 119 '../build/scripts/make_names.py', |
| 120 'EventTargetModulesFactory.in', |
| 121 '--output_dir', |
| 122 '<(SHARED_INTERMEDIATE_DIR)/blink', |
| 123 ], |
| 124 }, |
| 125 ], |
71 }], | 126 }], |
72 } | 127 } |
OLD | NEW |