| 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'remoting_host_installer_win_roots': [ | 7 'remoting_host_installer_win_roots': [ |
| 8 'host/installer/win/', | 8 'host/installer/win/', |
| 9 ], | 9 ], |
| 10 'remoting_host_installer_win_files': [ | 10 'remoting_host_installer_win_files': [ |
| 11 'host/installer/win/chromoting.wxs', | 11 'host/installer/win/chromoting.wxs', |
| 12 'host/installer/win/parameters.json', | 12 'host/installer/win/parameters.json', |
| 13 ], | 13 ], |
| 14 }, # end of 'variables' | 14 }, # end of 'variables' |
| 15 | 15 |
| 16 'targets': [ | 16 'targets': [ |
| 17 { | 17 { |
| 18 # GN version: //remoting:remoting_breakpad_tester |
| 18 'target_name': 'remoting_breakpad_tester', | 19 'target_name': 'remoting_breakpad_tester', |
| 19 'type': 'executable', | 20 'type': 'executable', |
| 20 'variables': { 'enable_wexit_time_destructors': 1, }, | 21 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 21 'dependencies': [ | 22 'dependencies': [ |
| 22 '../base/base.gyp:base', | 23 '../base/base.gyp:base', |
| 23 'remoting_host', | 24 'remoting_host', |
| 24 ], | 25 ], |
| 25 'sources': [ | 26 'sources': [ |
| 26 'tools/breakpad_tester_win.cc', | 27 'tools/breakpad_tester_win.cc', |
| 27 ], | 28 ], |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 ], | 73 ], |
| 73 'process_outputs_as_sources': 1, | 74 'process_outputs_as_sources': 1, |
| 74 'message': 'Generating <@(_outputs)', | 75 'message': 'Generating <@(_outputs)', |
| 75 }, | 76 }, |
| 76 ], | 77 ], |
| 77 }, # end of target 'remoting_lib_idl' | 78 }, # end of target 'remoting_lib_idl' |
| 78 | 79 |
| 79 # remoting_lib_ps builds the proxy/stub code generated by MIDL (see | 80 # remoting_lib_ps builds the proxy/stub code generated by MIDL (see |
| 80 # remoting_lib_idl). | 81 # remoting_lib_idl). |
| 81 { | 82 { |
| 83 # GN version: //remoting/host:remoting_lib_ps |
| 82 'target_name': 'remoting_lib_ps', | 84 'target_name': 'remoting_lib_ps', |
| 83 'type': 'static_library', | 85 'type': 'static_library', |
| 84 'defines': [ | 86 'defines': [ |
| 85 # Prepend 'Ps' to the MIDL-generated routines. This includes | 87 # Prepend 'Ps' to the MIDL-generated routines. This includes |
| 86 # DllGetClassObject, DllCanUnloadNow, DllRegisterServer, | 88 # DllGetClassObject, DllCanUnloadNow, DllRegisterServer, |
| 87 # DllUnregisterServer, and DllMain. | 89 # DllUnregisterServer, and DllMain. |
| 88 'ENTRY_PREFIX=Ps', | 90 'ENTRY_PREFIX=Ps', |
| 89 'REGISTER_PROXY_DLL', | 91 'REGISTER_PROXY_DLL', |
| 90 ], | 92 ], |
| 91 'dependencies': [ | 93 'dependencies': [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 110 }, | 112 }, |
| 111 }, # end of target 'remoting_lib_ps' | 113 }, # end of target 'remoting_lib_ps' |
| 112 | 114 |
| 113 # Regenerates 'chromoting_lib.rc' (used to embed 'chromoting_lib.tlb' | 115 # Regenerates 'chromoting_lib.rc' (used to embed 'chromoting_lib.tlb' |
| 114 # into remoting_core.dll's resources) every time | 116 # into remoting_core.dll's resources) every time |
| 115 # 'chromoting_lib_idl.templ' changes. Making remoting_core depend on | 117 # 'chromoting_lib_idl.templ' changes. Making remoting_core depend on |
| 116 # both this and 'remoting_lib_idl' targets ensures that the resorces | 118 # both this and 'remoting_lib_idl' targets ensures that the resorces |
| 117 # are rebuilt every time the type library is updated. GYP alone is | 119 # are rebuilt every time the type library is updated. GYP alone is |
| 118 # not smart enough to figure out this dependency on its own. | 120 # not smart enough to figure out this dependency on its own. |
| 119 { | 121 { |
| 122 # We do not need remoting_lib_rc target anymore in GN, generate_idl and |
| 123 # remoting_lib_idl take care of chromoting_lib_idl.templ change. |
| 120 'target_name': 'remoting_lib_rc', | 124 'target_name': 'remoting_lib_rc', |
| 121 'type': 'none', | 125 'type': 'none', |
| 122 'sources': [ | 126 'sources': [ |
| 123 'host/win/chromoting_lib_idl.templ', | 127 'host/win/chromoting_lib_idl.templ', |
| 124 ], | 128 ], |
| 125 'hard_dependency': 1, | 129 'hard_dependency': 1, |
| 126 'direct_dependent_settings': { | 130 'direct_dependent_settings': { |
| 127 'include_dirs': [ | 131 'include_dirs': [ |
| 128 '<(SHARED_INTERMEDIATE_DIR)', | 132 '<(SHARED_INTERMEDIATE_DIR)', |
| 129 ], | 133 ], |
| 130 }, | 134 }, |
| 131 'rules': [ | 135 'rules': [ |
| 132 { | 136 { |
| 133 'rule_name': 'generate_rc', | 137 'rule_name': 'generate_rc', |
| 134 'extension': 'templ', | 138 'extension': 'templ', |
| 135 'outputs': [ | 139 'outputs': [ |
| 136 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/chromoting_lib.rc', | 140 '<(SHARED_INTERMEDIATE_DIR)/remoting/host/chromoting_lib.rc', |
| 137 ], | 141 ], |
| 138 'action': [ | 142 'action': [ |
| 139 'echo 1 typelib "remoting/host/chromoting_lib.tlb" > <@(_outputs)', | 143 'echo 1 typelib "remoting/host/chromoting_lib.tlb" > <@(_outputs)', |
| 140 ], | 144 ], |
| 141 'message': 'Generating <@(_outputs)', | 145 'message': 'Generating <@(_outputs)', |
| 142 }, | 146 }, |
| 143 ], | 147 ], |
| 144 }, # end of target 'remoting_lib_rc' | 148 }, # end of target 'remoting_lib_rc' |
| 145 # The only difference between |remoting_console.exe| and | 149 # The only difference between |remoting_console.exe| and |
| 146 # |remoting_host.exe| is that the former is a console application. | 150 # |remoting_host.exe| is that the former is a console application. |
| 147 # |remoting_console.exe| is used for debugging purposes. | 151 # |remoting_console.exe| is used for debugging purposes. |
| 148 { | 152 { |
| 153 # GN version: //remoting/host:remoting_console |
| 149 'target_name': 'remoting_console', | 154 'target_name': 'remoting_console', |
| 150 'type': 'executable', | 155 'type': 'executable', |
| 151 'variables': { 'enable_wexit_time_destructors': 1, }, | 156 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 152 'defines': [ | 157 'defines': [ |
| 153 'BINARY=BINARY_HOST_ME2ME', | 158 'BINARY=BINARY_HOST_ME2ME', |
| 154 ], | 159 ], |
| 155 'dependencies': [ | 160 'dependencies': [ |
| 156 'remoting_core', | 161 'remoting_core', |
| 157 'remoting_windows_resources', | 162 'remoting_windows_resources', |
| 158 ], | 163 ], |
| 159 'sources': [ | 164 'sources': [ |
| 160 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', | 165 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', |
| 161 'host/win/entry_point.cc', | 166 'host/win/entry_point.cc', |
| 162 ], | 167 ], |
| 163 'msvs_settings': { | 168 'msvs_settings': { |
| 164 'VCManifestTool': { | 169 'VCManifestTool': { |
| 165 'AdditionalManifestFiles': [ | 170 'AdditionalManifestFiles': [ |
| 166 'host/win/dpi_aware.manifest', | 171 'host/win/dpi_aware.manifest', |
| 167 ], | 172 ], |
| 168 }, | 173 }, |
| 169 'VCLinkerTool': { | 174 'VCLinkerTool': { |
| 170 'EntryPointSymbol': 'HostEntryPoint', | 175 'EntryPointSymbol': 'HostEntryPoint', |
| 171 'IgnoreAllDefaultLibraries': 'true', | 176 'IgnoreAllDefaultLibraries': 'true', |
| 172 'SubSystem': '1', # /SUBSYSTEM:CONSOLE | 177 'SubSystem': '1', # /SUBSYSTEM:CONSOLE |
| 173 }, | 178 }, |
| 174 }, | 179 }, |
| 175 }, # end of target 'remoting_console' | 180 }, # end of target 'remoting_console' |
| 176 { | 181 { |
| 182 # GN version: //remoting/host:remoting_core |
| 177 'target_name': 'remoting_core', | 183 'target_name': 'remoting_core', |
| 178 'type': 'shared_library', | 184 'type': 'shared_library', |
| 179 'variables': { 'enable_wexit_time_destructors': 1, }, | 185 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 180 'defines' : [ | 186 'defines' : [ |
| 181 '_ATL_APARTMENT_THREADED', | 187 '_ATL_APARTMENT_THREADED', |
| 182 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', | 188 '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS', |
| 183 '_ATL_NO_AUTOMATIC_NAMESPACE', | 189 '_ATL_NO_AUTOMATIC_NAMESPACE', |
| 184 '_ATL_NO_EXCEPTIONS', | 190 '_ATL_NO_EXCEPTIONS', |
| 185 'BINARY=BINARY_CORE', | 191 'BINARY=BINARY_CORE', |
| 186 'DAEMON_CONTROLLER_CLSID="{<(daemon_controller_clsid)}"', | 192 'DAEMON_CONTROLLER_CLSID="{<(daemon_controller_clsid)}"', |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 # TODO: Remove once remoting/host/verify_config_window_win.h no | 277 # TODO: Remove once remoting/host/verify_config_window_win.h no |
| 272 # longer depends on atlapp.h, http://crbug.com/5027 | 278 # longer depends on atlapp.h, http://crbug.com/5027 |
| 273 'VCCLCompilerTool': { | 279 'VCCLCompilerTool': { |
| 274 'AdditionalOptions': ['-Wno-header-hygiene'], | 280 'AdditionalOptions': ['-Wno-header-hygiene'], |
| 275 }, | 281 }, |
| 276 }], | 282 }], |
| 277 ], | 283 ], |
| 278 }, | 284 }, |
| 279 }, # end of target 'remoting_core' | 285 }, # end of target 'remoting_core' |
| 280 { | 286 { |
| 287 # GN version: //remoting/host:remoting_desktop |
| 281 'target_name': 'remoting_desktop', | 288 'target_name': 'remoting_desktop', |
| 282 'type': 'executable', | 289 'type': 'executable', |
| 283 'variables': { 'enable_wexit_time_destructors': 1, }, | 290 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 284 'defines': [ | 291 'defines': [ |
| 285 'BINARY=BINARY_DESKTOP', | 292 'BINARY=BINARY_DESKTOP', |
| 286 ], | 293 ], |
| 287 'dependencies': [ | 294 'dependencies': [ |
| 288 'remoting_core', | 295 'remoting_core', |
| 289 'remoting_windows_resources', | 296 'remoting_windows_resources', |
| 290 ], | 297 ], |
| (...skipping 18 matching lines...) Expand all Loading... |
| 309 'UACUIAccess': 'true', | 316 'UACUIAccess': 'true', |
| 310 }], | 317 }], |
| 311 ], | 318 ], |
| 312 'EntryPointSymbol': 'HostEntryPoint', | 319 'EntryPointSymbol': 'HostEntryPoint', |
| 313 'IgnoreAllDefaultLibraries': 'true', | 320 'IgnoreAllDefaultLibraries': 'true', |
| 314 'SubSystem': '2', # /SUBSYSTEM:WINDOWS | 321 'SubSystem': '2', # /SUBSYSTEM:WINDOWS |
| 315 }, | 322 }, |
| 316 }, | 323 }, |
| 317 }, # end of target 'remoting_desktop' | 324 }, # end of target 'remoting_desktop' |
| 318 { | 325 { |
| 326 # GN version: //remoting/host:remoting_me2me_host |
| 319 'target_name': 'remoting_me2me_host', | 327 'target_name': 'remoting_me2me_host', |
| 320 'product_name': 'remoting_host', | 328 'product_name': 'remoting_host', |
| 321 'type': 'executable', | 329 'type': 'executable', |
| 322 'variables': { 'enable_wexit_time_destructors': 1, }, | 330 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 323 'defines': [ | 331 'defines': [ |
| 324 'BINARY=BINARY_HOST_ME2ME', | 332 'BINARY=BINARY_HOST_ME2ME', |
| 325 ], | 333 ], |
| 326 'dependencies': [ | 334 'dependencies': [ |
| 327 'remoting_core', | 335 'remoting_core', |
| 328 'remoting_windows_resources', | 336 'remoting_windows_resources', |
| (...skipping 10 matching lines...) Expand all Loading... |
| 339 }, | 347 }, |
| 340 'VCLinkerTool': { | 348 'VCLinkerTool': { |
| 341 'EntryPointSymbol': 'HostEntryPoint', | 349 'EntryPointSymbol': 'HostEntryPoint', |
| 342 'IgnoreAllDefaultLibraries': 'true', | 350 'IgnoreAllDefaultLibraries': 'true', |
| 343 'OutputFile': '$(OutDir)\\remoting_host.exe', | 351 'OutputFile': '$(OutDir)\\remoting_host.exe', |
| 344 'SubSystem': '2', # /SUBSYSTEM:WINDOWS | 352 'SubSystem': '2', # /SUBSYSTEM:WINDOWS |
| 345 }, | 353 }, |
| 346 }, | 354 }, |
| 347 }, # end of target 'remoting_me2me_host' | 355 }, # end of target 'remoting_me2me_host' |
| 348 { | 356 { |
| 357 # GN version: //remoting/host:remote_security_key |
| 349 'target_name': 'remote_security_key', | 358 'target_name': 'remote_security_key', |
| 350 'type': 'executable', | 359 'type': 'executable', |
| 351 'product_name': 'remote_security_key', | 360 'product_name': 'remote_security_key', |
| 352 'variables': { 'enable_wexit_time_destructors': 1, }, | 361 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 353 'defines' : [ | 362 'defines' : [ |
| 354 'BINARY=BINARY_REMOTE_SECURITY_KEY', | 363 'BINARY=BINARY_REMOTE_SECURITY_KEY', |
| 355 ], | 364 ], |
| 356 'dependencies': [ | 365 'dependencies': [ |
| 357 'remoting_core', | 366 'remoting_core', |
| 358 'remoting_windows_resources', | 367 'remoting_windows_resources', |
| 359 ], | 368 ], |
| 360 'sources': [ | 369 'sources': [ |
| 361 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', | 370 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', |
| 362 'host/security_key/remote_security_key_entry_point.cc', | 371 'host/security_key/remote_security_key_entry_point.cc', |
| 363 ], | 372 ], |
| 364 'msvs_settings': { | 373 'msvs_settings': { |
| 365 'VCLinkerTool': { | 374 'VCLinkerTool': { |
| 366 'IgnoreAllDefaultLibraries': 'true', | 375 'IgnoreAllDefaultLibraries': 'true', |
| 367 'SubSystem': '1', # /SUBSYSTEM:CONSOLE | 376 'SubSystem': '1', # /SUBSYSTEM:CONSOLE |
| 368 }, | 377 }, |
| 369 }, | 378 }, |
| 370 }, # end of target 'remote_security_key' | 379 }, # end of target 'remote_security_key' |
| 371 { | 380 { |
| 381 # GN version: //remoting/host:remoting_me2me_native_messaging_host |
| 372 'target_name': 'remoting_me2me_native_messaging_host', | 382 'target_name': 'remoting_me2me_native_messaging_host', |
| 373 'type': 'executable', | 383 'type': 'executable', |
| 374 'product_name': 'remoting_native_messaging_host', | 384 'product_name': 'remoting_native_messaging_host', |
| 375 'variables': { 'enable_wexit_time_destructors': 1, }, | 385 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 376 'defines' : [ | 386 'defines' : [ |
| 377 'BINARY=BINARY_NATIVE_MESSAGING_HOST', | 387 'BINARY=BINARY_NATIVE_MESSAGING_HOST', |
| 378 ], | 388 ], |
| 379 'dependencies': [ | 389 'dependencies': [ |
| 380 'remoting_core', | 390 'remoting_core', |
| 381 'remoting_windows_resources', | 391 'remoting_windows_resources', |
| 382 ], | 392 ], |
| 383 'sources': [ | 393 'sources': [ |
| 384 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', | 394 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', |
| 385 'host/setup/me2me_native_messaging_host_entry_point.cc', | 395 'host/setup/me2me_native_messaging_host_entry_point.cc', |
| 386 ], | 396 ], |
| 387 'msvs_settings': { | 397 'msvs_settings': { |
| 388 'VCLinkerTool': { | 398 'VCLinkerTool': { |
| 389 'IgnoreAllDefaultLibraries': 'true', | 399 'IgnoreAllDefaultLibraries': 'true', |
| 390 'SubSystem': '1', # /SUBSYSTEM:CONSOLE | 400 'SubSystem': '1', # /SUBSYSTEM:CONSOLE |
| 391 }, | 401 }, |
| 392 }, | 402 }, |
| 393 }, # end of target 'remoting_me2me_native_messaging_host' | 403 }, # end of target 'remoting_me2me_native_messaging_host' |
| 394 { | 404 { |
| 405 # GN version: //remoting/host/it2me:remoting_assistance_host |
| 395 'target_name': 'remoting_it2me_native_messaging_host', | 406 'target_name': 'remoting_it2me_native_messaging_host', |
| 396 'type': 'executable', | 407 'type': 'executable', |
| 397 'product_name': 'remote_assistance_host', | 408 'product_name': 'remote_assistance_host', |
| 398 'variables': { 'enable_wexit_time_destructors': 1, }, | 409 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 399 'dependencies': [ | 410 'dependencies': [ |
| 400 'remoting_core', | 411 'remoting_core', |
| 401 'remoting_windows_resources', | 412 'remoting_windows_resources', |
| 402 ], | 413 ], |
| 403 'sources': [ | 414 'sources': [ |
| 404 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', | 415 '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc', |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 # Generates localized resources for the Windows binaries. | 474 # Generates localized resources for the Windows binaries. |
| 464 # The substitution strings are taken from: | 475 # The substitution strings are taken from: |
| 465 # - build/util/LASTCHANGE - the last source code revision. There is | 476 # - build/util/LASTCHANGE - the last source code revision. There is |
| 466 # no explicit dependency on this file to avoid rebuilding the host | 477 # no explicit dependency on this file to avoid rebuilding the host |
| 467 # after unrelated changes. | 478 # after unrelated changes. |
| 468 # - chrome/VERSION - the major, build & patch versions. | 479 # - chrome/VERSION - the major, build & patch versions. |
| 469 # - remoting/VERSION - the chromoting patch version (and overrides | 480 # - remoting/VERSION - the chromoting patch version (and overrides |
| 470 # for chrome/VERSION). | 481 # for chrome/VERSION). |
| 471 # - translated webapp strings | 482 # - translated webapp strings |
| 472 { | 483 { |
| 484 # GN version: //remoting/host:remoting_windows_resources |
| 473 'target_name': 'remoting_windows_resources', | 485 'target_name': 'remoting_windows_resources', |
| 474 'type': 'none', | 486 'type': 'none', |
| 475 'dependencies': [ | 487 'dependencies': [ |
| 476 'remoting_resources', | 488 'remoting_resources', |
| 477 ], | 489 ], |
| 478 'hard_dependency': 1, | 490 'hard_dependency': 1, |
| 479 'direct_dependent_settings': { | 491 'direct_dependent_settings': { |
| 480 'include_dirs': [ | 492 'include_dirs': [ |
| 481 '<(SHARED_INTERMEDIATE_DIR)', | 493 '<(SHARED_INTERMEDIATE_DIR)', |
| 482 ], | 494 ], |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 | 678 |
| 667 { | 679 { |
| 668 'target_name': 'remoting_me2me_host_archive', | 680 'target_name': 'remoting_me2me_host_archive', |
| 669 'type': 'none', | 681 'type': 'none', |
| 670 }, | 682 }, |
| 671 ], # end of 'targets' | 683 ], # end of 'targets' |
| 672 }], # 'wix_exists == "True" and sas_dll_exists == "True"' | 684 }], # 'wix_exists == "True" and sas_dll_exists == "True"' |
| 673 | 685 |
| 674 ], # end of 'conditions' | 686 ], # end of 'conditions' |
| 675 } | 687 } |
| OLD | NEW |