| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 Google Inc. | |
| 2 # | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 # Builds shaderc for the Vulkan backend | |
| 7 { | |
| 8 'variables': { | |
| 9 'conditions': [ | |
| 10 [ 'CONFIGURATION_NAME == "Release_Developer"', { | |
| 11 'shaderc_build_type' : 'Release', | |
| 12 }, { | |
| 13 'shaderc_build_type' : '<(CONFIGURATION_NAME)', | |
| 14 }], | |
| 15 [ 'skia_os == "win"', { | |
| 16 'shaderc_lib_name' : 'shaderc_combined.lib', | |
| 17 }, { | |
| 18 'shaderc_lib_name' : 'libshaderc_combined.a', | |
| 19 }], | |
| 20 [ 'MSVS_VERSION == "2013"', { | |
| 21 'shaderc_project_type' : 'MSVS2013', | |
| 22 }], | |
| 23 [ 'MSVS_VERSION == "2015"', { | |
| 24 'shaderc_project_type' : 'MSVS2015', | |
| 25 }], | |
| 26 ], | |
| 27 'skia_build_type' : '<(CONFIGURATION_NAME)', | |
| 28 }, | |
| 29 'targets': [ | |
| 30 { | |
| 31 # Call out to a python script to build shaderc_combined and then copy it | |
| 32 # to out/<Configuration> | |
| 33 'target_name': 'shaderc_combined', | |
| 34 'type': 'none', | |
| 35 'actions': [ | |
| 36 { | |
| 37 'action_name': 'compile_shaderc', | |
| 38 'inputs': [ | |
| 39 '<!@(python find.py ../third_party/externals/shaderc "*")', | |
| 40 '../tools/build_shaderc.py', | |
| 41 ], | |
| 42 'outputs': [ | |
| 43 '../out/<(skia_build_type)/shaderc_out_<(skia_arch_type)/libshaderc
/<(shaderc_build_type)/<(shaderc_lib_name)', | |
| 44 ], | |
| 45 'action': ['python', '../tools/build_shaderc.py', '-s', '../third_part
y/externals/shaderc', '-o', '../out/<(skia_build_type)/shaderc_out_<(skia_arch_t
ype)', '-a', '<(skia_arch_type)', '-t', '<(shaderc_build_type)', '-p', '<(shader
c_project_type)'], | |
| 46 }, | |
| 47 ], | |
| 48 'copies': [ | |
| 49 { | |
| 50 'destination': '../out/<(skia_build_type)', | |
| 51 'files': ['../out/<(skia_build_type)/shaderc_out_<(skia_arch_type)/lib
shaderc/<(shaderc_build_type)/<(shaderc_lib_name)'], | |
| 52 }, | |
| 53 ], | |
| 54 'all_dependent_settings': { | |
| 55 'link_settings': { | |
| 56 'libraries': [ | |
| 57 '-lshaderc_combined', | |
| 58 ], | |
| 59 }, | |
| 60 }, | |
| 61 }, | |
| 62 ], | |
| 63 } | |
| OLD | NEW |