Chromium Code Reviews| 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 | 14 |
| 15 'conditions': [ | 15 'conditions': [ |
| 16 ['OS=="mac"', { | 16 ['OS=="mac"', { |
| 17 'conditions': [ | 17 'conditions': [ |
| 18 ['branding=="Chrome"', { | 18 ['branding=="Chrome"', { |
| 19 'mac_bundle_id': 'com.google.Chrome', | 19 'mac_bundle_id': 'com.google.Chrome', |
| 20 'mac_creator': 'rimZ', | 20 'mac_creator': 'rimZ', |
| 21 }, { # else: branding!="Chrome" | 21 }, { # else: branding!="Chrome" |
| 22 'mac_bundle_id': 'org.chromium.Chromium', | 22 'mac_bundle_id': 'org.chromium.Chromium', |
| 23 'mac_creator': 'Cr24', | 23 'mac_creator': 'Cr24', |
| 24 }], # branding | 24 }], # branding |
| 25 ], # conditions | 25 ], # conditions |
| 26 'host_plugin_extension': 'plugin', | 26 'host_plugin_extension': 'plugin', |
| 27 'host_plugin_prefix': '', | 27 'host_plugin_prefix': '', |
| 28 | |
| 29 # Variables for common_constants target (used by JS unittests). | |
| 30 'variables': { | |
| 31 'version_py_path': '../chrome/tools/build/version.py', | |
| 32 'version_path': '../chrome/VERSION', | |
| 33 }, | |
| 34 'version_py_path': '<(version_py_path)', | |
|
Mark Mentovai
2011/12/19 16:13:37
I don’t think version_py_path and version_path are
garykac
2012/01/04 21:04:45
They're needed by common_constants.gypi (included
| |
| 35 'version_path': '<(version_path)', | |
| 36 'version_full': | |
| 37 '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@.@ BUILD@.@PATCH@")', | |
| 28 }], | 38 }], |
| 29 ['os_posix == 1 and OS != "mac" and target_arch == "ia32"', { | 39 ['os_posix == 1 and OS != "mac" and target_arch == "ia32"', { |
| 30 # linux 32 bit | 40 # linux 32 bit |
| 31 'host_plugin_extension': 'ia32.so', | 41 'host_plugin_extension': 'ia32.so', |
| 32 'host_plugin_prefix': 'lib', | 42 'host_plugin_prefix': 'lib', |
| 33 }], | 43 }], |
| 34 ['os_posix == 1 and OS != "mac" and target_arch == "x64"', { | 44 ['os_posix == 1 and OS != "mac" and target_arch == "x64"', { |
| 35 # linux 64 bit | 45 # linux 64 bit |
| 36 'host_plugin_extension': 'x64.so', | 46 'host_plugin_extension': 'x64.so', |
| 37 'host_plugin_prefix': 'lib', | 47 'host_plugin_prefix': 'lib', |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 'webapp/me2mom/util.js', | 144 'webapp/me2mom/util.js', |
| 135 'webapp/me2mom/wcs.js', | 145 'webapp/me2mom/wcs.js', |
| 136 'webapp/me2mom/wcs_loader.js', | 146 'webapp/me2mom/wcs_loader.js', |
| 137 'webapp/me2mom/xhr.js', | 147 'webapp/me2mom/xhr.js', |
| 138 'resources/chromoting16.png', | 148 'resources/chromoting16.png', |
| 139 'resources/chromoting48.png', | 149 'resources/chromoting48.png', |
| 140 'resources/chromoting128.png', | 150 'resources/chromoting128.png', |
| 141 ], | 151 ], |
| 142 }, | 152 }, |
| 143 | 153 |
| 154 'includes': [ | |
| 155 '../chrome/js_unittest_vars.gypi', | |
| 156 ], | |
| 157 | |
| 144 'target_defaults': { | 158 'target_defaults': { |
| 145 'defines': [ | 159 'defines': [ |
| 146 ], | 160 ], |
| 147 'include_dirs': [ | 161 'include_dirs': [ |
| 148 '..', # Root of Chrome checkout | 162 '..', # Root of Chrome checkout |
| 149 ], | 163 ], |
| 150 }, | 164 }, |
| 151 | 165 |
| 152 'conditions': [ | 166 'conditions': [ |
| 153 ['os_posix == 1', { | 167 ['os_posix == 1', { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 # and Continue windows for the Me2Me case - crbug.com/104377. | 231 # and Continue windows for the Me2Me case - crbug.com/104377. |
| 218 'host/continue_window.h', | 232 'host/continue_window.h', |
| 219 'host/continue_window_linux.cc', | 233 'host/continue_window_linux.cc', |
| 220 'host/disconnect_window_linux.cc', | 234 'host/disconnect_window_linux.cc', |
| 221 'host/remoting_me2me_host.cc', | 235 'host/remoting_me2me_host.cc', |
| 222 ], | 236 ], |
| 223 }, # end of target 'remoting_me2me_host' | 237 }, # end of target 'remoting_me2me_host' |
| 224 | 238 |
| 225 ], # end of 'targets' | 239 ], # end of 'targets' |
| 226 }], # 'OS=="linux"' | 240 }], # 'OS=="linux"' |
| 241 ['OS == "mac"', { | |
| 242 'includes': [ | |
| 243 # Required for JS unittests. | |
| 244 '../chrome/common_constants.gypi', | |
| 245 ], | |
| 246 }], # 'OS == "mac"' | |
| 227 ], # end of 'conditions' | 247 ], # end of 'conditions' |
| 228 | 248 |
| 229 'targets': [ | 249 'targets': [ |
| 230 { | 250 { |
| 231 'target_name': 'remoting_client_plugin', | 251 'target_name': 'remoting_client_plugin', |
| 232 'type': 'static_library', | 252 'type': 'static_library', |
| 233 'variables': { 'enable_wexit_time_destructors': 1, }, | 253 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 234 'defines': [ | 254 'defines': [ |
| 235 'HAVE_STDINT_H', # Required by on2_integer.h | 255 'HAVE_STDINT_H', # Required by on2_integer.h |
| 236 ], | 256 ], |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 876 'remoting_host', | 896 'remoting_host', |
| 877 'remoting_jingle_glue', | 897 'remoting_jingle_glue', |
| 878 'remoting_protocol', | 898 'remoting_protocol', |
| 879 '../base/base.gyp:base', | 899 '../base/base.gyp:base', |
| 880 '../base/base.gyp:base_i18n', | 900 '../base/base.gyp:base_i18n', |
| 881 '../base/base.gyp:test_support_base', | 901 '../base/base.gyp:test_support_base', |
| 882 '../media/media.gyp:media', | 902 '../media/media.gyp:media', |
| 883 '../testing/gmock.gyp:gmock', | 903 '../testing/gmock.gyp:gmock', |
| 884 '../testing/gtest.gyp:gtest', | 904 '../testing/gtest.gyp:gtest', |
| 885 '../ui/ui.gyp:ui', | 905 '../ui/ui.gyp:ui', |
| 906 '../v8/tools/gyp/v8.gyp:v8', | |
| 886 ], | 907 ], |
| 887 'include_dirs': [ | 908 'include_dirs': [ |
| 888 '../testing/gmock/include', | 909 '../testing/gmock/include', |
| 889 ], | 910 ], |
| 911 'includes': [ | |
| 912 '../chrome/js_unittest_rules.gypi', | |
| 913 ], | |
| 890 'sources': [ | 914 'sources': [ |
| 915 '<(DEPTH)/chrome/test/base/run_all_remoting_unittests.cc', | |
|
Mark Mentovai
2011/12/19 16:13:37
Can you just write the right number of dots here i
garykac
2012/01/04 21:04:45
Yes.
But the <(DEPTH) option was added to avoid h
| |
| 916 '<(DEPTH)/chrome/test/base/v8_unit_test.cc', | |
| 917 '<(DEPTH)/chrome/test/base/v8_unit_test.h', | |
| 891 'base/auth_token_util_unittest.cc', | 918 'base/auth_token_util_unittest.cc', |
| 892 'base/codec_test.cc', | 919 'base/codec_test.cc', |
| 893 'base/codec_test.h', | 920 'base/codec_test.h', |
| 894 'base/compound_buffer_unittest.cc', | 921 'base/compound_buffer_unittest.cc', |
| 895 'base/compressor_zlib_unittest.cc', | 922 'base/compressor_zlib_unittest.cc', |
| 896 'base/decoder_vp8_unittest.cc', | 923 'base/decoder_vp8_unittest.cc', |
| 897 'base/decompressor_zlib_unittest.cc', | 924 'base/decompressor_zlib_unittest.cc', |
| 898 'base/encode_decode_unittest.cc', | 925 'base/encode_decode_unittest.cc', |
| 899 'base/encoder_vp8_unittest.cc', | 926 'base/encoder_vp8_unittest.cc', |
| 900 'base/encoder_row_based_unittest.cc', | 927 'base/encoder_row_based_unittest.cc', |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 936 'protocol/fake_session.h', | 963 'protocol/fake_session.h', |
| 937 'protocol/jingle_messages_unittest.cc', | 964 'protocol/jingle_messages_unittest.cc', |
| 938 'protocol/jingle_session_unittest.cc', | 965 'protocol/jingle_session_unittest.cc', |
| 939 'protocol/message_decoder_unittest.cc', | 966 'protocol/message_decoder_unittest.cc', |
| 940 'protocol/message_reader_unittest.cc', | 967 'protocol/message_reader_unittest.cc', |
| 941 'protocol/protocol_mock_objects.cc', | 968 'protocol/protocol_mock_objects.cc', |
| 942 'protocol/protocol_mock_objects.h', | 969 'protocol/protocol_mock_objects.h', |
| 943 'protocol/rtp_video_reader_unittest.cc', | 970 'protocol/rtp_video_reader_unittest.cc', |
| 944 'protocol/rtp_video_writer_unittest.cc', | 971 'protocol/rtp_video_writer_unittest.cc', |
| 945 'protocol/v1_authenticator_unittest.cc', | 972 'protocol/v1_authenticator_unittest.cc', |
| 946 'run_all_unittests.cc', | 973 'webapp/me2mom/debug_log.gtestjs', |
| 974 'webapp/me2mom/debug_log.js', | |
| 947 ], | 975 ], |
| 948 'conditions': [ | 976 'conditions': [ |
| 949 ['toolkit_uses_gtk == 1', { | 977 ['toolkit_uses_gtk == 1', { |
| 950 'dependencies': [ | 978 'dependencies': [ |
| 951 # Needed for the following #include chain: | 979 # Needed for the following #include chain: |
| 952 # base/run_all_unittests.cc | 980 # base/run_all_unittests.cc |
| 953 # ../base/test_suite.h | 981 # ../base/test_suite.h |
| 954 # gtk/gtk.h | 982 # gtk/gtk.h |
| 955 '../build/linux/system.gyp:gtk', | 983 '../build/linux/system.gyp:gtk', |
| 956 '../build/linux/system.gyp:ssl', | 984 '../build/linux/system.gyp:ssl', |
| 957 ], | 985 ], |
| 958 'conditions': [ | 986 'conditions': [ |
| 959 [ 'linux_use_tcmalloc==1', { | 987 [ 'linux_use_tcmalloc==1', { |
| 960 'dependencies': [ | 988 'dependencies': [ |
| 961 '../base/allocator/allocator.gyp:allocator', | 989 '../base/allocator/allocator.gyp:allocator', |
| 962 ], | 990 ], |
| 963 }, | 991 }, |
| 964 ], | 992 ], |
| 965 ], | 993 ], |
| 966 }], | 994 }], # end of 'toolkit_uses_gtk == 1' |
| 995 ['OS == "mac"', { | |
| 996 'dependencies': [ | |
| 997 # This dependency is required for the JS unittests. | |
| 998 # Mac can't refer to the common_constants target directly from | |
| 999 # chrome.gyp because this will cause the circular dependency | |
| 1000 # check to fail. | |
| 1001 # So we need to include the common_constants.gypi file (above) and | |
| 1002 # refer to it as a local target. | |
| 1003 # Note that we can't do this for all platforms because it breaks | |
| 1004 # the (linux) ninja builds ('target defined twice'). | |
| 1005 'common_constants', | |
| 1006 ], | |
| 1007 }, { # else: 'OS != "mac"' | |
| 1008 'dependencies': [ | |
| 1009 # This dependency is required for the JS unittests. | |
| 1010 # Ideally, we'd refer to the target dependency like this for all | |
| 1011 # platforms, but see the notes above for issues with the Mac build. | |
| 1012 '../chrome/chrome.gyp:common_constants', | |
| 1013 ], | |
| 1014 }], # end of 'OS == "mac"' | |
| 1015 ['OS == "win"', { | |
| 1016 'dependencies': [ | |
| 1017 # Required for JS unittests. | |
| 1018 '../chrome/chrome.gyp:installer_util', | |
| 1019 ], | |
| 1020 }], # end of 'OS == "win"' | |
| 967 ], # end of 'conditions' | 1021 ], # end of 'conditions' |
| 968 }, # end of target 'remoting_unittests' | 1022 }, # end of target 'remoting_unittests' |
| 969 ], # end of targets | 1023 ], # end of targets |
| 970 } | 1024 } |
| OLD | NEW |