| 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 # The "19" is so that sites that sniff for version think that this is | 8 # The "19" is so that sites that sniff for version think that this is |
| 9 # something reasonably current; the "77.34.5" is a hint that this isn't a | 9 # something reasonably current; the "77.34.5" is a hint that this isn't a |
| 10 # standard Chrome. | 10 # standard Chrome. |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 ['android_build_type==1', { | 585 ['android_build_type==1', { |
| 586 'ldflags': [ | 586 'ldflags': [ |
| 587 '-lgabi++', # For rtti | 587 '-lgabi++', # For rtti |
| 588 ], | 588 ], |
| 589 }], | 589 }], |
| 590 ], | 590 ], |
| 591 }, | 591 }, |
| 592 { | 592 { |
| 593 # content_shell_apk creates a .jar as a side effect. Any java targets | 593 # content_shell_apk creates a .jar as a side effect. Any java targets |
| 594 # that need that .jar in their classpath should depend on this target, | 594 # that need that .jar in their classpath should depend on this target, |
| 595 # content_shell_java. | 595 # content_shell_java. Dependents of content_shell_apk receive its jar |
| 596 # path in the variable 'apk_output_jar_path'. |
| 596 'target_name': 'content_shell_java', | 597 'target_name': 'content_shell_java', |
| 597 'type': 'none', | 598 'type': 'none', |
| 598 'variables': { | |
| 599 'output_jar': '<(PRODUCT_DIR)/lib.java/chromium_apk_content_shell.ja
r' | |
| 600 }, | |
| 601 'outputs': ['<(output_jar)'], | |
| 602 'dependencies': [ | 599 'dependencies': [ |
| 603 'content_java', | |
| 604 'content_shell_apk', | 600 'content_shell_apk', |
| 605 '../base/base.gyp:base_java', | |
| 606 '../media/media.gyp:media_java', | |
| 607 '../net/net.gyp:net_java', | |
| 608 '../ui/ui.gyp:ui_java', | |
| 609 ], | 601 ], |
| 610 # This all_dependent_settings is used for java targets only. This will | 602 # This all_dependent_settings is used for java targets only. This will |
| 611 # add the content_shell jar to the classpath of dependent java | 603 # add the content_shell jar to the classpath of dependent java |
| 612 # targets. | 604 # targets. |
| 613 'all_dependent_settings': { | 605 'all_dependent_settings': { |
| 614 'variables': { | 606 'variables': { |
| 615 'input_jars_paths': ['<(output_jar)'], | 607 'input_jars_paths': ['>(apk_output_jar_path)'], |
| 616 }, | 608 }, |
| 617 }, | 609 }, |
| 618 # Add an action with the appropriate output. This allows the generated | 610 # Add an action with the appropriate output. This allows the generated |
| 619 # buildfiles to determine which target the output corresponds to. | 611 # buildfiles to determine which target the output corresponds to. |
| 620 'actions': [ | 612 'actions': [ |
| 621 { | 613 { |
| 622 'action_name': 'fake_generate_jar', | 614 'action_name': 'fake_generate_jar', |
| 623 'inputs': [], | 615 'inputs': [], |
| 624 'outputs': ['<(output_jar)'], | 616 'outputs': ['>(apk_output_jar_path)'], |
| 625 'action': [], | 617 'action': [], |
| 626 }, | 618 }, |
| 627 ], | 619 ], |
| 628 }, | 620 }, |
| 629 { | 621 { |
| 630 'target_name': 'content_shell_apk', | 622 'target_name': 'content_shell_apk', |
| 631 'type': 'none', | 623 'type': 'none', |
| 632 'dependencies': [ | 624 'dependencies': [ |
| 633 'content_java', | 625 'content_java', |
| 634 '../base/base.gyp:base_java', | 626 '../base/base.gyp:base_java', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 646 'resource_dir': '../res', | 638 'resource_dir': '../res', |
| 647 'native_libs_paths': ['<(SHARED_LIB_DIR)/libcontent_shell_content_vi
ew.so'], | 639 'native_libs_paths': ['<(SHARED_LIB_DIR)/libcontent_shell_content_vi
ew.so'], |
| 648 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/cont
ent_shell.pak'], | 640 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/cont
ent_shell.pak'], |
| 649 }, | 641 }, |
| 650 'includes': [ '../build/java_apk.gypi' ], | 642 'includes': [ '../build/java_apk.gypi' ], |
| 651 }, | 643 }, |
| 652 ], | 644 ], |
| 653 }], # OS=="android" | 645 }], # OS=="android" |
| 654 ] | 646 ] |
| 655 } | 647 } |
| OLD | NEW |