| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'content_shell_product_name': 'Content Shell', | 7 'content_shell_product_name': 'Content Shell', |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 ], | 594 ], |
| 595 }], | 595 }], |
| 596 ], | 596 ], |
| 597 }, | 597 }, |
| 598 { | 598 { |
| 599 # content_shell_apk creates a .jar as a side effect. Any java targets | 599 # content_shell_apk creates a .jar as a side effect. Any java targets |
| 600 # that need that .jar in their classpath should depend on this target, | 600 # that need that .jar in their classpath should depend on this target, |
| 601 # content_shell_java. | 601 # content_shell_java. |
| 602 'target_name': 'content_shell_java', | 602 'target_name': 'content_shell_java', |
| 603 'type': 'none', | 603 'type': 'none', |
| 604 'outputs': [ | 604 'variables': { |
| 605 '<(PRODUCT_DIR)/lib.java/chromium_content_shell.jar', | 605 'output_jar': '<(PRODUCT_DIR)/lib.java/chromium_apk_content_shell.ja
r' |
| 606 ], | 606 }, |
| 607 'outputs': ['<(output_jar)'], |
| 607 'dependencies': [ | 608 'dependencies': [ |
| 608 'content_java', | 609 'content_java', |
| 609 'content_shell_apk', | 610 'content_shell_apk', |
| 610 '../base/base.gyp:base_java', | 611 '../base/base.gyp:base_java', |
| 611 '../media/media.gyp:media_java', | 612 '../media/media.gyp:media_java', |
| 612 '../net/net.gyp:net_java', | 613 '../net/net.gyp:net_java', |
| 613 '../ui/ui.gyp:ui_java', | 614 '../ui/ui.gyp:ui_java', |
| 614 ], | 615 ], |
| 615 # This all_dependent_settings is used for java targets only. This will | 616 # This all_dependent_settings is used for java targets only. This will |
| 616 # add the content_shell jar to the classpath of dependent java | 617 # add the content_shell jar to the classpath of dependent java |
| 617 # targets. | 618 # targets. |
| 618 'all_dependent_settings': { | 619 'all_dependent_settings': { |
| 619 'variables': { | 620 'variables': { |
| 620 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_content_she
ll.jar'], | 621 'input_jars_paths': ['<(output_jar)'], |
| 621 }, | 622 }, |
| 622 }, | 623 }, |
| 623 # Add an action with the appropriate output. This allows the generated | 624 # Add an action with the appropriate output. This allows the generated |
| 624 # buildfiles to determine which target the output corresponds to. | 625 # buildfiles to determine which target the output corresponds to. |
| 625 'actions': [ | 626 'actions': [ |
| 626 { | 627 { |
| 627 'action_name': 'fake_generate_jar', | 628 'action_name': 'fake_generate_jar', |
| 628 'inputs': [], | 629 'inputs': [], |
| 629 'outputs': ['<(PRODUCT_DIR)/lib.java/chromium_content_shell.jar'], | 630 'outputs': ['<(output_jar)'], |
| 630 'action': [], | 631 'action': [], |
| 631 }, | 632 }, |
| 632 ], | 633 ], |
| 633 }, | 634 }, |
| 634 { | 635 { |
| 635 'target_name': 'content_shell_apk', | 636 'target_name': 'content_shell_apk', |
| 636 'type': 'none', | 637 'type': 'none', |
| 637 'dependencies': [ | 638 'dependencies': [ |
| 638 'content_java', | 639 'content_java', |
| 639 '../base/base.gyp:base_java', | 640 '../base/base.gyp:base_java', |
| (...skipping 24 matching lines...) Expand all Loading... |
| 664 '<@(_outputs)', | 665 '<@(_outputs)', |
| 665 ], | 666 ], |
| 666 }, | 667 }, |
| 667 ], | 668 ], |
| 668 'includes': [ '../build/java_apk.gypi' ], | 669 'includes': [ '../build/java_apk.gypi' ], |
| 669 }, | 670 }, |
| 670 ], | 671 ], |
| 671 }], # OS=="android" | 672 }], # OS=="android" |
| 672 ] | 673 ] |
| 673 } | 674 } |
| OLD | NEW |