Add a Notification Settings Button to all web notifications behind the web platform...
[chromium-blink-merge.git] / third_party / adobe / flash / BUILD.gn
blob6a15c0bbe51f34619e4c8caa5142a327317fb551
1 # Copyright 2014 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.
5 import("//build/config/chrome_build.gni")
7 if (is_chrome_branded) {
8   if (is_linux && current_cpu == "x86") {
9     flapper_version_h_file = "symbols/ppapi/linux/flapper_version.h"
10     flapper_binary_files = [
11       "binaries/ppapi/linux/libpepflashplayer.so",
12       "binaries/ppapi/linux/manifest.json",
13     ]
14   } else if (is_linux && current_cpu == "x64") {
15     flapper_version_h_file = "symbols/ppapi/linux_x64/flapper_version.h"
16     flapper_binary_files = [
17       "binaries/ppapi/linux_x64/libpepflashplayer.so",
18       "binaries/ppapi/linux_x64/manifest.json",
19     ]
20   } else if (is_mac && current_cpu == "x86") {
21     flapper_version_h_file = "symbols/ppapi/mac/flapper_version.h"
22     flapper_binary_files = [
23       "binaries/ppapi/mac/PepperFlashPlayer.plugin",
24       "binaries/ppapi/mac/manifest.json",
25     ]
26   } else if (is_mac && current_cpu == "x64") {
27     flapper_version_h_file = "symbols/ppapi/mac_64/flapper_version.h"
28     flapper_binary_files = [
29       "binaries/ppapi/mac_64/PepperFlashPlayer.plugin",
30       "binaries/ppapi/mac_64/manifest.json",
31     ]
32   } else if (is_win && current_cpu == "x86") {
33     flapper_version_h_file = "symbols/ppapi/win/flapper_version.h"
34     flapper_binary_files = [
35       "binaries/ppapi/win/pepflashplayer.dll",
36       "binaries/ppapi/win/manifest.json",
37     ]
38   } else if (is_win && current_cpu == "x64") {
39     flapper_version_h_file = "symbols/ppapi/win_x64/flapper_version.h"
40     flapper_binary_files = [
41       "binaries/ppapi/win_x64/pepflashplayer.dll",
42       "binaries/ppapi/win_x64/manifest.json",
43     ]
44   } else {
45     flapper_version_h_file = "flapper_version.h"
46     flapper_binary_files = []
47   }
48 } else {
49   flapper_version_h_file = "flapper_version.h"
50   flapper_binary_files = []
53 copy("flapper_version_h") {
54   sources = [
55     flapper_version_h_file,
56   ]
57   outputs = [
58     "$root_gen_dir/{{source_file_part}}",
59   ]
62 if (flapper_binary_files == []) {
63   group("flapper_binaries") {
64     # NOP
65   }
66 } else {
67   copy("flapper_binaries") {
68     sources = flapper_binary_files
69     outputs = [
70       "$root_out_dir/PepperFlash/{{source_file_part}}",
71     ]
72   }