OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 # TODO(dmaclach): can we pick this up some other way? Right now it's | 7 # TODO(dmaclach): can we pick this up some other way? Right now it's |
8 # duplicated from chrome.gyp | 8 # duplicated from chrome.gyp |
9 'chromium_code': 1, | 9 'chromium_code': 1, |
10 # Use consistent strings across all platforms. Note that the plugin name | 10 # Use consistent strings across all platforms. Note that the plugin name |
11 # is brand-dependent and is defined further down. | 11 # is brand-dependent and is defined further down. |
12 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', | 12 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host', |
13 'host_plugin_description': 'Allow another user to access your computer secur
ely over the Internet.', | 13 'host_plugin_description': 'Allow another user to access your computer secur
ely over the Internet.', |
| 14 |
| 15 # Variables for common_constants (used by JS unittests). |
| 16 'variables': { |
| 17 'version_py_path': '../chrome/tools/build/version.py', |
| 18 'version_path': '../chrome/VERSION', |
| 19 }, |
| 20 'version_py_path': '<(version_py_path)', |
| 21 'version_path': '<(version_path)', |
| 22 'version_full': |
| 23 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@.@BU
ILD@.@PATCH@")', |
| 24 |
14 'conditions': [ | 25 'conditions': [ |
15 ['OS=="mac"', { | 26 ['OS=="mac"', { |
16 'conditions': [ | 27 'conditions': [ |
17 ['branding=="Chrome"', { | 28 ['branding=="Chrome"', { |
18 'mac_bundle_id': 'com.google.Chrome', | 29 'mac_bundle_id': 'com.google.Chrome', |
19 'mac_creator': 'rimZ', | 30 'mac_creator': 'rimZ', |
20 }, { # else: branding!="Chrome" | 31 }, { # else: branding!="Chrome" |
21 'mac_bundle_id': 'org.chromium.Chromium', | 32 'mac_bundle_id': 'org.chromium.Chromium', |
22 'mac_creator': 'Cr24', | 33 'mac_creator': 'Cr24', |
23 }], # branding | 34 }], # branding |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 'webapp/me2mom/util.js', | 142 'webapp/me2mom/util.js', |
132 'webapp/me2mom/wcs.js', | 143 'webapp/me2mom/wcs.js', |
133 'webapp/me2mom/wcs_loader.js', | 144 'webapp/me2mom/wcs_loader.js', |
134 'webapp/me2mom/xhr.js', | 145 'webapp/me2mom/xhr.js', |
135 'resources/chromoting16.png', | 146 'resources/chromoting16.png', |
136 'resources/chromoting48.png', | 147 'resources/chromoting48.png', |
137 'resources/chromoting128.png', | 148 'resources/chromoting128.png', |
138 ], | 149 ], |
139 }, | 150 }, |
140 | 151 |
| 152 'includes': [ |
| 153 # The common_constants target is needed for the JS unittests. |
| 154 '../chrome/common_constants.gypi', |
| 155 '../chrome/js_unittest_vars.gypi', |
| 156 ], |
| 157 |
141 'target_defaults': { | 158 'target_defaults': { |
142 'defines': [ | 159 'defines': [ |
143 ], | 160 ], |
144 'include_dirs': [ | 161 'include_dirs': [ |
145 '..', # Root of Chrome checkout | 162 '..', # Root of Chrome checkout |
146 ], | 163 ], |
147 }, | 164 }, |
148 | 165 |
149 'conditions': [ | 166 'conditions': [ |
| 167 ['OS == "win"', { |
| 168 'includes': [ |
| 169 # Required for JS unittests. |
| 170 '../chrome/chrome_common.gypi', |
| 171 '../chrome/chrome_installer.gypi', |
| 172 '../chrome/chrome_installer_util.gypi', |
| 173 ], |
| 174 }], # 'OS == "win"' |
150 ['os_posix == 1', { | 175 ['os_posix == 1', { |
151 'targets': [ | 176 'targets': [ |
152 # Simple webserver for testing remoting client plugin. | 177 # Simple webserver for testing remoting client plugin. |
153 { | 178 { |
154 'target_name': 'remoting_client_test_webserver', | 179 'target_name': 'remoting_client_test_webserver', |
155 'type': 'executable', | 180 'type': 'executable', |
156 'sources': [ | 181 'sources': [ |
157 'tools/client_webserver/main.c', | 182 'tools/client_webserver/main.c', |
158 ], | 183 ], |
159 } | 184 } |
160 ], # end of target 'remoting_client_test_webserver' | 185 ], # end of target 'remoting_client_test_webserver' |
161 }], | 186 }], # 'os_posix == 1' |
162 ['OS=="linux"', { | 187 ['OS=="linux"', { |
163 'targets': [ | 188 'targets': [ |
164 # Linux breakpad processing | 189 # Linux breakpad processing |
165 { | 190 { |
166 'target_name': 'remoting_linux_symbols', | 191 'target_name': 'remoting_linux_symbols', |
167 'type': 'none', | 192 'type': 'none', |
168 'conditions': [ | 193 'conditions': [ |
169 ['linux_dump_symbols==1', { | 194 ['linux_dump_symbols==1', { |
170 'actions': [ | 195 'actions': [ |
171 { | 196 { |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 'sources': [ | 883 'sources': [ |
859 'host/differ_block_sse2.cc', | 884 'host/differ_block_sse2.cc', |
860 ], | 885 ], |
861 }, # end of target differ_block_sse2 | 886 }, # end of target differ_block_sse2 |
862 | 887 |
863 # Remoting unit tests | 888 # Remoting unit tests |
864 { | 889 { |
865 'target_name': 'remoting_unittests', | 890 'target_name': 'remoting_unittests', |
866 'type': 'executable', | 891 'type': 'executable', |
867 'dependencies': [ | 892 'dependencies': [ |
| 893 'common_constants', # from common_constants.gypi |
868 'remoting_base', | 894 'remoting_base', |
869 'remoting_client', | 895 'remoting_client', |
870 'remoting_host', | 896 'remoting_host', |
871 'remoting_jingle_glue', | 897 'remoting_jingle_glue', |
872 'remoting_protocol', | 898 'remoting_protocol', |
873 '../base/base.gyp:base', | 899 '../base/base.gyp:base', |
874 '../base/base.gyp:base_i18n', | 900 '../base/base.gyp:base_i18n', |
875 '../base/base.gyp:test_support_base', | 901 '../base/base.gyp:test_support_base', |
876 '../media/media.gyp:media', | 902 '../media/media.gyp:media', |
877 '../ui/ui.gyp:ui', | |
878 '../testing/gmock.gyp:gmock', | 903 '../testing/gmock.gyp:gmock', |
879 '../testing/gtest.gyp:gtest', | 904 '../testing/gtest.gyp:gtest', |
| 905 '../ui/ui.gyp:ui', |
| 906 '../v8/tools/gyp/v8.gyp:v8', |
880 ], | 907 ], |
881 'include_dirs': [ | 908 'include_dirs': [ |
882 '../testing/gmock/include', | 909 '../testing/gmock/include', |
883 ], | 910 ], |
| 911 'includes': [ |
| 912 '../chrome/js_unittest_rules.gypi', |
| 913 ], |
884 'sources': [ | 914 'sources': [ |
| 915 '../chrome/test/base/v8_unit_test.cc', |
| 916 '../chrome/test/base/v8_unit_test.h', |
| 917 '../chrome/test/base/run_all_remoting_unittests.cc', |
885 'base/auth_token_util_unittest.cc', | 918 'base/auth_token_util_unittest.cc', |
886 'base/codec_test.cc', | 919 'base/codec_test.cc', |
887 'base/codec_test.h', | 920 'base/codec_test.h', |
888 'base/compound_buffer_unittest.cc', | 921 'base/compound_buffer_unittest.cc', |
889 'base/compressor_zlib_unittest.cc', | 922 'base/compressor_zlib_unittest.cc', |
890 'base/decoder_vp8_unittest.cc', | 923 'base/decoder_vp8_unittest.cc', |
891 'base/decompressor_zlib_unittest.cc', | 924 'base/decompressor_zlib_unittest.cc', |
892 'base/encode_decode_unittest.cc', | 925 'base/encode_decode_unittest.cc', |
893 'base/encoder_vp8_unittest.cc', | 926 'base/encoder_vp8_unittest.cc', |
894 'base/encoder_row_based_unittest.cc', | 927 'base/encoder_row_based_unittest.cc', |
(...skipping 29 matching lines...) Expand all Loading... |
924 'protocol/fake_session.h', | 957 'protocol/fake_session.h', |
925 'protocol/jingle_messages_unittest.cc', | 958 'protocol/jingle_messages_unittest.cc', |
926 'protocol/jingle_session_unittest.cc', | 959 'protocol/jingle_session_unittest.cc', |
927 'protocol/message_decoder_unittest.cc', | 960 'protocol/message_decoder_unittest.cc', |
928 'protocol/message_reader_unittest.cc', | 961 'protocol/message_reader_unittest.cc', |
929 'protocol/protocol_mock_objects.cc', | 962 'protocol/protocol_mock_objects.cc', |
930 'protocol/protocol_mock_objects.h', | 963 'protocol/protocol_mock_objects.h', |
931 'protocol/rtp_video_reader_unittest.cc', | 964 'protocol/rtp_video_reader_unittest.cc', |
932 'protocol/rtp_video_writer_unittest.cc', | 965 'protocol/rtp_video_writer_unittest.cc', |
933 'protocol/v1_authenticator_unittest.cc', | 966 'protocol/v1_authenticator_unittest.cc', |
934 'run_all_unittests.cc', | 967 'webapp/me2mom/debug_log.gtestjs', |
| 968 'webapp/me2mom/debug_log.js', |
935 ], | 969 ], |
936 'conditions': [ | 970 'conditions': [ |
937 ['toolkit_uses_gtk == 1', { | 971 ['toolkit_uses_gtk == 1', { |
938 'dependencies': [ | 972 'dependencies': [ |
939 # Needed for the following #include chain: | 973 # Needed for the following #include chain: |
940 # base/run_all_unittests.cc | 974 # base/run_all_unittests.cc |
941 # ../base/test_suite.h | 975 # ../base/test_suite.h |
942 # gtk/gtk.h | 976 # gtk/gtk.h |
943 '../build/linux/system.gyp:gtk', | 977 '../build/linux/system.gyp:gtk', |
944 '../build/linux/system.gyp:ssl', | 978 '../build/linux/system.gyp:ssl', |
945 ], | 979 ], |
946 'conditions': [ | 980 'conditions': [ |
947 [ 'linux_use_tcmalloc==1', { | 981 [ 'linux_use_tcmalloc==1', { |
948 'dependencies': [ | 982 'dependencies': [ |
949 '../base/allocator/allocator.gyp:allocator', | 983 '../base/allocator/allocator.gyp:allocator', |
950 ], | 984 ], |
951 }, | 985 }, |
952 ], | 986 ], |
953 ], | 987 ], |
954 }], | 988 }], |
| 989 ['OS == "win"', { |
| 990 'dependencies': [ |
| 991 # Required for JS unittests. |
| 992 'installer_util', |
| 993 ], |
| 994 }], # 'OS == "win"' |
955 ], # end of 'conditions' | 995 ], # end of 'conditions' |
956 }, # end of target 'remoting_unittests' | 996 }, # end of target 'remoting_unittests' |
957 ], # end of targets | 997 ], # end of targets |
958 } | 998 } |
OLD | NEW |