Home | History | Annotate | Download | only in samples
      1 # Copyright (c) 2010 The ANGLE Project 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     'targets':
      7     [
      8         {
      9             'target_name': 'essl_to_glsl',
     10             'type': 'executable',
     11             'includes': [ '../build/common_defines.gypi', ],
     12             'dependencies': [ '../src/angle.gyp:translator_static', ],
     13             'include_dirs': [ '../include', ],
     14             'sources': [ '<!@(python <(angle_path)/enumerate_files.py translator -types *.cpp *.h)' ],
     15         },
     16     ],
     17     'conditions':
     18     [
     19         ['OS=="win"',
     20         {
     21             'targets':
     22             [
     23                 {
     24                     'target_name': 'essl_to_hlsl',
     25                     'type': 'executable',
     26                     'includes': [ '../build/common_defines.gypi', ],
     27                     'dependencies': [ '../src/angle.gyp:translator_static', ],
     28                     'include_dirs':
     29                     [
     30                         '../include',
     31                         '../src',
     32                     ],
     33                     'sources':
     34                     [
     35                         '<!@(python <(angle_path)/enumerate_files.py translator -types *.cpp *.h)',
     36                     ],
     37                 },
     38 
     39                 {
     40                     'target_name': 'dds_to_header',
     41                     'type': 'executable',
     42                     'includes': [ '../build/common_defines.gypi', ],
     43                     'sources':
     44                     [
     45                         '<!@(python <(angle_path)/enumerate_files.py dds_to_header -types *.cpp)',
     46                     ],
     47                 },
     48 
     49                 {
     50                     'target_name': 'sample_util',
     51                     'type': 'static_library',
     52                     'includes': [ '../build/common_defines.gypi', ],
     53                     'dependencies':
     54                     [
     55                         '../src/angle.gyp:libEGL',
     56                         '../src/angle.gyp:libGLESv2',
     57                         '../util/util.gyp:angle_util',
     58                     ],
     59                     'include_dirs':
     60                     [
     61                         '../include',
     62                         'angle/sample_util',
     63                     ],
     64                     'sources':
     65                     [
     66                         '<!@(python <(angle_path)/enumerate_files.py angle/sample_util -types *.cpp *.h)'
     67                     ],
     68                     'msvs_disabled_warnings': [ 4201 ],
     69                     'direct_dependent_settings':
     70                     {
     71                         'msvs_disabled_warnings': [ 4201 ],
     72                         'include_dirs':
     73                         [
     74                             '../include',
     75                             'angle/sample_util',
     76                             '../util',
     77                         ],
     78                     },
     79                 },
     80 
     81                 {
     82                     'target_name': 'hello_triangle',
     83                     'type': 'executable',
     84                     'dependencies': [ 'sample_util' ],
     85                     'includes': [ '../build/common_defines.gypi', ],
     86                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/hello_triangle -types *.cpp *.h)' ],
     87                 },
     88 
     89                 {
     90                     'target_name': 'mip_map_2d',
     91                     'type': 'executable',
     92                     'dependencies': [ 'sample_util' ],
     93                     'includes': [ '../build/common_defines.gypi', ],
     94                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/mip_map_2d -types *.cpp *.h)' ],
     95                 },
     96 
     97                 {
     98                     'target_name': 'multi_texture',
     99                     'type': 'executable',
    100                     'dependencies': [ 'sample_util' ],
    101                     'includes': [ '../build/common_defines.gypi', ],
    102                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.cpp *.h)' ],
    103                     'copies':
    104                     [
    105                         {
    106                             'destination': '<(PRODUCT_DIR)',
    107                             'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.tga)' ],
    108                         },
    109                     ]
    110                 },
    111 
    112                 {
    113                     'target_name': 'particle_system',
    114                     'type': 'executable',
    115                     'dependencies': [ 'sample_util' ],
    116                     'includes': [ '../build/common_defines.gypi', ],
    117                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.cpp *.h)' ],
    118                     'copies':
    119                     [
    120                         {
    121                             'destination': '<(PRODUCT_DIR)',
    122                             'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.tga)' ],
    123                         }
    124                     ]
    125                 },
    126 
    127                 {
    128                     'target_name': 'simple_instancing',
    129                     'type': 'executable',
    130                     'dependencies': [ 'sample_util' ],
    131                     'includes': [ '../build/common_defines.gypi', ],
    132                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_instancing -types *.cpp *.h)' ],
    133                 },
    134 
    135                 {
    136                     'target_name': 'multiple_draw_buffers',
    137                     'type': 'executable',
    138                     'dependencies': [ 'sample_util' ],
    139                     'includes': [ '../build/common_defines.gypi', ],
    140                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.cpp *.h *.glsl)' ],
    141                     'copies':
    142                     [
    143                         {
    144                             'destination': '<(PRODUCT_DIR)',
    145                             'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.glsl)' ],
    146                         }
    147                     ]
    148                 },
    149 
    150                 {
    151                     'target_name': 'simple_texture_2d',
    152                     'type': 'executable',
    153                     'dependencies': [ 'sample_util' ],
    154                     'includes': [ '../build/common_defines.gypi', ],
    155                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_2d -types *.cpp *.h)' ],
    156                 },
    157 
    158                 {
    159                     'target_name': 'simple_texture_cubemap',
    160                     'type': 'executable',
    161                     'dependencies': [ 'sample_util' ],
    162                     'includes': [ '../build/common_defines.gypi', ],
    163                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_cubemap -types *.cpp *.h)' ],
    164                 },
    165 
    166                 {
    167                     'target_name': 'simple_vertex_shader',
    168                     'type': 'executable',
    169                     'dependencies': [ 'sample_util' ],
    170                     'includes': [ '../build/common_defines.gypi', ],
    171                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_vertex_shader -types *.cpp *.h)' ],
    172                 },
    173 
    174                 {
    175                     'target_name': 'stencil_operations',
    176                     'type': 'executable',
    177                     'dependencies': [ 'sample_util' ],
    178                     'includes': [ '../build/common_defines.gypi', ],
    179                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/stencil_operations -types *.cpp *.h)' ],
    180                 },
    181 
    182                 {
    183                     'target_name': 'texture_wrap',
    184                     'type': 'executable',
    185                     'dependencies': [ 'sample_util' ],
    186                     'includes': [ '../build/common_defines.gypi', ],
    187                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/texture_wrap -types *.cpp *.h)' ],
    188                 },
    189 
    190                 {
    191                     'target_name': 'post_sub_buffer',
    192                     'type': 'executable',
    193                     'dependencies': [ 'sample_util' ],
    194                     'includes': [ '../build/common_defines.gypi', ],
    195                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/post_sub_buffer -types *.cpp *.h)' ],
    196                 },
    197             ],
    198         }
    199         ],
    200     ],
    201 }
    202