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                     ],
     58                     'include_dirs':
     59                     [
     60                         '../include',
     61                         'angle/sample_util',
     62                     ],
     63                     'sources':
     64                     [
     65                         '<!@(python <(angle_path)/enumerate_files.py angle/sample_util -types *.cpp *.h)'
     66                     ],
     67                     'msvs_disabled_warnings': [ 4201 ],
     68                     'direct_dependent_settings':
     69                     {
     70                         'msvs_disabled_warnings': [ 4201 ],
     71                         'include_dirs':
     72                         [
     73                             '../include',
     74                             'angle/sample_util',
     75                         ],
     76                     },
     77                 },
     78 
     79                 {
     80                     'target_name': 'hello_triangle',
     81                     'type': 'executable',
     82                     'dependencies': [ 'sample_util' ],
     83                     'includes': [ '../build/common_defines.gypi', ],
     84                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/hello_triangle -types *.cpp *.h)' ],
     85                 },
     86 
     87                 {
     88                     'target_name': 'mip_map_2d',
     89                     'type': 'executable',
     90                     'dependencies': [ 'sample_util' ],
     91                     'includes': [ '../build/common_defines.gypi', ],
     92                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/mip_map_2d -types *.cpp *.h)' ],
     93                 },
     94 
     95                 {
     96                     'target_name': 'multi_texture',
     97                     'type': 'executable',
     98                     'dependencies': [ 'sample_util' ],
     99                     'includes': [ '../build/common_defines.gypi', ],
    100                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.cpp *.h)' ],
    101                     'copies':
    102                     [
    103                         {
    104                             'destination': '<(PRODUCT_DIR)',
    105                             'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.tga)' ],
    106                         },
    107                     ]
    108                 },
    109 
    110                 {
    111                     'target_name': 'particle_system',
    112                     'type': 'executable',
    113                     'dependencies': [ 'sample_util' ],
    114                     'includes': [ '../build/common_defines.gypi', ],
    115                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.cpp *.h)' ],
    116                     'copies':
    117                     [
    118                         {
    119                             'destination': '<(PRODUCT_DIR)',
    120                             'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.tga)' ],
    121                         }
    122                     ]
    123                 },
    124 
    125                 {
    126                     'target_name': 'simple_instancing',
    127                     'type': 'executable',
    128                     'dependencies': [ 'sample_util' ],
    129                     'includes': [ '../build/common_defines.gypi', ],
    130                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_instancing -types *.cpp *.h)' ],
    131                 },
    132 
    133                 {
    134                     'target_name': 'multiple_draw_buffers',
    135                     'type': 'executable',
    136                     'dependencies': [ 'sample_util' ],
    137                     'includes': [ '../build/common_defines.gypi', ],
    138                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.cpp *.h *.glsl)' ],
    139                     'copies':
    140                     [
    141                         {
    142                             'destination': '<(PRODUCT_DIR)',
    143                             'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.glsl)' ],
    144                         }
    145                     ]
    146                 },
    147 
    148                 {
    149                     'target_name': 'simple_texture_2d',
    150                     'type': 'executable',
    151                     'dependencies': [ 'sample_util' ],
    152                     'includes': [ '../build/common_defines.gypi', ],
    153                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_2d -types *.cpp *.h)' ],
    154                 },
    155 
    156                 {
    157                     'target_name': 'simple_texture_cubemap',
    158                     'type': 'executable',
    159                     'dependencies': [ 'sample_util' ],
    160                     'includes': [ '../build/common_defines.gypi', ],
    161                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_cubemap -types *.cpp *.h)' ],
    162                 },
    163 
    164                 {
    165                     'target_name': 'simple_vertex_shader',
    166                     'type': 'executable',
    167                     'dependencies': [ 'sample_util' ],
    168                     'includes': [ '../build/common_defines.gypi', ],
    169                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_vertex_shader -types *.cpp *.h)' ],
    170                 },
    171 
    172                 {
    173                     'target_name': 'stencil_operations',
    174                     'type': 'executable',
    175                     'dependencies': [ 'sample_util' ],
    176                     'includes': [ '../build/common_defines.gypi', ],
    177                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/stencil_operations -types *.cpp *.h)' ],
    178                 },
    179 
    180                 {
    181                     'target_name': 'texture_wrap',
    182                     'type': 'executable',
    183                     'dependencies': [ 'sample_util' ],
    184                     'includes': [ '../build/common_defines.gypi', ],
    185                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/texture_wrap -types *.cpp *.h)' ],
    186                 },
    187 
    188                 {
    189                     'target_name': 'post_sub_buffer',
    190                     'type': 'executable',
    191                     'dependencies': [ 'sample_util' ],
    192                     'includes': [ '../build/common_defines.gypi', ],
    193                     'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/post_sub_buffer -types *.cpp *.h)' ],
    194                 },
    195             ],
    196         }
    197         ],
    198     ],
    199 }
    200