Home | History | Annotate | Download | only in flash
      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     'flapper_version_h_file%': 'flapper_version.h',
      8     'flapper_binary_files%': [],
      9     'conditions': [
     10       [ 'branding == "Chrome"', {
     11         'conditions': [
     12           [ 'OS == "linux" and target_arch == "ia32"', {
     13             'flapper_version_h_file%': 'symbols/ppapi/linux/flapper_version.h',
     14             'flapper_binary_files%': [
     15               'binaries/ppapi/linux/libpepflashplayer.so',
     16               'binaries/ppapi/linux/manifest.json',
     17             ],
     18           }],
     19           [ 'OS == "linux" and target_arch == "x64"', {
     20             'flapper_version_h_file%': 'symbols/ppapi/linux_x64/flapper_version.h',
     21             'flapper_binary_files%': [
     22               'binaries/ppapi/linux_x64/libpepflashplayer.so',
     23               'binaries/ppapi/linux_x64/manifest.json',
     24             ],
     25           }],
     26           [ 'OS == "mac" and target_arch == "ia32"', {
     27             'flapper_version_h_file%': 'symbols/ppapi/mac/flapper_version.h',
     28             'flapper_binary_files%': [
     29               'binaries/ppapi/mac/PepperFlashPlayer.plugin',
     30               'binaries/ppapi/mac/manifest.json',
     31             ],
     32           }],
     33           [ 'OS == "mac" and target_arch == "x64"', {
     34             'flapper_version_h_file%': 'symbols/ppapi/mac_64/flapper_version.h',
     35             'flapper_binary_files%': [
     36               'binaries/ppapi/mac_64/PepperFlashPlayer.plugin',
     37               'binaries/ppapi/mac_64/manifest.json',
     38             ],
     39           }],
     40           [ 'OS == "win" and target_arch == "ia32"', {
     41             'flapper_version_h_file%': 'symbols/ppapi/win/flapper_version.h',
     42             'flapper_binary_files%': [
     43               'binaries/ppapi/win/pepflashplayer.dll',
     44               'binaries/ppapi/win/manifest.json',
     45             ],
     46           }],
     47           [ 'OS == "win" and target_arch == "x64"', {
     48             'flapper_version_h_file%': 'symbols/ppapi/win_x64/flapper_version.h',
     49             'flapper_binary_files%': [
     50               'binaries/ppapi/win_x64/pepflashplayer.dll',
     51               'binaries/ppapi/win_x64/manifest.json',
     52             ],
     53           }],
     54         ],
     55       }],
     56     ],
     57   },
     58   # Always provide a target, so we can put the logic about whether there's
     59   # anything to be done in this file (instead of a higher-level .gyp file).
     60   'targets': [
     61     {
     62       # GN version: //third_party/adobe/flash:flapper_version_h
     63       'target_name': 'flapper_version_h',
     64       'type': 'none',
     65       'copies': [{
     66         'destination': '<(SHARED_INTERMEDIATE_DIR)',
     67         'files': [ '<(flapper_version_h_file)' ],
     68       }],
     69     },
     70     {
     71       # GN version: //third_party/adobe/flash:flapper_binaries
     72       'target_name': 'flapper_binaries',
     73       'type': 'none',
     74       'copies': [{
     75         'destination': '<(PRODUCT_DIR)/PepperFlash',
     76         'files': [ '<@(flapper_binary_files)' ],
     77       }],
     78     },
     79   ],
     80 }
     81