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

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: Strip debug symbols from libcronet_standalone library. 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.h » ('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=hidden',
787 '-fvisibility-inlines-hidden',
788 '-Wno-sign-promo',
789 '-Wno-missing-field-initializers',
790 ],
791 'ldflags': [
792 '-llog',
793 '-Wl,--gc-sections',
794 '-Wl,--exclude-libs,ALL'
795 ],
796 },
797 {
798 'target_name': 'libcronet',
799 'type': 'shared_library',
800 'sources': [
801 'cronet/ios/Cronet.h',
802 'cronet/ios/Cronet.mm',
803 ],
804 'dependencies': [
805 'cronet_static',
806 '../base/base.gyp:base',
807 ],
808 },
809 {
810 'target_name': 'cronet_test',
kapishnikov 2016/04/08 23:54:18 Should we rename the target to |cronet_ios_test| t
mef 2016/04/09 00:52:29 I like the idea, I'm not sure about the name. On
811 'type': 'executable',
812 'dependencies': [
813 'cronet_static',
814 '../net/net.gyp:net_quic_proto',
815 '../net/net.gyp:net_test_support',
816 '../net/net.gyp:simple_quic_tools',
817 '../testing/gtest.gyp:gtest',
818 ],
819 'sources': [
820 'cronet/ios/test/cronet_bidirectional_stream_test.mm',
821 'cronet/ios/test/cronet_test_runner.mm',
822 'cronet/ios/test/quic_test_server.cc',
823 'cronet/ios/test/quic_test_server.h',
824 ],
825 'mac_bundle_resources': [
826 '../net/data/ssl/certificates/quic_test.example.com.crt',
827 '../net/data/ssl/certificates/quic_test.example.com.key',
828 '../net/data/ssl/certificates/quic_test.example.com.key.pkcs8',
829 '../net/data/ssl/certificates/quic_test.example.com.key.sct',
830 ],
831 'include_dirs': [
832 '..',
833 ],
834 },
835 {
836 # Build this target to package a standalone Cronet in a single
837 # .a file.
838 'target_name': 'cronet_package',
839 'type': 'none',
840 'variables' : {
841 'package_dir': '<(PRODUCT_DIR)/cronet',
842 },
843 'dependencies': [
844 # Depend on the dummy target so that all of CrNet's dependencies
845 # are built before packaging.
846 'libcronet',
847 ],
848 'actions': [
849 {
850 'action_name': 'Package Cronet',
851 'variables': {
852 'tool_path':
853 'cronet/tools/link_dependencies.py',
854 },
855 # Actions need an inputs list, even if it's empty.
856 'inputs': [
857 '<(tool_path)',
858 '<(PRODUCT_DIR)/libcronet.dylib',
859 ],
860 # Only specify one output, since this will be libtool's output.
861 'outputs': [ '<(package_dir)/libcronet_standalone_with_symbols.a ' ],
862 'action': ['<(tool_path)',
863 '<(PRODUCT_DIR)',
864 'libcronet.dylib',
865 '<@(_outputs)',
866 ],
867 },
868 {
869 'action_name': 'Stripping standalone library',
870 # Actions need an inputs list, even if it's empty.
871 'inputs': [
872 '<(package_dir)/libcronet_standalone_with_symbols.a',
873 ],
874 # Only specify one output, since this will be libtool's output.
875 'outputs': [ '<(package_dir)/libcronet_standalone.a' ],
876 'action': ['strip',
877 '-S',
878 '<@(_inputs)',
879 '-o',
880 '<@(_outputs)',
881 ],
882 },
883 ],
884 'copies': [
885 {
886 'destination': '<(package_dir)',
887 'files': [
888 '../chrome/VERSION',
889 # TODO(mef): Strip debug symbols using "strip -u -r ..."
890 '<(PRODUCT_DIR)/libboringssl.a',
891 '<(PRODUCT_DIR)/libcronet_static.a',
892 '<(PRODUCT_DIR)/libcronet.dylib',
893 'cronet/ios/Cronet.h',
894 'cronet/ios/cronet_c_for_grpc.h',
895 'cronet/ios/cronet_environment.h',
896 ],
897 },
898 {
899 'destination': '<(package_dir)/test',
900 'files': [
901 'cronet/ios/test/cronet_bidirectional_stream_test.mm',
902 'cronet/ios/test/cronet_test_runner.mm',
903 ],
904 },
905 ],
906 },
907 ],
908 }], # OS=="ios"
725 ], 909 ],
726 } 910 }
OLDNEW
« no previous file with comments | « no previous file | components/cronet/ios/Cronet.h » ('j') | components/cronet/ios/Cronet.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698