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

Side by Side Diff: remoting/client/plugin/BUILD.gn

Issue 2384553002: Disable link-time optimization for remoting PNaCl plugin in Debug mode (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 assert(is_nacl, 5 assert(is_nacl,
6 "These targets must only be built using the untrusted NaCl toolchains.") 6 "These targets must only be built using the untrusted NaCl toolchains.")
7 7
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 9
10 config("enable_linker_optimization") {
11 ldflags = [ "-Wl,-O1" ]
12 }
13
14 executable("remoting_client_plugin_newlib") { 10 executable("remoting_client_plugin_newlib") {
15 sources = [ 11 sources = [
16 "chromoting_instance.cc", 12 "chromoting_instance.cc",
17 "chromoting_instance.h", 13 "chromoting_instance.h",
18 "delegating_signal_strategy.cc", 14 "delegating_signal_strategy.cc",
19 "delegating_signal_strategy.h", 15 "delegating_signal_strategy.h",
20 "pepper_address_resolver.cc", 16 "pepper_address_resolver.cc",
21 "pepper_address_resolver.h", 17 "pepper_address_resolver.h",
22 "pepper_audio_player.cc", 18 "pepper_audio_player.cc",
23 "pepper_audio_player.h", 19 "pepper_audio_player.h",
(...skipping 18 matching lines...) Expand all
42 "pepper_util.h", 38 "pepper_util.h",
43 "pepper_video_renderer.h", 39 "pepper_video_renderer.h",
44 "pepper_video_renderer_2d.cc", 40 "pepper_video_renderer_2d.cc",
45 "pepper_video_renderer_2d.h", 41 "pepper_video_renderer_2d.h",
46 "pepper_video_renderer_3d.cc", 42 "pepper_video_renderer_3d.cc",
47 "pepper_video_renderer_3d.h", 43 "pepper_video_renderer_3d.h",
48 ] 44 ]
49 45
50 configs += [ "//build/config/compiler:wexit_time_destructors" ] 46 configs += [ "//build/config/compiler:wexit_time_destructors" ]
51 47
52 if (is_debug) {
53 # Always enable link-time optimization in debug builds to workaround
54 # crbug.com/538243 .
55 configs += [ ":enable_linker_optimization" ]
56 }
57
58 deps = [ 48 deps = [
59 "//net", 49 "//net",
60 "//ppapi/cpp", 50 "//ppapi/cpp",
61 "//ppapi/native_client:ppapi_lib", 51 "//ppapi/native_client:ppapi_lib",
62 "//remoting/base", 52 "//remoting/base",
63 "//remoting/client", 53 "//remoting/client",
64 "//remoting/codec", 54 "//remoting/codec",
65 "//remoting/protocol", 55 "//remoting/protocol",
66 "//third_party/libyuv", 56 "//third_party/libyuv",
67 "//third_party/webrtc/modules/desktop_capture:primitives", 57 "//third_party/webrtc/modules/desktop_capture:primitives",
68 "//ui/events:dom_keycode_converter", 58 "//ui/events:dom_keycode_converter",
69 ] 59 ]
70 60
71 include_dirs = [ "//ppapi/lib/gl/include" ] 61 include_dirs = [ "//ppapi/lib/gl/include" ]
72 } 62 }
73 63
74 if (enable_nacl && is_debug) { 64 if (enable_nacl && is_debug) {
75 copy("remoting_client_plugin_newlib_debug") { 65 copy("remoting_client_plugin_newlib_debug") {
76 public_deps = [ 66 public_deps = [
77 ":remoting_client_plugin_newlib", 67 ":remoting_client_plugin_newlib",
78 ] 68 ]
79 sources = [ 69 sources = [
80 "$root_out_dir/exe.unstripped/remoting_client_plugin_newlib.pexe", 70 "$root_out_dir/exe.unstripped/remoting_client_plugin_newlib.pexe",
81 ] 71 ]
82 outputs = [ 72 outputs = [
83 "$root_out_dir/remoting_client_plugin_newlib.pexe.debug", 73 "$root_out_dir/remoting_client_plugin_newlib.pexe.debug",
84 ] 74 ]
85 } 75 }
86 } 76 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698