Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: gyp/shaderc.gyp

Issue 1903253003: VulkanViewer on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/most.gyp ('k') | gyp/vulkanviewer.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Builds shaderc for the Vulkan backend 6 # Builds shaderc for the Vulkan backend
7 { 7 {
8 'variables': { 8 'variables': {
9 'variables': { # This is the dreaded nested variables dict so that we can 9 'variables': { # This is the dreaded nested variables dict so that we can
10 # have dependent variables 10 # have dependent variables
(...skipping 10 matching lines...) Expand all
21 'shaderc_project_type' : 'MSVS2013', 21 'shaderc_project_type' : 'MSVS2013',
22 }], 22 }],
23 [ 'MSVS_VERSION == "2015"', { 23 [ 'MSVS_VERSION == "2015"', {
24 'shaderc_project_type' : 'MSVS2015', 24 'shaderc_project_type' : 'MSVS2015',
25 }], 25 }],
26 ], 26 ],
27 }, { 27 }, {
28 'shaderc_project_type' : 'ninja', 28 'shaderc_project_type' : 'ninja',
29 }], 29 }],
30 ], 30 ],
31 'shaderc_out_path': '../out/<(CONFIGURATION_NAME)/shaderc_out_<(skia_arch_ type)', 31 'shaderc_out_path': '<(PRODUCT_DIR)/shaderc_out_<(skia_arch_type)',
32 }, 32 },
33 # Export out of nested variables. 33 # Export out of nested variables.
34 'shaderc_build_configuration': '<(shaderc_build_configuration)', 34 'shaderc_build_configuration': '<(shaderc_build_configuration)',
35 'shaderc_project_type': '<(shaderc_project_type)', 35 'shaderc_project_type': '<(shaderc_project_type)',
36 'shaderc_out_path': '<(shaderc_out_path)', 36 'shaderc_out_path': '<(shaderc_out_path)',
37 'shaderc_lib_name': '<(shaderc_lib_name)', 37 'shaderc_lib_name': '<(shaderc_lib_name)',
38 'android_toolchain%': '',
38 39
39 # On Windows the library winds up inside a 'Debug' or 'Release' dir, not so 40 # On Windows the library winds up inside a 'Debug' or 'Release' dir, not so
40 # with ninja project build. 41 # with ninja project build.
41 'conditions': [ 42 'conditions': [
42 [ 'skia_os == "win"', { 43 [ 'skia_os == "win"', {
43 'shaderc_lib_full_path': '<(shaderc_out_path)/libshaderc/<(shaderc_build _configuration)/<(shaderc_lib_name)', 44 'shaderc_lib_full_path': '<(shaderc_out_path)/libshaderc/<(shaderc_build _configuration)/<(shaderc_lib_name)',
44 }, { 45 }, {
45 'shaderc_lib_full_path': '<(shaderc_out_path)/libshaderc/<(shaderc_lib_n ame)', 46 'shaderc_lib_full_path': '<(shaderc_out_path)/libshaderc/<(shaderc_lib_n ame)',
46 }], 47 }],
47 ] 48 ]
48 }, 49 },
49 'targets': [ 50 'targets': [
50 { 51 {
51 # Call out to a python script to build shaderc_combined and then copy it 52 # Call out to a python script to build shaderc_combined and then copy it
52 # to out/<Configuration> 53 # to out/<Configuration>
53 'target_name': 'shaderc_combined', 54 'target_name': 'shaderc_combined',
54 'type': 'none', 55 'type': 'none',
55 'actions': [ 56 'actions': [
56 { 57 {
57 'action_name': 'compile_shaderc', 58 'action_name': 'compile_shaderc',
58 'inputs': [ 59 'inputs': [
59 '<!@(python find.py ../third_party/externals/shaderc2 "*")', 60 '<!@(python find.py ../third_party/externals/shaderc2 "*")',
60 '../tools/build_shaderc.py', 61 '../tools/build_shaderc.py',
61 ], 62 ],
62 'outputs': [ 63 'outputs': [
63 '<(shaderc_lib_full_path)', 64 '<(shaderc_lib_full_path)',
64 ], 65 ],
65 'action': ['python', '../tools/build_shaderc.py', '-s', '../third_part y/externals/shaderc2', '-o', '<(shaderc_out_path)', '-a', '<(skia_arch_type)', ' -t', '<(shaderc_build_configuration)', '-p', '<(shaderc_project_type)'], 66 'action': ['python', '../tools/build_shaderc.py', '-s', '../third_part y/externals/shaderc2', '-o', '<(shaderc_out_path)', '-a', '<(skia_arch_type)', ' -t', '<(shaderc_build_configuration)', '-p', '<(shaderc_project_type)', '-c', '< (android_toolchain)'],
66 }, 67 },
67 ], 68 ],
68 'copies': [ 69 'copies': [
69 { 70 {
70 'destination': '../out/<(CONFIGURATION_NAME)', 71 'destination': '<(PRODUCT_DIR)',
71 'files': ['<(shaderc_lib_full_path)'], 72 'files': ['<(shaderc_lib_full_path)'],
72 }, 73 },
73 ], 74 ],
74 'all_dependent_settings': { 75 'all_dependent_settings': {
75 'link_settings': { 76 'link_settings': {
76 'libraries': [ 77 'libraries': [
77 '<(shaderc_lib_name)', 78 '<(shaderc_lib_name)',
78 ], 79 ],
79 }, 80 },
80 }, 81 },
81 }, 82 },
82 ], 83 ],
83 } 84 }
OLDNEW
« no previous file with comments | « gyp/most.gyp ('k') | gyp/vulkanviewer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698