Chromium Code Reviews
        
  Descriptionozone: Fix the way platform tests link ozone
Right now the DRM platform unit tests link ozone as a component, and also
link against the platform classes statically. Linking two copies of the
platform code into the test executable is an ODR violation and undefined
behavior.
The newer wayland platform fixes the issue, but at the cost of exporting
platform internals from ozone. It'd be good to avoid these exports
because it forces us to mark the platform dependency public in GN, which
in turn makes inclusion of platform internals legal from outside ozone
according to GN's dependency checker.
To fix both issues, this creates an new internal //ui/ozone:platform
target which is used by tests to link ozone statically. Only tests will
use it, everyone else will continue to use ozone encapsulated via the
//ui/ozone component.
GYP can do this as well but has a weird quirk: it won't link if there's
no C++ source file in the component target. I added an empty one.
Committed: https://crrev.com/4dc16f302df8ff9a5fa9fd819cd6e85fbe1835ce
Cr-Commit-Position: refs/heads/master@{#376823}
   
  Patch Set 1 #
      Total comments: 2
      
     
  
  
  
  Patch Set 2 : add comment to empty.cc #Patch Set 3 : typofix #
      Total comments: 1
      
     
  
  
  
  Patch Set 4 : exists #
 Messages
    Total messages: 13 (6 generated)
     
  
  
       | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||