intel / ozone-wayland

Wayland implementation for Chromium Ozone classes
BSD 3-Clause "New" or "Revised" License
218 stars 82 forks source link

Fix multiple definition link error #466

Closed jbrianceau closed 8 years ago

jbrianceau commented 8 years ago

Include desktop_window_tree_host_ozone header instead of its implementation in desktop_factory_ozone_wayland.cc to solve the following link issue:

obj/ozone/ui/desktop_aura/views.desktop_window_tree_host_ozone.o: In function views::DesktopWindowTreeHostOzone::AsWindowTreeHost()': src/ozone/ui/desktop_aura/desktop_window_tree_host_ozone.cc:239: multiple definition ofviews::DesktopWindowTreeHostOzone::AsWindowTreeHost()' src/ozone/ui/desktop_aura/desktop_window_tree_host_ozone.cc:239: first defined here obj/ozone/ui/desktop_aura/views.desktop_window_tree_host_ozone.o: In function views::DesktopWindowTreeHostOzone::ShowMaximizedWithBounds(gfx::Rect const&)': src/ozone/ui/desktop_aura/desktop_window_tree_host_ozone.cc:268: multiple definition ofviews::DesktopWindowTreeHostOzone::ShowMaximizedWithBounds(gfx::Rect const&)' src/ozone/ui/desktop_aura/desktop_window_tree_host_ozone.cc:268: first defined here [...]