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

Side by Side Diff: components/cronet.gypi

Issue 1858483002: Cronet for iOS with C API for GRPC support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@small
Patch Set: Address Helen's comments Created 4 years, 8 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
« no previous file with comments | « no previous file | components/cronet/ios/Cronet.h » ('j') | components/cronet/ios/Cronet.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 'conditions': [ 6 'conditions': [
7 ['OS=="android"', { 7 ['OS=="android"', {
8 'targets': [ 8 'targets': [
9 { 9 {
10 'target_name': 'cronet_jni_headers', 10 'target_name': 'cronet_jni_headers',
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 'buildflag_flags': [ 715 'buildflag_flags': [
716 'USE_PLATFORM_ICU_ALTERNATIVES=<(use_platform_icu_alternatives)', 716 'USE_PLATFORM_ICU_ALTERNATIVES=<(use_platform_icu_alternatives)',
717 ], 717 ],
718 }, 718 },
719 } 719 }
720 ], 720 ],
721 'variables': { 721 'variables': {
722 'enable_data_reduction_proxy_support%': 0, 722 'enable_data_reduction_proxy_support%': 0,
723 }, 723 },
724 }], # OS=="android" 724 }], # OS=="android"
725 ['OS=="ios"', {
726 'targets': [
727 { # TODO(mef): Dedup this with copy in OS=="android" section.
728 'target_name': 'cronet_version_header',
729 'type': 'none',
730 # Need to set hard_depency flag because cronet_version generates a
731 # header.
732 'hard_dependency': 1,
733 'direct_dependent_settings': {
734 'include_dirs': [
735 '<(SHARED_INTERMEDIATE_DIR)/',
736 ],
737 },
738 'actions': [
739 {
740 'action_name': 'version_header',
741 'message': 'Generating version header file: <@(_outputs)',
742 'inputs': [
743 '<(version_path)',
744 'cronet/version.h.in',
745 ],
746 'outputs': [
747 '<(SHARED_INTERMEDIATE_DIR)/components/cronet/version.h',
748 ],
749 'action': [
750 'python',
751 '<(version_py_path)',
752 '-e', 'VERSION_FULL="<(version_full)"',
753 'cronet/version.h.in',
754 '<@(_outputs)',
755 ],
756 'includes': [
757 '../build/util/version.gypi',
758 ],
759 },
760 ],
761 },
762 {
763 'target_name': 'cronet_static',
764 'type': 'static_library',
765 'sources': [
766 'cronet/ios/Cronet.h',
767 'cronet/ios/Cronet.mm',
768 'cronet/ios/cronet_bidirectional_stream.h',
769 'cronet/ios/cronet_bidirectional_stream.cc',
770 'cronet/ios/cronet_c_for_grpc.h',
771 'cronet/ios/cronet_c_for_grpc.cc',
772 'cronet/ios/cronet_environment.cc',
773 'cronet/ios/cronet_environment.h',
774 'cronet/url_request_context_config.cc',
775 'cronet/url_request_context_config.h',
776 ],
777 'dependencies': [
778 'cronet_version_header',
779 '../base/base.gyp:base',
780 '../net/net.gyp:net',
781 ],
782 'cflags': [
783 '-fdata-sections',
784 '-ffunction-sections',
785 '-fno-rtti',
786 '-fvisibility-inlines-hidden',
787 '-Wno-sign-promo',
788 '-Wno-missing-field-initializers',
789 ],
790 'ldflags': [
791 '-llog',
792 '-Wl,--gc-sections',
793 '-Wl,--exclude-libs,ALL'
794 ],
795 },
796 {
797 'target_name': 'libcronet',
798 'type': 'shared_library',
799 'sources': [
800 'cronet/ios/Cronet.h',
801 'cronet/ios/Cronet.mm',
802 ],
803 'dependencies': [
804 'cronet_static',
805 '../base/base.gyp:base',
806 ],
807 },
808 {
809 'target_name': 'cronet_test',
810 'type': 'executable',
811 'dependencies': [
812 'cronet_static',
813 '../net/net.gyp:net_quic_proto',
814 '../net/net.gyp:net_test_support',
815 '../net/net.gyp:simple_quic_tools',
816 '../testing/gtest.gyp:gtest',
817 ],
818 'sources': [
819 'cronet/ios/test/cronet_bidirectional_stream_test.mm',
820 'cronet/ios/test/cronet_test_runner.mm',
821 'cronet/ios/test/quic_test_server.cc',
822 'cronet/ios/test/quic_test_server.h',
823 ],
824 'mac_bundle_resources': [
825 '../net/data/ssl/certificates/quic_test.example.com.crt',
826 '../net/data/ssl/certificates/quic_test.example.com.key',
827 '../net/data/ssl/certificates/quic_test.example.com.key.pkcs8',
828 '../net/data/ssl/certificates/quic_test.example.com.key.sct',
829 ],
830 'include_dirs': [
831 '..',
832 ],
833 },
834 {
835 # Build this target to package a standalone Cronet in a single
836 # .a file.
837 'target_name': 'cronet_package',
838 'type': 'none',
839 'variables' : {
840 'package_dir': '<(PRODUCT_DIR)/cronet',
841 },
842 'dependencies': [
843 # Depend on the dummy target so that all of CrNet's dependencies
844 # are built before packaging.
845 'libcronet',
846 ],
847 'actions': [
848 {
849 'action_name': 'Package Cronet',
850 'variables': {
851 'tool_path':
852 'cronet/tools/link_dependencies.py',
853 },
854 # Actions need an inputs list, even if it's empty.
855 'inputs': [
856 '<(tool_path)',
857 '<(PRODUCT_DIR)/libcronet.dylib',
858 ],
859 # Only specify one output, since this will be libtool's output.
860 'outputs': [ '<(package_dir)/libcronet_standalone_with_symbols.a ' ],
861 'action': ['<(tool_path)',
862 '<(PRODUCT_DIR)',
863 'libcronet.dylib',
864 '<@(_outputs)',
865 ],
866 },
867 {
868 'action_name': 'Stripping standalone library',
869 # Actions need an inputs list, even if it's empty.
870 'inputs': [
871 '<(package_dir)/libcronet_standalone_with_symbols.a',
872 ],
873 # Only specify one output, since this will be libtool's output.
874 'outputs': [ '<(package_dir)/libcronet_standalone.a' ],
875 'action': ['strip',
876 '-S',
877 '<@(_inputs)',
878 '-o',
879 '<@(_outputs)',
880 ],
881 },
882 ],
883 'copies': [
884 {
885 'destination': '<(package_dir)',
886 'files': [
887 '../chrome/VERSION',
888 'cronet/ios/Cronet.h',
889 'cronet/ios/cronet_c_for_grpc.h',
890 'cronet/ios/cronet_environment.h',
891 ],
892 },
893 {
894 'destination': '<(package_dir)/test',
895 'files': [
896 'cronet/ios/test/cronet_bidirectional_stream_test.mm',
897 'cronet/ios/test/cronet_test_runner.mm',
898 ],
899 },
900 {
901 'destination': '<(package_dir)/boringssl',
902 'files': [
903 '<(PRODUCT_DIR)/libboringssl.a',
904 '../third_party/boringssl/src/include',
905 ],
906 },
907 ],
908 },
909 ],
910 }], # OS=="ios"
725 ], 911 ],
726 } 912 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/ios/Cronet.h » ('j') | components/cronet/ios/Cronet.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698