# Copyright 2013 The Chromium Authors. All rights reserved.
# Copyright 2013 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'wayland',
      'type': '<(component)',
      'dependencies': [
        '<(DEPTH)/skia/skia.gyp:skia',
        '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
#        'wayland/wayland.gyp:wayland_toolkit',
        'mir/mir.gyp:mir_toolkit'
      ],
      'include_dirs': [
        '..',
      ],
      'includes': [
        'ui/ui.gypi',
        'media/video.gypi',
      ],
      'defines': [
        'OZONE_WAYLAND_IMPLEMENTATION',
      ],
      'cflags': [
        '-std=c++11'
      ],
      'sources': [
        'platform/ozone_export_wayland.h',
#        'platform/ozone_platform_wayland.cc',
#        'platform/ozone_platform_wayland.h',
       'platform/ozone_platform_mir.cc',
        'platform/ozone_platform_mir.h',
      ],
    },
  ]
}

# Copyright 2013 The Chromium Authors. All rights reserved.
# Copyright 2013 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'wayland',
      'type': '<(component)',
      'dependencies': [
        '<(DEPTH)/skia/skia.gyp:skia',
        '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
      ],
      'variables': { 'use_ozone_mir%' : 1, 'use_ozone_wayland%' : 0},
      'conditions': [
        ['use_ozone_mir==1', {            
          'dependencies': [ 'mir/mir.gyp:mir_toolkit'
          ],
          'sources': [
              'platform/ozone_export_wayland.h',
              'platform/ozone_platform_mir.cc',
              'platform/ozone_platform_mir.h',
           ],
           'cflags': [
              '-std=c++11'
           ],
        }],
        ['use_ozone_wayland==1', {
          'dependencies': [ 'wayland/wayland.gyp:wayland_toolkit'
          ],
          'sources': [
              'platform/ozone_export_wayland.h',
              'platform/ozone_platform_wayland.cc',
              'platform/ozone_platform_wayland.h',
           ],
        }],          
      ],
      'include_dirs': [
        '..',
      ],
      'includes': [
        'ui/ui.gypi',
        'media/video.gypi',
      ],
      'defines': [
        'OZONE_WAYLAND_IMPLEMENTATION',
      ],
    },
  ]
}

Build system fixes