| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//media/gpu/args.gni") | 7 import("//media/gpu/args.gni") |
| 8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| 11 declare_args() { | 11 declare_args() { |
| 12 # A temporary arg for building MCVD while it's being implemented. | 12 # A temporary arg for building MCVD while it's being implemented. |
| 13 # See http://crbug.com/660942 | 13 # See http://crbug.com/660942 |
| 14 enable_media_codec_video_decoder = false | 14 enable_media_codec_video_decoder = false |
| 15 } | 15 } |
| 16 | 16 |
| 17 if (is_mac) { | 17 if (is_mac) { |
| 18 import("//build/config/mac/mac_sdk.gni") | 18 import("//build/config/mac/mac_sdk.gni") |
| 19 } | 19 } |
| 20 | 20 |
| 21 if (is_chromeos && current_cpu != "arm") { | 21 if (is_chromeos && current_cpu != "arm") { |
| 22 action("libva_generate_stubs") { | 22 action("libva_generate_stubs") { |
| 23 extra_header = "va_stub_header.fragment" | 23 extra_header = "va_stub_header.fragment" |
| 24 | 24 |
| 25 script = "../../tools/generate_stubs/generate_stubs.py" | 25 script = "../../tools/generate_stubs/generate_stubs.py" |
| 26 sources = [ | 26 sources = [ |
| 27 "va.sigs", | 27 "vaapi/va.sigs", |
| 28 ] | 28 ] |
| 29 inputs = [ | 29 inputs = [ |
| 30 extra_header, | 30 extra_header, |
| 31 ] | 31 ] |
| 32 if (use_x11) { | 32 if (use_x11) { |
| 33 sources += [ "va_x11.sigs" ] | 33 sources += [ "vaapi/va_x11.sigs" ] |
| 34 } | 34 } |
| 35 if (use_ozone) { | 35 if (use_ozone) { |
| 36 sources += [ "va_drm.sigs" ] | 36 sources += [ "vaapi/va_drm.sigs" ] |
| 37 } | 37 } |
| 38 stubs_filename_root = "va_stubs" | 38 stubs_filename_root = "va_stubs" |
| 39 | 39 |
| 40 outputs = [ | 40 outputs = [ |
| 41 "$target_gen_dir/$stubs_filename_root.cc", | 41 "$target_gen_dir/vaapi/$stubs_filename_root.cc", |
| 42 "$target_gen_dir/$stubs_filename_root.h", | 42 "$target_gen_dir/vaapi/$stubs_filename_root.h", |
| 43 ] | 43 ] |
| 44 args = [ | 44 args = [ |
| 45 "-i", | 45 "-i", |
| 46 rebase_path("$target_gen_dir", root_build_dir), | 46 rebase_path("$target_gen_dir/vaapi", root_build_dir), |
| 47 "-o", | 47 "-o", |
| 48 rebase_path("$target_gen_dir", root_build_dir), | 48 rebase_path("$target_gen_dir/vaapi", root_build_dir), |
| 49 "-t", | 49 "-t", |
| 50 "posix_stubs", | 50 "posix_stubs", |
| 51 "-e", | 51 "-e", |
| 52 rebase_path(extra_header, root_build_dir), | 52 rebase_path(extra_header, root_build_dir), |
| 53 "-s", | 53 "-s", |
| 54 stubs_filename_root, | 54 stubs_filename_root, |
| 55 "-p", | 55 "-p", |
| 56 "media/gpu", | 56 "media/gpu/vaapi", |
| 57 ] | 57 ] |
| 58 | 58 |
| 59 args += rebase_path(sources, root_build_dir) | 59 args += rebase_path(sources, root_build_dir) |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 | 62 |
| 63 if (is_chromeos && use_v4lplugin) { | 63 if (is_chromeos && use_v4lplugin) { |
| 64 action("libv4l2_generate_stubs") { | 64 action("libv4l2_generate_stubs") { |
| 65 extra_header = "v4l2_stub_header.fragment" | 65 extra_header = "v4l2_stub_header.fragment" |
| 66 | 66 |
| 67 script = "../../tools/generate_stubs/generate_stubs.py" | 67 script = "../../tools/generate_stubs/generate_stubs.py" |
| 68 sources = [ | 68 sources = [ |
| 69 "v4l2.sig", | 69 "v4l2/v4l2.sig", |
| 70 ] | 70 ] |
| 71 inputs = [ | 71 inputs = [ |
| 72 extra_header, | 72 extra_header, |
| 73 ] | 73 ] |
| 74 stubs_filename_root = "v4l2_stubs" | 74 stubs_filename_root = "v4l2_stubs" |
| 75 | 75 |
| 76 outputs = [ | 76 outputs = [ |
| 77 "$target_gen_dir/$stubs_filename_root.cc", | 77 "$target_gen_dir/v4l2/$stubs_filename_root.cc", |
| 78 "$target_gen_dir/$stubs_filename_root.h", | 78 "$target_gen_dir/v4l2/$stubs_filename_root.h", |
| 79 ] | 79 ] |
| 80 args = [ | 80 args = [ |
| 81 "-i", | 81 "-i", |
| 82 rebase_path("$target_gen_dir", root_build_dir), | 82 rebase_path("$target_gen_dir/v4l2", root_build_dir), |
| 83 "-o", | 83 "-o", |
| 84 rebase_path("$target_gen_dir", root_build_dir), | 84 rebase_path("$target_gen_dir/v4l2", root_build_dir), |
| 85 "-t", | 85 "-t", |
| 86 "posix_stubs", | 86 "posix_stubs", |
| 87 "-e", | 87 "-e", |
| 88 rebase_path(extra_header, root_build_dir), | 88 rebase_path(extra_header, root_build_dir), |
| 89 "-s", | 89 "-s", |
| 90 stubs_filename_root, | 90 stubs_filename_root, |
| 91 "-p", | 91 "-p", |
| 92 "media/gpu", | 92 "media/gpu/v4l2", |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 args += rebase_path(sources, root_build_dir) | 95 args += rebase_path(sources, root_build_dir) |
| 96 } | 96 } |
| 97 } | 97 } |
| 98 | 98 |
| 99 config("gpu_config") { | 99 config("gpu_config") { |
| 100 defines = [] | 100 defines = [] |
| 101 if (is_chromeos && use_v4lplugin) { | 101 if (is_chromeos && use_v4lplugin) { |
| 102 defines += [ "USE_LIBV4L2" ] | 102 defines += [ "USE_LIBV4L2" ] |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 "//base/test:test_support", | 541 "//base/test:test_support", |
| 542 "//gpu:test_support", | 542 "//gpu:test_support", |
| 543 "//media/gpu/ipc/common", | 543 "//media/gpu/ipc/common", |
| 544 "//media/gpu/ipc/service", | 544 "//media/gpu/ipc/service", |
| 545 "//testing/gmock", | 545 "//testing/gmock", |
| 546 "//testing/gtest", | 546 "//testing/gtest", |
| 547 "//ui/gfx:test_support", | 547 "//ui/gfx:test_support", |
| 548 "//ui/gfx/geometry", | 548 "//ui/gfx/geometry", |
| 549 ] | 549 ] |
| 550 } | 550 } |
| OLD | NEW |