summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorjiangj <jiangj@opera.com>2015-04-16 11:24:47 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-16 18:24:58 +0000
commitae8297db22a6ca96652d42bd0cdc3deff17aba4a (patch)
treef86298c6518f0bc4119a8bc93b5098515c8b1559 /gpu
parent85ac931d6d6d8bb53a0e5e02a48be6de6256853b (diff)
downloadchromium_src-ae8297db22a6ca96652d42bd0cdc3deff17aba4a.zip
chromium_src-ae8297db22a6ca96652d42bd0cdc3deff17aba4a.tar.gz
chromium_src-ae8297db22a6ca96652d42bd0cdc3deff17aba4a.tar.bz2
Fix errors found in Mac gn component builds
Mac gn component build fail because of missing frameworks and missing some other dependencies, and occasionally file list out of sync with the gyp counterpart: http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_dbg/builds/321/steps/compile/logs/stdio For instance, the frameworks linked in the components that sync depends on is not automatically linked into sync, thus revealing the issue. Review URL: https://codereview.chromium.org/1087873003 Cr-Commit-Position: refs/heads/master@{#325479}
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/BUILD.gn8
-rw-r--r--gpu/command_buffer_service.gypi9
2 files changed, 17 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/BUILD.gn b/gpu/command_buffer/service/BUILD.gn
index 8045a03..4d71c71 100644
--- a/gpu/command_buffer/service/BUILD.gn
+++ b/gpu/command_buffer/service/BUILD.gn
@@ -165,6 +165,14 @@ source_set("service_sources") {
]
}
+ if (is_mac) {
+ # Required by gles2_cmd_decoder.cc on Mac.
+ libs = [
+ "IOSurface.framework",
+ "OpenGL.framework",
+ ]
+ }
+
if (is_android && !is_debug) {
# On Android optimize more since this component can be a bottleneck.
configs -= [ "//build/config/compiler:optimize" ]
diff --git a/gpu/command_buffer_service.gypi b/gpu/command_buffer_service.gypi
index 95a0aa2..953ddd2 100644
--- a/gpu/command_buffer_service.gypi
+++ b/gpu/command_buffer_service.gypi
@@ -142,6 +142,15 @@
'../third_party/khronos',
],
}],
+ ['OS=="mac"', {
+ # Required by gles2_cmd_decoder.cc on Mac.
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
+ '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
+ ],
+ },
+ }],
['OS in ("win", "android") or (OS == "linux" and use_x11 == 1)', {
'sources': [
'command_buffer/service/async_pixel_transfer_manager_egl.cc',