Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: content/content_shell.gypi

Issue 10693157: Add pak file support for content shell and android apks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve review comments. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 '<(SHARED_INTERMEDIATE_DIR)/content/shell', 526 '<(SHARED_INTERMEDIATE_DIR)/content/shell',
527 ], 527 ],
528 'sources': [ 528 'sources': [
529 'shell/android/shell_library_loader.cc', 529 'shell/android/shell_library_loader.cc',
530 'shell/android/shell_library_loader.h', 530 'shell/android/shell_library_loader.h',
531 'shell/android/shell_manager.cc', 531 'shell/android/shell_manager.cc',
532 'shell/android/shell_manager.h', 532 'shell/android/shell_manager.h',
533 'shell/android/shell_view.cc', 533 'shell/android/shell_view.cc',
534 'shell/android/shell_view.h', 534 'shell/android/shell_view.h',
535 ], 535 ],
536 'sources!': [
537 'shell/shell_main.cc',
538 'shell/shell_main.h',
539 ],
536 'conditions': [ 540 'conditions': [
537 ['android_build_type==1', { 541 ['android_build_type==1', {
538 'ldflags': [ 542 'ldflags': [
539 '-lgabi++', # For rtti 543 '-lgabi++', # For rtti
540 ], 544 ],
541 }], 545 }],
542 ], 546 ],
543 }, 547 },
544 { 548 {
545 'target_name': 'content_shell_apk', 549 'target_name': 'content_shell_apk',
(...skipping 25 matching lines...) Expand all
571 }, 575 },
572 { 576 {
573 'action_name': 'copy_and_strip_so', 577 'action_name': 'copy_and_strip_so',
574 'inputs': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'], 578 'inputs': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'],
575 'outputs': ['<(PRODUCT_DIR)/content_shell/libs/<(android_app_abi)/ libcontent_shell_content_view.so'], 579 'outputs': ['<(PRODUCT_DIR)/content_shell/libs/<(android_app_abi)/ libcontent_shell_content_view.so'],
576 'action': [ 580 'action': [
577 '<!(/bin/echo -n $STRIP)', 581 '<!(/bin/echo -n $STRIP)',
578 '--strip-unneeded', # All symbols not needed for relocation. 582 '--strip-unneeded', # All symbols not needed for relocation.
579 '<@(_inputs)', 583 '<@(_inputs)',
580 '-o', 584 '-o',
581 '<@(_outputs)' 585 '<@(_outputs)'
582 ], 586 ],
583 }, 587 },
584 { 588 {
585 'action_name': 'content_shell_apk', 589 'action_name': 'content_shell_apk',
586 'inputs': [ 590 'inputs': [
587 '<(DEPTH)/content/shell/android/java/content_shell_apk.xml', 591 '<(DEPTH)/content/shell/android/java/content_shell_apk.xml',
588 '<(DEPTH)/content/shell/android/AndroidManifest.xml', 592 '<(DEPTH)/content/shell/android/AndroidManifest.xml',
589 '<!@(find shell/android/java -name "*.java")', 593 '<!@(find shell/android/java -name "*.java")',
590 '<!@(find shell/android/res -name "*")', 594 '<!@(find shell/android/res -name "*")',
591 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.jar', 595 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.jar',
592 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_net.jar', 596 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_net.jar',
593 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_media.jar', 597 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_media.jar',
594 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_content.jar', 598 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_content.jar',
599 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
595 '<(PRODUCT_DIR)/content_shell/libs/<(android_app_abi)/libcontent _shell_content_view.so', 600 '<(PRODUCT_DIR)/content_shell/libs/<(android_app_abi)/libcontent _shell_content_view.so',
596 ], 601 ],
597 'outputs': [ 602 'outputs': [
598 # Awkwardly, we build a Debug APK even when gyp is in 603 # Awkwardly, we build a Debug APK even when gyp is in
599 # Release mode. I don't think it matters (e.g. we're 604 # Release mode. I don't think it matters (e.g. we're
600 # probably happy to not codesign) but naming should be 605 # probably happy to not codesign) but naming should be
601 # fixed. 606 # fixed.
602 '<(PRODUCT_DIR)/ContentShell-debug.apk', 607 '<(PRODUCT_DIR)/ContentShell-debug.apk',
603 ], 608 ],
604 'action': [ 609 'action': [
605 'ant', 610 'ant',
606 '-DPRODUCT_DIR=<(ant_build_out)', 611 '-DPRODUCT_DIR=<(ant_build_out)',
607 '-DAPP_ABI=<(android_app_abi)', 612 '-DAPP_ABI=<(android_app_abi)',
608 '-buildfile', 613 '-buildfile',
609 '<(DEPTH)/content/shell/android/java/content_shell_apk.xml', 614 '<(DEPTH)/content/shell/android/java/content_shell_apk.xml',
610 ] 615 ]
611 } 616 }
612 ], 617 ],
613 }, 618 },
614 ], 619 ],
615 }], # OS=="android" 620 }], # OS=="android"
616 ] 621 ]
617 } 622 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698