libwebp.gn (1016B)
1 # Copyright 2016 The Chromium Authors 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 import("//chromium/build/config/linux/pkg_config.gni") 6 import("//chromium/build/shim_headers.gni") 7 8 pkg_config("system_libwebp") { 9 packages = [ 10 "libwebp", 11 "libwebpdemux", 12 "libwebpmux", 13 ] 14 } 15 16 pkg_config("system_libsharpyuv") { 17 packages = [ "libsharpyuv" ] 18 } 19 20 shim_headers("libwebp_shim") { 21 root_path = "src/src" 22 headers = [ 23 "webp/decode.h", 24 "webp/demux.h", 25 "webp/encode.h", 26 "webp/mux.h", 27 "webp/mux_types.h", 28 "webp/types.h", 29 ] 30 } 31 32 shim_headers("libsharpyuv_shim") { 33 root_path = "src" 34 headers = [ 35 "sharpyuv/sharpyuv.h", 36 "sharpyuv/sharpyuv_csp.h", 37 ] 38 } 39 40 source_set("libwebp_webp") { 41 deps = [ ":libwebp_shim" ] 42 public_configs = [ ":system_libwebp" ] 43 } 44 45 source_set("libwebp_sharpyuv") { 46 deps = [ ":libsharpyuv_shim" ] 47 public_configs = [ ":system_libsharpyuv" ] 48 } 49 50 group("libwebp") { 51 deps = [ ":libwebp_webp" ] 52 }