I think like the shim header approach is less fragile -- there's less
potential of accidentally including a mixture of the system libvpx and
the Chrome copy when you have both installed. It appears that within
libvpx, it includes its own files via #include
"filename_without_path.h" so I think a trivial shim header will do the
right thing, but I haven't thought about it too hard.
+1. Adding to the header search path pushes the problem onto all of
our code. Using a shim concentrates the problem in one place.
Short-term the shim is a little more painful, but it keeps the
abstraction from leaking all over the place.
-scott
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Revisiting this in the context of http://codereview.chromium.org/5193003/, it might make more sense to switch VPX includes to the system include path.
If I'm understanding the situation correctly, we already might be mixing system header and chromium header versions :(
Out of curiosity what would a header shim look like? Something like a simple header file that includes all necessary VPX headers via system or third_party based on a define like USE_SYSTEM_VPX?