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

Side by Side Diff: sync/sync.gyp

Issue 10443068: Add APK targets for sql_unittests and sync_unit_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ninja build fix. Created 8 years, 6 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
« no previous file with comments | « sql/sql.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 # The core sync library. 10 # The core sync library.
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 'sources': [ 683 'sources': [
684 'api/sync_change_unittest.cc', 684 'api/sync_change_unittest.cc',
685 'api/sync_error_unittest.cc', 685 'api/sync_error_unittest.cc',
686 ], 686 ],
687 }, 687 },
688 }, 688 },
689 689
690 # The unit test executable for sync tests. 690 # The unit test executable for sync tests.
691 { 691 {
692 'target_name': 'sync_unit_tests', 692 'target_name': 'sync_unit_tests',
693 'type': 'executable', 693 'type': '<(gtest_target_type)',
694 'dependencies': [ 694 'dependencies': [
695 '../base/base.gyp:run_all_unittests', 695 '../base/base.gyp:run_all_unittests',
696 'sync_tests', 696 'sync_tests',
697 'sync_notifier_tests', 697 'sync_notifier_tests',
698 'syncapi_core_tests', 698 'syncapi_core_tests',
699 'syncapi_service_tests', 699 'syncapi_service_tests',
700 ], 700 ],
701 # TODO(akalin): This is needed because histogram.cc uses 701 # TODO(akalin): This is needed because histogram.cc uses
702 # leak_annotations.h, which pulls this in. Make 'base' 702 # leak_annotations.h, which pulls this in. Make 'base'
703 # propagate this dependency. 703 # propagate this dependency.
704 'conditions': [ 704 'conditions': [
705 ['OS=="linux" and linux_use_tcmalloc==1', { 705 ['OS=="linux" and linux_use_tcmalloc==1', {
706 'dependencies': [ 706 'dependencies': [
707 '../base/allocator/allocator.gyp:allocator', 707 '../base/allocator/allocator.gyp:allocator',
708 ], 708 ],
709 }], 709 }],
710 ['OS=="linux" and chromeos==1', { 710 ['OS=="linux" and chromeos==1', {
711 # TODO(kochi): Remove this once we get rid of dependency from 711 # TODO(kochi): Remove this once we get rid of dependency from
712 # get_session_name.cc. 712 # get_session_name.cc.
713 'dependencies': [ 713 'dependencies': [
714 '../chrome/chrome.gyp:browser', 714 '../chrome/chrome.gyp:browser',
715 ], 715 ],
716 }], 716 }],
717 ['OS == "android" and gtest_target_type == "shared_library"', {
718 'dependencies': [
719 '../testing/android/native_test.gyp:native_test_native_code',
720 ],
721 }],
717 ], 722 ],
718 }, 723 },
719 724
720 # A tool to listen to sync notifications and print them out. 725 # A tool to listen to sync notifications and print them out.
721 { 726 {
722 'target_name': 'sync_listen_notifications', 727 'target_name': 'sync_listen_notifications',
723 'type': 'executable', 728 'type': 'executable',
724 'dependencies': [ 729 'dependencies': [
725 '../base/base.gyp:base', 730 '../base/base.gyp:base',
726 '../jingle/jingle.gyp:notifier', 731 '../jingle/jingle.gyp:notifier',
727 '../net/net.gyp:net', 732 '../net/net.gyp:net',
728 '../net/net.gyp:net_test_support', 733 '../net/net.gyp:net_test_support',
729 'sync', 734 'sync',
730 'sync_notifier', 735 'sync_notifier',
731 ], 736 ],
732 'sources': [ 737 'sources': [
733 'tools/sync_listen_notifications.cc', 738 'tools/sync_listen_notifications.cc',
734 ], 739 ],
735 }, 740 },
736 ], 741 ],
742 'conditions': [
743 # Special target to wrap a gtest_target_type==shared_library
744 # sync_unit_tests into an android apk for execution.
745 ['OS == "android" and gtest_target_type == "shared_library"', {
746 'targets': [
747 {
748 'target_name': 'sync_unit_tests_apk',
749 'type': 'none',
750 'dependencies': [
751 '../base/base.gyp:base_java',
752 'sync_unit_tests',
753 ],
754 'variables': {
755 'test_suite_name': 'sync_unit_tests',
756 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sync_unit _tests<(SHARED_LIB_SUFFIX)',
757 'input_jars_paths': [ '<(PRODUCT_DIR)/lib.java/chromium_base.jar', ] ,
758 },
759 'includes': [ '../build/apk_test.gypi' ],
760 },
761 ],
762 }],
763 ],
737 } 764 }
OLDNEW
« no previous file with comments | « sql/sql.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698