aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-10-14 14:04:56 -0400
committerGravatar Mike Klein <mtklein@chromium.org>2016-10-14 20:45:28 +0000
commit487bfc26f93821548b4f02269aacc4843b259a23 (patch)
treea1ac80564e27c2784687e9e365c4f11e1f264381 /infra/bots/recipe_modules
parent00731b42bcd89b98ef01b5aad3bbe51cb7018c9c (diff)
GN/Win: Vulkan support, convert -Vulkan bots.
CQ_INCLUDE_TRYBOTS=master.client.skia.compile:Build-Win-MSVC-x86_64-Release-Vulkan-Trybot;master.client.skia:Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan-Trybot,Perf-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Release-Vulkan-Trybot,Perf-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan-Trybot GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3421 Change-Id: I7012719fff66778488589ab9c15fd2fa2a109cd1 Reviewed-on: https://skia-review.googlesource.com/3421 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'infra/bots/recipe_modules')
-rw-r--r--infra/bots/recipe_modules/flavor/default_flavor.py14
-rw-r--r--infra/bots/recipe_modules/flavor/gn_flavor.py14
2 files changed, 15 insertions, 13 deletions
diff --git a/infra/bots/recipe_modules/flavor/default_flavor.py b/infra/bots/recipe_modules/flavor/default_flavor.py
index aa8669b3a4..64f35f12ce 100644
--- a/infra/bots/recipe_modules/flavor/default_flavor.py
+++ b/infra/bots/recipe_modules/flavor/default_flavor.py
@@ -126,8 +126,6 @@ class DefaultFlavorUtils(object):
if self.m.platform.is_win:
make_cmd = ['python', 'make.py']
self.m.run.run_once(self.bootstrap_win_toolchain)
- if 'Vulkan' in self.m.vars.builder_name:
- env['VULKAN_SDK'] = self.m.vars.slave_dir.join('win_vulkan_sdk')
else:
make_cmd = ['make']
cmd = make_cmd + [target]
@@ -143,17 +141,7 @@ class DefaultFlavorUtils(object):
raise
def copy_extra_build_products(self, swarming_out_dir):
- """Copy extra build products to specified directory.
-
- Copy flavor-specific build products to swarming_out_dir for use in test and
- perf steps."""
- if ("Win" in self.m.vars.builder_name and
- "Vulkan" in self.m.vars.builder_name):
- # This copies vulkan-1.dll that has been bundled into win_vulkan_sdk
- # since version 2 See skia/api BUILD_PRODUCTS_ISOLATE_WHITELIST
- self.m.run.copy_build_products(
- self.m.path['slave_build'].join('win_vulkan_sdk'),
- swarming_out_dir)
+ pass
@property
def out_dir(self):
diff --git a/infra/bots/recipe_modules/flavor/gn_flavor.py b/infra/bots/recipe_modules/flavor/gn_flavor.py
index d06d7c4226..78b323dac7 100644
--- a/infra/bots/recipe_modules/flavor/gn_flavor.py
+++ b/infra/bots/recipe_modules/flavor/gn_flavor.py
@@ -23,6 +23,7 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
extra_config == 'Mesa',
extra_config == 'NoGPU',
extra_config.startswith('SK'),
+ extra_config == 'Vulkan',
os == 'Ubuntu' and target_arch == 'x86',
])
@@ -62,6 +63,7 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
win_toolchain = str(self.m.vars.slave_dir.join(
't', 'depot_tools', 'win_toolchain', 'vs_files',
'95ddda401ec5678f15eeed01d2bee08fcbc5ee97'))
+ win_vulkan_sdk = str(self.m.vars.slave_dir.join('win_vulkan_sdk'))
cc, cxx = None, None
extra_cflags = []
@@ -107,6 +109,7 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
'cc': cc,
'cxx': cxx,
'sanitize': extra_config if 'SAN' in extra_config else '',
+ 'skia_vulkan_sdk': win_vulkan_sdk if extra_config == 'Vulkan' else '',
'target_cpu': 'x86' if target_arch == 'x86' else '',
'windk': win_toolchain if 'Win' in os else '',
}.iteritems():
@@ -127,6 +130,17 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
self._run('ninja', [ninja, '-C', self.out_dir],
env={'NINJA_STATUS': '%%e [%%f/%%t] '})
+ def copy_extra_build_products(self, swarming_out_dir):
+ configuration = self.m.vars.builder_cfg.get('configuration', '')
+ extra_config = self.m.vars.builder_cfg.get('extra_config', '')
+ os = self.m.vars.builder_cfg.get('os', '')
+
+ win_vulkan_sdk = str(self.m.vars.slave_dir.join('win_vulkan_sdk'))
+ if 'Win' in os and extra_config == 'Vulkan':
+ self.m.run.copy_build_products(
+ win_vulkan_sdk,
+ swarming_out_dir.join('out', configuration + '_x64'))
+
def step(self, name, cmd, env=None, **kwargs):
app = self.m.vars.skia_out.join(self.m.vars.configuration, cmd[0])
cmd = [app] + cmd[1:]