Home | History | Annotate | Download | only in egltest
      1 # Copyright 2014 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'variables': {
      7     'internal_ozone_platform_deps': [
      8       'ozone_platform_egltest',
      9     ],
     10     'internal_ozone_platforms': [
     11       'egltest'
     12     ],
     13   },
     14   'targets': [
     15     {
     16       'target_name': 'ozone_platform_egltest',
     17       'type': 'static_library',
     18       'defines': [
     19         'OZONE_IMPLEMENTATION',
     20       ],
     21       'dependencies': [
     22         '../../base/base.gyp:base',
     23         '../events/events.gyp:events',
     24         '../events/ozone/events_ozone.gyp:events_ozone_evdev',
     25         '../gfx/gfx.gyp:gfx',
     26         'eglplatform_shim',
     27       ],
     28       'sources': [
     29         'ozone_platform_egltest.cc',
     30         'ozone_platform_egltest.h',
     31       ],
     32     },
     33     {
     34       'target_name': 'eglplatform_shim',
     35       'type': 'static_library',
     36       'dependencies': [
     37         '../../third_party/khronos/khronos.gyp:khronos_headers',
     38       ],
     39       'direct_dependent_settings': {
     40         'include_dirs': [
     41           '<(SHARED_INTERMEDIATE_DIR)',
     42         ],
     43       },
     44       'include_dirs': [
     45         '../../../..',
     46       ],
     47       'hard_dependency': 1,
     48       'actions': [
     49         {
     50           'variables': {
     51             'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libeglplatform_shim.h',
     52             'output_cc': '<(INTERMEDIATE_DIR)/libeglplatform_shim_loader.cc',
     53             'generator': '../../tools/generate_library_loader/generate_library_loader.py',
     54           },
     55           'action_name': 'generate_libeglplatform_shim_loader',
     56           'inputs': [
     57             '<(generator)',
     58           ],
     59           'outputs': [
     60             '<(output_h)',
     61             '<(output_cc)',
     62           ],
     63           'action': ['python',
     64                      '<(generator)',
     65                      '--name', 'LibeglplatformShimLoader',
     66                      '--output-h', '<(output_h)',
     67                      '--output-cc', '<(output_cc)',
     68                      '--header', '"ui/ozone/platform/egltest/eglplatform_shim.h"',
     69                      'ShimQueryString',
     70                      'ShimInitialize',
     71                      'ShimTerminate',
     72                      'ShimCreateWindow',
     73                      'ShimQueryWindow',
     74                      'ShimDestroyWindow',
     75                      'ShimGetNativeDisplay',
     76                      'ShimGetNativeWindow',
     77                      'ShimReleaseNativeWindow',
     78           ],
     79           'message': 'Generating libeglplatform_shim library loader',
     80           'process_outputs_as_sources': 1,
     81         },
     82       ],
     83     },
     84   ],
     85   'conditions': [
     86     ['ozone_platform_ozonex == 1', {
     87       'targets': [
     88         {
     89           'target_name': 'eglplatform_shim_x11',
     90           'type': 'loadable_module',
     91           'product_name': 'eglplatform_shim',
     92           'product_extension': 'so.1',
     93           'include_dirs': [
     94             '../../../..',
     95           ],
     96           'dependencies': [
     97             '../../build/linux/system.gyp:x11',
     98           ],
     99           'sources': [
    100             'eglplatform_shim.h',
    101             'eglplatform_shim_xeleven.cc',
    102           ],
    103         },
    104       ],
    105     }],
    106   ],
    107 }
    108