# -*- python -*-
# ex: set syntax=python:

# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This is a buildbot configuration file containing a tagged list of files
# processed by the stage/archive scripts. The known tags are:
#
# filename: Name of the file in the build output directory.
# arch:     List of CPU architectures for which this file should be processed
#           Leave this unspecified to prcoess for all architectures.
#           Acceptable values are 64bit, 32bit and arm.
# buildtype: List of build types for which this file should be processed.
# archive: The name of the archive file to store filename in. If not specified,
#          filename is added to the default archive (e.g. platform.zip). If
#          archive == filename, filename is archived directly, not zipped.
# direct_archive: Force a file to be archived as-is, bypassing zip creation.
#                 NOTE: This flag will not apply if more than one file has the
#                 same 'archive' name, which will create a zip of all the
#                 files instead.
# filegroup: List of named groups to which this file belongs.
#            default: Legacy "default archive". TODO(mmoss): These should
#                     be updated to specify an 'archive' name and then this
#                     filegroup and the related archive_utils.ParseLegacyList()
#                     should go away.
#            symsrc: Files to upload to the symbol server.
# optional: List of buildtypes for which the file might not exist, and it's not
#           considered an error.
FILES = [
  {
    'filename': 'xwalk.exe',
    'buildtype': ['dev', 'official'],
  },
  {
    'filename': 'xwalk.pak',
    'buildtype': ['dev', 'official'],
  },
  {
    'filename': 'ffmpegsumo.dll',
    'buildtype': ['dev'],
  },
  {
    'filename': 'icudt.dll',
    'buildtype': ['dev', 'official'],
  },
  {
    'filename': 'D3DCompiler_46.dll',
    'buildtype': ['dev'],
  },
  {
    'filename': 'libEGL.dll',
    'buildtype': ['dev', 'official'],
  },
  {
    'filename': 'libGLESv2.dll',
    'buildtype': ['dev', 'official'],
  },
# installer creation scripts
  {
    'filename': 'create_windows_installer.bat',
    'buildtype': ['dev', 'official'],
  },
  {
    'filename': 'app.wxs.templ',
    'buildtype': ['dev', 'official'],
  },
  {
    'filename': 'guid.vbs',
    'buildtype': ['dev', 'official'],
  },
# syms files
  {
    'filename': 'xwalk.exe.pdb',
    'buildtype': ['dev', 'official'],
    'archive': 'xwalk-win32-syms.zip',
  },
  {
    'filename': 'ffmpegsumo.dll.pdb',
    'buildtype': ['dev'],
    'archive': 'xwalk-win32-syms.zip',
  },
  {
    'filename': 'libEGL.dll.pdb',
    'buildtype': ['dev', 'official'],
    'archive': 'xwalk-win32-syms.zip',
  },
  {
    'filename': 'libGLESv2.dll.pdb',
    'buildtype': ['dev', 'official'],
    'archive': 'xwalk-win32-syms.zip',
  },
# XPK package generator
  {
    'filename': 'tools/make_xpk.py',
    'buildtype': ['dev', 'official'],
  },
]
