Chromium Code Reviews| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 513 'shell/android/shell_library_loader.h', | 513 'shell/android/shell_library_loader.h', |
| 514 'shell/android/shell_manager.cc', | 514 'shell/android/shell_manager.cc', |
| 515 'shell/android/shell_manager.h', | 515 'shell/android/shell_manager.h', |
| 516 'shell/android/shell_view.cc', | 516 'shell/android/shell_view.cc', |
| 517 'shell/android/shell_view.h', | 517 'shell/android/shell_view.h', |
| 518 ], | 518 ], |
| 519 }, | 519 }, |
| 520 { | 520 { |
| 521 'target_name': 'content_shell_apk', | 521 'target_name': 'content_shell_apk', |
| 522 'type': 'none', | 522 'type': 'none', |
| 523 'variables': { | |
| 524 'conditions': [ | |
| 525 [ 'target_arch == "arm"', { | |
|
John Grabowski
2012/05/10 15:06:18
file convention would be more 'target_arch=="ARM"'
Shouqun Liu
2012/05/11 02:45:23
Done.
| |
| 526 'content_shell_content_view_so%': '<(PRODUCT_DIR)/content_shell/ libs/armeabi/libcontent_shell_content_view.so', | |
|
John Grabowski
2012/05/10 15:06:18
Might be a bit nicer to have a new variable which
Shouqun Liu
2012/05/11 02:45:23
yes, agree, use a variable 'android_app_abi' in co
| |
| 527 }], | |
| 528 [ 'target_arch == "ia32"', { | |
| 529 'content_shell_content_view_so%': '<(PRODUCT_DIR)/content_shell/ libs/x86/libcontent_shell_content_view.so', | |
| 530 }], | |
| 531 ], | |
| 532 }, | |
| 523 'actions': [ | 533 'actions': [ |
| 524 { | 534 { |
| 525 'action_name': 'copy_base_jar', | 535 'action_name': 'copy_base_jar', |
| 526 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar'], | 536 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar'], |
| 527 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_base. jar'], | 537 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_base. jar'], |
| 528 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | 538 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], |
| 529 }, | 539 }, |
| 530 { | 540 { |
| 531 'action_name': 'copy_net_jar', | 541 'action_name': 'copy_net_jar', |
| 532 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_net.jar'], | 542 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_net.jar'], |
| 533 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_net.j ar'], | 543 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_net.j ar'], |
| 534 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | 544 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], |
| 535 }, | 545 }, |
| 536 { | 546 { |
| 537 'action_name': 'copy_media_jar', | 547 'action_name': 'copy_media_jar', |
| 538 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_media.jar'], | 548 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_media.jar'], |
| 539 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_media .jar'], | 549 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_media .jar'], |
| 540 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | 550 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], |
| 541 }, | 551 }, |
| 542 { | 552 { |
| 543 'action_name': 'copy_content_jar', | 553 'action_name': 'copy_content_jar', |
| 544 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_content.jar'], | 554 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_content.jar'], |
| 545 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_conte nt.jar'], | 555 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_conte nt.jar'], |
| 546 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | 556 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], |
| 547 }, | 557 }, |
| 548 { | 558 { |
| 549 'action_name': 'copy_and_strip_so', | 559 'action_name': 'copy_and_strip_so', |
| 550 'inputs': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'], | 560 'inputs': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'], |
| 551 'outputs': ['<(PRODUCT_DIR)/content_shell/libs/armeabi/libcontent_ shell_content_view.so'], | 561 'outputs': ['<(content_shell_content_view_so)'], |
| 552 'action': [ | 562 'action': [ |
| 553 '<!(/bin/echo -n $STRIP)', | 563 '<!(/bin/echo -n $STRIP)', |
| 554 '--strip-unneeded', # All symbols not needed for relocation. | 564 '--strip-unneeded', # All symbols not needed for relocation. |
| 555 '<@(_inputs)', | 565 '<@(_inputs)', |
| 556 '-o', | 566 '-o', |
| 557 '<@(_outputs)' | 567 '<@(_outputs)' |
| 558 ], | 568 ], |
| 559 }, | 569 }, |
| 560 { | 570 { |
| 561 'action_name': 'content_shell_apk', | 571 'action_name': 'content_shell_apk', |
| 562 'inputs': [ | 572 'inputs': [ |
| 563 '<(DEPTH)/content/shell/android/content_shell_apk.xml', | 573 '<(DEPTH)/content/shell/android/content_shell_apk.xml', |
| 564 '<(DEPTH)/content/shell/android/AndroidManifest.xml', | 574 '<(DEPTH)/content/shell/android/AndroidManifest.xml', |
| 565 '<!@(find shell/android/java -name "*.java")', | 575 '<!@(find shell/android/java -name "*.java")', |
| 566 '<!@(find shell/android/res -name "*")', | 576 '<!@(find shell/android/res -name "*")', |
| 567 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.jar', | 577 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.jar', |
| 568 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_net.jar', | 578 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_net.jar', |
| 569 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_media.jar', | 579 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_media.jar', |
| 570 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_content.jar', | 580 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_content.jar', |
| 571 '<(PRODUCT_DIR)/content_shell/libs/armeabi/libcontent_shell_cont ent_view.so', | 581 '<(content_shell_content_view_so)', |
| 572 ], | 582 ], |
| 573 'outputs': [ | 583 'outputs': [ |
| 574 # Awkwardly, we build a Debug APK even when gyp is in | 584 # Awkwardly, we build a Debug APK even when gyp is in |
| 575 # Release mode. I don't think it matters (e.g. we're | 585 # Release mode. I don't think it matters (e.g. we're |
| 576 # probably happy to not codesign) but naming should be | 586 # probably happy to not codesign) but naming should be |
| 577 # fixed. | 587 # fixed. |
| 578 '<(PRODUCT_DIR)/ContentShell-debug.apk', | 588 '<(PRODUCT_DIR)/ContentShell-debug.apk', |
| 579 ], | 589 ], |
| 580 'action': [ | 590 'action': [ |
| 581 'ant', | 591 'ant', |
| 582 '-DPRODUCT_DIR=<(PRODUCT_DIR)', | 592 '-DPRODUCT_DIR=<(PRODUCT_DIR)', |
| 583 '-buildfile', | 593 '-buildfile', |
| 584 '<(DEPTH)/content/shell/android/content_shell_apk.xml', | 594 '<(DEPTH)/content/shell/android/content_shell_apk.xml', |
| 585 ] | 595 ] |
| 586 } | 596 } |
| 587 ], | 597 ], |
| 588 }, | 598 }, |
| 589 ], | 599 ], |
| 590 }], # OS=="android" | 600 }], # OS=="android" |
| 591 ] | 601 ] |
| 592 } | 602 } |
| OLD | NEW |