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

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: Make it syncable 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
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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 '<(SHARED_LIB_DIR)/<(native_lib)', 724 '<(SHARED_LIB_DIR)/<(native_lib)',
725 ], 725 ],
726 }, 726 },
727 ], 727 ],
728 }, 728 },
729 ], 729 ],
730 'variables': { 730 'variables': {
731 'enable_data_reduction_proxy_support%': 0, 731 'enable_data_reduction_proxy_support%': 0,
732 }, 732 },
733 }], # OS=="android" 733 }], # OS=="android"
734 ['OS=="ios"', {
735 'targets': [
736 { # TODO(mef): Dedup this with copy in OS=="android" section.
737 'target_name': 'cronet_version_header',
738 'type': 'none',
739 # Need to set hard_depency flag because cronet_version generates a
740 # header.
741 'hard_dependency': 1,
742 'direct_dependent_settings': {
743 'include_dirs': [
744 '<(SHARED_INTERMEDIATE_DIR)/',
745 ],
746 },
747 'actions': [
748 {
749 'action_name': 'version_header',
750 'message': 'Generating version header file: <@(_outputs)',
751 'inputs': [
752 '<(version_path)',
753 'cronet/version.h.in',
754 ],
755 'outputs': [
756 '<(SHARED_INTERMEDIATE_DIR)/components/cronet/version.h',
757 ],
758 'action': [
759 'python',
760 '<(version_py_path)',
761 '-e', 'VERSION_FULL="<(version_full)"',
762 'cronet/version.h.in',
763 '<@(_outputs)',
764 ],
765 'includes': [
766 '../build/util/version.gypi',
767 ],
768 },
769 ],
770 },
771 {
772 'target_name': 'cronet_static',
773 'type': 'static_library',
774 'sources': [
775 'cronet/ios/cronet_bidirectional_stream.h',
776 'cronet/ios/cronet_bidirectional_stream.cc',
777 'cronet/ios/cronet_c_for_grpc.h',
778 'cronet/ios/cronet_c_for_grpc.cc',
779 'cronet/ios/cronet_engine.h',
780 'cronet/ios/cronet_engine.mm',
781 'cronet/ios/cronet_environment.cc',
782 'cronet/ios/cronet_environment.h',
783 'cronet/url_request_context_config.cc',
784 'cronet/url_request_context_config.h',
785 ],
786 'dependencies': [
787 'cronet_version_header',
788 '../base/base.gyp:base',
789 '../net/net.gyp:net',
790 ],
791 'cflags': [
792 '-DLOGGING=1',
xunjieli 2016/04/08 14:43:15 Does this mean that we will have verbose logging b
mef 2016/04/08 16:43:02 Good question. I carried this over from cronet_sta
793 '-fdata-sections',
794 '-ffunction-sections',
795 '-fno-rtti',
796 '-fvisibility=hidden',
797 '-fvisibility-inlines-hidden',
798 '-Wno-sign-promo',
799 '-Wno-missing-field-initializers',
800 ],
801 'ldflags': [
802 '-llog',
803 '-Wl,--gc-sections',
804 '-Wl,--exclude-libs,ALL'
805 ],
806 },
807 {
808 'target_name': 'libcronet',
809 'type': 'shared_library',
810 'sources': [
811 'cronet/ios/cronet_engine.h',
812 'cronet/ios/cronet_engine.mm',
813 ],
814 'dependencies': [
815 'cronet_static',
816 '../base/base.gyp:base',
817 ],
818 },
819 {
820 'target_name': 'cronet_test',
821 'type': 'executable',
822 'dependencies': [
823 'cronet_static',
824 '../net/net.gyp:net_quic_proto',
825 '../net/net.gyp:net_test_support',
826 '../net/net.gyp:simple_quic_tools',
827 '../testing/gtest.gyp:gtest',
828 ],
829 'sources': [
830 'cronet/ios/test/cronet_bidirectional_stream_test.mm',
831 'cronet/ios/test/cronet_test_runner.mm',
832 'cronet/ios/test/quic_test_server.cc',
833 'cronet/ios/test/quic_test_server.h',
834 ],
835 'mac_bundle_resources': [
836 '../net/data/ssl/certificates/quic_test.example.com.crt',
837 '../net/data/ssl/certificates/quic_test.example.com.key',
838 '../net/data/ssl/certificates/quic_test.example.com.key.pkcs8',
839 '../net/data/ssl/certificates/quic_test.example.com.key.sct',
840 ],
841 'include_dirs': [
842 '..',
843 ],
844 # TODO(crbug.com/571217): Disabled warning-as-error option until
xunjieli 2016/04/08 14:43:15 This bug is already fixed.
mef 2016/04/08 16:43:02 Done.
845 # this bug is fixed.
846 'xcode_settings': {
847 'WARNING_CFLAGS': [
848 '-Wno-deprecated-declarations',
849 ],
850 },
851 },
852 {
853 # Build this target to package a standalone Cronet in a single
854 # .a file.
855 'target_name': 'cronet_package',
856 'type': 'none',
857 'variables' : {
858 'package_dir': '<(PRODUCT_DIR)/cronet',
859 },
860 'dependencies': [
861 # Depend on the dummy target so that all of CrNet's dependencies
862 # are built before packaging.
863 'libcronet',
864 ],
865 'actions': [
866 {
867 'action_name': 'Package Cronet',
868 'variables': {
869 'tool_path':
870 'cronet/tools/link_dependencies.py',
871 },
872 # Actions need an inputs list, even if it's empty.
873 'inputs': [
874 '<(tool_path)',
875 '<(PRODUCT_DIR)/libcronet.dylib',
876 ],
877 # Only specify one output, since this will be libtool's output.
878 'outputs': [ '<(package_dir)/libcronet_standalone.a' ],
879 'action': ['<(tool_path)',
880 '<(PRODUCT_DIR)',
881 'libcronet.dylib',
882 '<@(_outputs)',
883 ],
884 },
885 ],
886 'copies': [
887 {
888 'destination': '<(package_dir)',
889 'files': [
890 '../chrome/VERSION',
891 # TODO(mef): Strip debug symbols using "strip -u -r ..."
892 '<(PRODUCT_DIR)/libboringssl.a',
893 '<(PRODUCT_DIR)/libcronet_static.a',
894 '<(PRODUCT_DIR)/libcronet.dylib',
895 'cronet/ios/cronet_c_for_grpc.h',
896 'cronet/ios/cronet_engine.h',
897 'cronet/ios/cronet_environment.h',
898 ],
899 },
900 {
901 'destination': '<(package_dir)/test',
902 'files': [
903 'cronet/ios/test/cronet_bidirectional_stream_test.mm',
904 'cronet/ios/test/cronet_test_runner.mm',
905 ],
906 },
907 ],
908 },
909 ],
910 }], # OS=="ios"
734 ], 911 ],
735 } 912 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698