| OLD | NEW |
| 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//build/config/win/manifest.gni") | 7 import("//build/config/win/manifest.gni") |
| 8 import("//build/util/version.gni") | 8 import("//build/util/version.gni") |
| 9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
| 10 import("//remoting/remoting_enable.gni") | 10 import("//remoting/remoting_enable.gni") |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 675 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 676 | 676 |
| 677 defines = host_predefines + [ "BINARY=BINARY_NATIVE_MESSAGING_HOST" ] | 677 defines = host_predefines + [ "BINARY=BINARY_NATIVE_MESSAGING_HOST" ] |
| 678 | 678 |
| 679 deps = [ | 679 deps = [ |
| 680 ":remoting_core", | 680 ":remoting_core", |
| 681 ":remoting_windows_resources", | 681 ":remoting_windows_resources", |
| 682 "//build/win:default_exe_manifest", | 682 "//build/win:default_exe_manifest", |
| 683 ] | 683 ] |
| 684 | 684 |
| 685 if (is_mac) { |
| 686 foreach(locale, remoting_locales_with_underscores) { |
| 687 deps += [ |
| 688 ":native_messaging_host_strings_${locale}_bundle_data", |
| 689 ":remoting_host_locale_${locale}_bundle_data", |
| 690 ] |
| 691 } |
| 692 deps += [ |
| 693 ":remoting_infoplist_strings", |
| 694 "//remoting/resources:copy_locales", |
| 695 ] |
| 696 } |
| 697 |
| 685 sources = [ | 698 sources = [ |
| 686 "$root_gen_dir/remoting/version.rc", | 699 "$root_gen_dir/remoting/version.rc", |
| 687 "setup/me2me_native_messaging_host_entry_point.cc", | 700 "setup/me2me_native_messaging_host_entry_point.cc", |
| 688 ] | 701 ] |
| 689 } | 702 } |
| 690 | 703 |
| 691 # GYP version: //remoting/remoting_host_win.gypi:remoting_windows_resources | 704 # GYP version: //remoting/remoting_host_win.gypi:remoting_windows_resources |
| 692 remoting_localize("remoting_windows_resources") { | 705 remoting_localize("remoting_windows_resources") { |
| 693 deps = [ | 706 deps = [ |
| 694 "//remoting/resources", | 707 "//remoting/resources", |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 "--variables", | 805 "--variables", |
| 793 rebase_path(branding_path), | 806 rebase_path(branding_path), |
| 794 "--template", | 807 "--template", |
| 795 "{{source}}", | 808 "{{source}}", |
| 796 "--output", | 809 "--output", |
| 797 "remoting/{{source_name_part}}", | 810 "remoting/{{source_name_part}}", |
| 798 "en", | 811 "en", |
| 799 ] | 812 ] |
| 800 } | 813 } |
| 801 | 814 |
| 815 if (is_mac) { |
| 816 foreach(locale, remoting_locales_with_underscores) { |
| 817 bundle_data("remoting_host_locale_${locale}_bundle_data") { |
| 818 sources = [ |
| 819 "$root_build_dir/remoting/resources/$locale.lproj/locale.pak", |
| 820 ] |
| 821 outputs = [ |
| 822 "{{bundle_resources_dir}}/$locale.lproj/{{source_file_part}}", |
| 823 ] |
| 824 deps = [ |
| 825 "//remoting/resources:copy_locales", |
| 826 ] |
| 827 } |
| 828 } |
| 829 } |
| 830 |
| 802 action_foreach("remoting_infoplist_strings") { | 831 action_foreach("remoting_infoplist_strings") { |
| 803 sources = [ | 832 sources = [ |
| 804 "installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2", | 833 "installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2", |
| 805 "it2me/remote_assistance_host-InfoPlist.strings.jinja2", | 834 "it2me/remote_assistance_host-InfoPlist.strings.jinja2", |
| 806 "mac/me2me_preference_pane-InfoPlist.strings.jinja2", | 835 "mac/me2me_preference_pane-InfoPlist.strings.jinja2", |
| 807 "remoting_me2me_host-InfoPlist.strings.jinja2", | 836 "remoting_me2me_host-InfoPlist.strings.jinja2", |
| 808 "setup/native_messaging_host-InfoPlist.strings.jinja2", | 837 "setup/native_messaging_host-InfoPlist.strings.jinja2", |
| 809 ] | 838 ] |
| 810 | 839 |
| 811 script = "//remoting/tools/build/remoting_localize.py" | 840 script = "//remoting/tools/build/remoting_localize.py" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 # "/NODEFAULTLIB", | 942 # "/NODEFAULTLIB", |
| 914 ] | 943 ] |
| 915 } | 944 } |
| 916 } else { | 945 } else { |
| 917 if (is_mac) { | 946 if (is_mac) { |
| 918 app_target_type = "mac_app_bundle" | 947 app_target_type = "mac_app_bundle" |
| 919 } else { | 948 } else { |
| 920 app_target_type = "executable" | 949 app_target_type = "executable" |
| 921 } | 950 } |
| 922 | 951 |
| 952 if (is_mac) { |
| 953 # remoting_me2me_host-InfoPlist.strings |
| 954 foreach(locale, remoting_locales_with_underscores) { |
| 955 bundle_data("remoting_me2me_host_strings_${locale}_bundle_data") { |
| 956 sources = [ |
| 957 "$root_gen_dir/remoting/host/remoting_me2me_host-InfoPlist.strings/$
locale.lproj/InfoPlist.strings", |
| 958 ] |
| 959 outputs = [ |
| 960 "{{bundle_resources_dir}}/$locale.lproj/{{source_file_part}}", |
| 961 ] |
| 962 deps = [ |
| 963 ":remoting_infoplist_strings", |
| 964 ] |
| 965 } |
| 966 } |
| 967 } |
| 968 |
| 923 target(app_target_type, "remoting_me2me_host") { | 969 target(app_target_type, "remoting_me2me_host") { |
| 924 if (is_mac) { | 970 if (is_mac) { |
| 925 extra_configs = [ "//remoting:version" ] | 971 extra_configs = [ "//remoting:version" ] |
| 926 info_plist = "remoting_me2me_host-Info.plist" | 972 info_plist = "remoting_me2me_host-Info.plist" |
| 927 } else { | 973 } else { |
| 928 configs += [ "//remoting:version" ] | 974 configs += [ "//remoting:version" ] |
| 929 } | 975 } |
| 930 | 976 |
| 931 sources = [ | 977 sources = [ |
| 932 "host_main.cc", | 978 "host_main.cc", |
| 933 "host_main.h", | 979 "host_main.h", |
| 934 ] | 980 ] |
| 935 | 981 |
| 936 if (is_mac && is_chrome_branded && is_official_build) { | 982 if (is_mac && is_chrome_branded && is_official_build) { |
| 937 defines = [ "REMOTING_ENABLE_BREAKPAD" ] | 983 defines = [ "REMOTING_ENABLE_BREAKPAD" ] |
| 938 } | 984 } |
| 939 | 985 |
| 940 deps = [ | 986 deps = [ |
| 941 ":credits", | 987 ":credits", |
| 942 ":remoting_me2me_host_static", | 988 ":remoting_me2me_host_static", |
| 943 "//build/config/sanitizers:deps", | 989 "//build/config/sanitizers:deps", |
| 944 "//remoting/resources", | 990 "//remoting/resources", |
| 945 ] | 991 ] |
| 992 if (is_mac) { |
| 993 foreach(locale, remoting_locales_with_underscores) { |
| 994 deps += [ |
| 995 ":remoting_host_locale_${locale}_bundle_data", |
| 996 ":remoting_me2me_host_strings_${locale}_bundle_data", |
| 997 ] |
| 998 } |
| 999 deps += [ |
| 1000 ":remoting_infoplist_strings", |
| 1001 "//remoting/resources:copy_locales", |
| 1002 ] |
| 1003 } |
| 946 } | 1004 } |
| 947 | 1005 |
| 948 if (is_linux) { | 1006 if (is_linux) { |
| 949 copy("remoting_me2me_host_copy_script") { | 1007 copy("remoting_me2me_host_copy_script") { |
| 950 sources = [ | 1008 sources = [ |
| 951 "linux/linux_me2me_host.py", | 1009 "linux/linux_me2me_host.py", |
| 952 ] | 1010 ] |
| 953 outputs = [ | 1011 outputs = [ |
| 954 "$root_build_dir/remoting/chrome-remote-desktop", | 1012 "$root_build_dir/remoting/chrome-remote-desktop", |
| 955 ] | 1013 ] |
| (...skipping 11 matching lines...) Expand all Loading... |
| 967 } | 1025 } |
| 968 group("remoting_dev_me2me_host") { | 1026 group("remoting_dev_me2me_host") { |
| 969 deps = [ | 1027 deps = [ |
| 970 ":remoting_me2me_host", | 1028 ":remoting_me2me_host", |
| 971 ":remoting_me2me_host_copy_host", | 1029 ":remoting_me2me_host_copy_host", |
| 972 ":remoting_me2me_host_copy_script", | 1030 ":remoting_me2me_host_copy_script", |
| 973 ] | 1031 ] |
| 974 } | 1032 } |
| 975 } | 1033 } |
| 976 | 1034 |
| 1035 if (is_mac) { |
| 1036 # native_messaging_host-InfoPlist.strings |
| 1037 foreach(locale, remoting_locales_with_underscores) { |
| 1038 bundle_data("native_messaging_host_strings_${locale}_bundle_data") { |
| 1039 sources = [ |
| 1040 "$root_gen_dir/remoting/host/native_messaging_host-InfoPlist.strings
/$locale.lproj/InfoPlist.strings", |
| 1041 ] |
| 1042 outputs = [ |
| 1043 "{{bundle_resources_dir}}/$locale.lproj/{{source_file_part}}", |
| 1044 ] |
| 1045 deps = [ |
| 1046 ":remoting_infoplist_strings", |
| 1047 ] |
| 1048 } |
| 1049 } |
| 1050 } |
| 1051 |
| 977 target(app_target_type, "native_messaging_host") { | 1052 target(app_target_type, "native_messaging_host") { |
| 978 if (is_mac) { | 1053 if (is_mac) { |
| 979 info_plist = "setup/native_messaging_host-Info.plist" | 1054 info_plist = "setup/native_messaging_host-Info.plist" |
| 980 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | 1055 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] |
| 981 } else { | 1056 } else { |
| 982 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 1057 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 983 } | 1058 } |
| 984 | 1059 |
| 985 sources = [ | 1060 sources = [ |
| 986 "setup/me2me_native_messaging_host_entry_point.cc", | 1061 "setup/me2me_native_messaging_host_entry_point.cc", |
| 987 "setup/me2me_native_messaging_host_main.cc", | 1062 "setup/me2me_native_messaging_host_main.cc", |
| 988 "setup/me2me_native_messaging_host_main.h", | 1063 "setup/me2me_native_messaging_host_main.h", |
| 989 ] | 1064 ] |
| 990 | 1065 |
| 991 deps = [ | 1066 deps = [ |
| 992 ":remoting_infoplist_strings", | 1067 ":remoting_infoplist_strings", |
| 993 "//base", | 1068 "//base", |
| 994 "//remoting/base:breakpad", | 1069 "//remoting/base:breakpad", |
| 995 "//remoting/host", | 1070 "//remoting/host", |
| 996 "//remoting/host/native_messaging", | 1071 "//remoting/host/native_messaging", |
| 997 "//remoting/host/setup", | 1072 "//remoting/host/setup", |
| 998 ] | 1073 ] |
| 999 | 1074 |
| 1075 if (is_mac) { |
| 1076 foreach(locale, remoting_locales_with_underscores) { |
| 1077 deps += [ |
| 1078 ":native_messaging_host_strings_${locale}_bundle_data", |
| 1079 ":remoting_host_locale_${locale}_bundle_data", |
| 1080 ] |
| 1081 } |
| 1082 deps += [ "//remoting/resources:copy_locales" ] |
| 1083 } |
| 1084 |
| 1000 # The |major|, |build| and |patch| versions are inherited from Chrome. | 1085 # The |major|, |build| and |patch| versions are inherited from Chrome. |
| 1001 # Since Chrome's |minor| version is always '0', we replace it with a | 1086 # Since Chrome's |minor| version is always '0', we replace it with a |
| 1002 # Chromoting-specific patch version. | 1087 # Chromoting-specific patch version. |
| 1003 defines = [ "VERSION=" + "$chrome_version_major" + "." + | 1088 defines = [ "VERSION=" + "$chrome_version_major" + "." + |
| 1004 "$remoting_version_patch" + "." + "$chrome_version_build" + | 1089 "$remoting_version_patch" + "." + "$chrome_version_build" + |
| 1005 "." + "$chrome_version_patch" ] | 1090 "." + "$chrome_version_patch" ] |
| 1006 } | 1091 } |
| 1007 } | 1092 } |
| 1008 | 1093 |
| 1009 if (is_chrome_branded && enable_me2me_host && is_linux && !is_chromeos) { | 1094 if (is_chrome_branded && enable_me2me_host && is_linux && !is_chromeos) { |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 ":remoting_host_uninstaller", | 1362 ":remoting_host_uninstaller", |
| 1278 ":remoting_me2me_host", | 1363 ":remoting_me2me_host", |
| 1279 ":remoting_native_messaging_manifests", | 1364 ":remoting_native_messaging_manifests", |
| 1280 "//remoting/host/it2me:remote_assistance_host", | 1365 "//remoting/host/it2me:remote_assistance_host", |
| 1281 ] | 1366 ] |
| 1282 } | 1367 } |
| 1283 | 1368 |
| 1284 _uninstaller_plist = | 1369 _uninstaller_plist = |
| 1285 "installer/mac/uninstaller/remoting_uninstaller-Info.plist" | 1370 "installer/mac/uninstaller/remoting_uninstaller-Info.plist" |
| 1286 | 1371 |
| 1372 # remoting_uninstaller-InfoPlist.strings |
| 1373 foreach(locale, remoting_locales_with_underscores) { |
| 1374 bundle_data("remoting_uninstaller_strings_${locale}_bundle_data") { |
| 1375 sources = [ |
| 1376 "$root_gen_dir/remoting/host/remoting_uninstaller-InfoPlist.strings/$l
ocale.lproj/InfoPlist.strings", |
| 1377 ] |
| 1378 outputs = [ |
| 1379 "{{bundle_resources_dir}}/$locale.lproj/{{source_file_part}}", |
| 1380 ] |
| 1381 deps = [ |
| 1382 ":remoting_infoplist_strings", |
| 1383 ] |
| 1384 } |
| 1385 } |
| 1386 |
| 1287 mac_app_bundle("remoting_host_uninstaller") { | 1387 mac_app_bundle("remoting_host_uninstaller") { |
| 1288 info_plist = _uninstaller_plist | 1388 info_plist = _uninstaller_plist |
| 1289 | 1389 |
| 1290 defines = [ | 1390 defines = [ |
| 1291 "HOST_BUNDLE_NAME=\"" + host_bundle_name + "\"", | 1391 "HOST_BUNDLE_NAME=\"" + host_bundle_name + "\"", |
| 1292 "PREFPANE_BUNDLE_NAME=\"" + prefpane_bundle_name + "\"", | 1392 "PREFPANE_BUNDLE_NAME=\"" + prefpane_bundle_name + "\"", |
| 1293 ] | 1393 ] |
| 1294 | 1394 |
| 1295 sources = [ | 1395 sources = [ |
| 1296 "constants_mac.cc", | 1396 "constants_mac.cc", |
| 1297 "constants_mac.h", | 1397 "constants_mac.h", |
| 1298 "installer/mac/uninstaller/remoting_uninstaller.h", | 1398 "installer/mac/uninstaller/remoting_uninstaller.h", |
| 1299 "installer/mac/uninstaller/remoting_uninstaller.mm", | 1399 "installer/mac/uninstaller/remoting_uninstaller.mm", |
| 1300 "installer/mac/uninstaller/remoting_uninstaller_app.h", | 1400 "installer/mac/uninstaller/remoting_uninstaller_app.h", |
| 1301 "installer/mac/uninstaller/remoting_uninstaller_app.mm", | 1401 "installer/mac/uninstaller/remoting_uninstaller_app.mm", |
| 1302 ] | 1402 ] |
| 1303 | 1403 |
| 1304 libs = [ | 1404 libs = [ |
| 1305 "Cocoa.framework", | 1405 "Cocoa.framework", |
| 1306 "CoreFoundation.framework", | 1406 "CoreFoundation.framework", |
| 1307 "Security.framework", | 1407 "Security.framework", |
| 1308 ] | 1408 ] |
| 1309 | 1409 |
| 1310 deps = [ | 1410 deps = [ |
| 1311 ":remoting_host_uninstaller_xibs", | 1411 ":remoting_host_uninstaller_xibs", |
| 1312 ":remoting_infoplist_strings", | 1412 ":remoting_infoplist_strings", |
| 1313 "//base", | 1413 "//base", |
| 1314 ] | 1414 ] |
| 1415 foreach(locale, remoting_locales_with_underscores) { |
| 1416 deps += [ ":remoting_uninstaller_strings_${locale}_bundle_data" ] |
| 1417 } |
| 1315 } | 1418 } |
| 1316 | 1419 |
| 1317 mac_xib_bundle_data("remoting_host_uninstaller_xibs") { | 1420 mac_xib_bundle_data("remoting_host_uninstaller_xibs") { |
| 1318 sources = [ | 1421 sources = [ |
| 1319 #"installer/mac/uninstaller/remoting_uninstaller.icns", | 1422 #"installer/mac/uninstaller/remoting_uninstaller.icns", |
| 1320 "installer/mac/uninstaller/remoting_uninstaller.xib", | 1423 "installer/mac/uninstaller/remoting_uninstaller.xib", |
| 1321 #_uninstaller_plist | 1424 #_uninstaller_plist |
| 1322 ] | 1425 ] |
| 1323 } | 1426 } |
| 1324 | 1427 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 "CoreFoundation.framework", | 1473 "CoreFoundation.framework", |
| 1371 "PreferencePanes.framework", | 1474 "PreferencePanes.framework", |
| 1372 "Security.framework", | 1475 "Security.framework", |
| 1373 ] | 1476 ] |
| 1374 | 1477 |
| 1375 deps = [ | 1478 deps = [ |
| 1376 ":host", | 1479 ":host", |
| 1377 ":remoting_host_prefpane_xibs", | 1480 ":remoting_host_prefpane_xibs", |
| 1378 ":remoting_infoplist_strings", | 1481 ":remoting_infoplist_strings", |
| 1379 "//remoting/base", | 1482 "//remoting/base", |
| 1483 "//remoting/resources:copy_locales", |
| 1380 "//third_party/jsoncpp", | 1484 "//third_party/jsoncpp", |
| 1381 ] | 1485 ] |
| 1486 foreach(locale, remoting_locales_with_underscores) { |
| 1487 deps += [ ":remoting_host_prefpane_strings_${locale}_bundle_data" ] |
| 1488 } |
| 1382 } | 1489 } |
| 1383 | 1490 |
| 1384 bundle_data("remoting_host_prefpane_plist") { | 1491 bundle_data("remoting_host_prefpane_plist") { |
| 1385 sources = [ | 1492 sources = [ |
| 1386 "mac/me2me_preference_pane-Info.plist", | 1493 "mac/me2me_preference_pane-Info.plist", |
| 1387 ] | 1494 ] |
| 1388 outputs = [ | 1495 outputs = [ |
| 1389 "{{bundle_root_dir}}/Info.plist", | 1496 "{{bundle_root_dir}}/Info.plist", |
| 1390 ] | 1497 ] |
| 1391 } | 1498 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 root_build_dir), | 1552 root_build_dir), |
| 1446 rebase_path(outputs[0], root_build_dir), | 1553 rebase_path(outputs[0], root_build_dir), |
| 1447 ] | 1554 ] |
| 1448 } | 1555 } |
| 1449 } else { | 1556 } else { |
| 1450 group("remoting_host_installation") { | 1557 group("remoting_host_installation") { |
| 1451 } | 1558 } |
| 1452 } | 1559 } |
| 1453 } | 1560 } |
| 1454 } | 1561 } |
| OLD | NEW |