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",
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",
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",
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",
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",
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",
45 flapper_version_h_file = "flapper_version.h"
46 flapper_binary_files = []
49 flapper_version_h_file = "flapper_version.h"
50 flapper_binary_files = []
53 copy("flapper_version_h") {
55 flapper_version_h_file,
58 "$root_gen_dir/{{source_file_part}}",
62 if (flapper_binary_files == []) {
63 group("flapper_binaries") {
67 copy("flapper_binaries") {
68 sources = flapper_binary_files
70 "$root_out_dir/PepperFlash/{{source_file_part}}",