Home | History | Annotate | Download | only in gpu
      1 # Copyright (c) 2012 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     'chromium_code': 1,
      8     # nacl_win64_target is for building the trusted Win64 NaCl broker.
      9     'nacl_win64_target': 0,
     10   },
     11   'includes': [
     12     '../build/common_untrusted.gypi',
     13     'gpu_common.gypi',
     14   ],
     15   'conditions': [
     16     ['disable_nacl==0 and disable_nacl_untrusted==0', {
     17       'targets': [
     18         {
     19           'target_name': 'gles2_implementation_nacl',
     20           'type': 'none',
     21           'variables': {
     22             'nacl_untrusted_build': 1,
     23             'nlib_target': 'libgles2_implementation_nacl.a',
     24             'build_glibc': 0,
     25             'build_newlib': 0,
     26             'build_irt': 1,
     27           },
     28           'defines': [
     29             'GLES2_IMPL_IMPLEMENTATION',
     30           ],
     31           'sources': [
     32             '<@(gles2_implementation_source_files)',
     33           ],
     34           'dependencies': [
     35             '../native_client/tools.gyp:prep_toolchain',
     36             '../base/base_nacl.gyp:base_nacl',
     37             '../third_party/khronos/khronos.gyp:khronos_headers',
     38             'command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
     39             'gles2_cmd_helper_nacl',
     40           ],
     41         },
     42         {
     43           'target_name': 'command_buffer_common_nacl',
     44           'type': 'none',
     45           'variables': {
     46             'nacl_untrusted_build': 1,
     47             'nlib_target': 'libcommand_buffer_common_nacl.a',
     48             'build_glibc': 0,
     49             'build_newlib': 0,
     50             'build_irt': 1,
     51           },
     52           'includes': [
     53             'command_buffer_common.gypi',
     54           ],
     55           'dependencies': [
     56             '../native_client/tools.gyp:prep_toolchain',
     57             '../base/base_nacl.gyp:base_nacl',
     58             'command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
     59           ],
     60         },
     61         {
     62           'target_name': 'gles2_cmd_helper_nacl',
     63           'type': 'none',
     64           'variables': {
     65             'nacl_untrusted_build': 1,
     66             'nlib_target': 'libgles2_cmd_helper_nacl.a',
     67             'build_glibc': 0,
     68             'build_newlib': 0,
     69             'build_irt': 1,
     70           },
     71           'includes': [
     72             'gles2_cmd_helper.gypi',
     73           ],
     74           'dependencies': [
     75             '../native_client/tools.gyp:prep_toolchain',
     76             '../base/base_nacl.gyp:base_nacl',
     77             'command_buffer_client_nacl',
     78           ],
     79         },
     80         {
     81           'target_name': 'command_buffer_client_nacl',
     82           'type': 'none',
     83           'variables': {
     84             'nacl_untrusted_build': 1,
     85             'nlib_target': 'libcommand_buffer_client_nacl.a',
     86             'build_glibc': 0,
     87             'build_newlib': 0,
     88             'build_irt': 1,
     89           },
     90           'includes': [
     91             'command_buffer_client.gypi',
     92           ],
     93           'dependencies': [
     94             '../native_client/tools.gyp:prep_toolchain',
     95             '../base/base_nacl.gyp:base_nacl',
     96             'command_buffer_common_nacl',
     97           ],
     98         },
     99         {
    100           'target_name': 'gpu_ipc_nacl',
    101           'type': 'none',
    102           'variables': {
    103             'nacl_untrusted_build': 1,
    104             'nlib_target': 'libgpu_ipc_nacl.a',
    105             'build_glibc': 0,
    106             'build_newlib': 0,
    107             'build_irt': 1,
    108           },
    109           'includes': [
    110             'gpu_ipc.gypi',
    111           ],
    112           'dependencies': [
    113             '../native_client/tools.gyp:prep_toolchain',
    114             '../base/base_nacl.gyp:base_nacl',
    115             'command_buffer_common_nacl',
    116           ],
    117         },
    118       ],
    119     }],
    120   ],
    121 }
    122