| OLD | NEW |
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 declare_args() { |
| 7 } |
| 8 |
| 6 import("third_party.gni") | 9 import("third_party.gni") |
| 7 | 10 |
| 8 # Most third_party code should disable warnings: if we don't maintain the code,
warnings are noise. | |
| 9 config("no_warnings") { | |
| 10 cflags = [ "-w" ] | |
| 11 } | |
| 12 third_party_configs = [ ":no_warnings" ] | |
| 13 | |
| 14 config("libpng_public") { | 11 config("libpng_public") { |
| 15 include_dirs = [ "libpng" ] | 12 include_dirs = [ "libpng" ] |
| 16 } | 13 } |
| 17 source_set("libpng") { | 14 third_party("libpng") { |
| 18 public_configs = [ ":libpng_public" ] | 15 public_configs = [ ":libpng_public" ] |
| 19 configs += third_party_configs | |
| 20 configs -= unwanted_configs | |
| 21 | 16 |
| 22 deps = [ | 17 deps = [ |
| 23 ":zlib", | 18 "//third_party/zlib", |
| 24 ] | 19 ] |
| 25 sources = [ | 20 sources = [ |
| 26 "libpng/png.c", | 21 "libpng/png.c", |
| 27 "libpng/pngerror.c", | 22 "libpng/pngerror.c", |
| 28 "libpng/pngget.c", | 23 "libpng/pngget.c", |
| 29 "libpng/pngmem.c", | 24 "libpng/pngmem.c", |
| 30 "libpng/pngpread.c", | 25 "libpng/pngpread.c", |
| 31 "libpng/pngread.c", | 26 "libpng/pngread.c", |
| 32 "libpng/pngrio.c", | 27 "libpng/pngrio.c", |
| 33 "libpng/pngrtran.c", | 28 "libpng/pngrtran.c", |
| 34 "libpng/pngrutil.c", | 29 "libpng/pngrutil.c", |
| 35 "libpng/pngset.c", | 30 "libpng/pngset.c", |
| 36 "libpng/pngtrans.c", | 31 "libpng/pngtrans.c", |
| 37 "libpng/pngwio.c", | 32 "libpng/pngwio.c", |
| 38 "libpng/pngwrite.c", | 33 "libpng/pngwrite.c", |
| 39 "libpng/pngwtran.c", | 34 "libpng/pngwtran.c", |
| 40 "libpng/pngwutil.c", | 35 "libpng/pngwutil.c", |
| 41 ] | 36 ] |
| 42 } | 37 } |
| 43 | 38 |
| 44 config("libjpeg-turbo_config") { | 39 config("libjpeg-turbo_config") { |
| 45 include_dirs = [ "externals/libjpeg-turbo" ] | 40 include_dirs = [ "externals/libjpeg-turbo" ] |
| 46 } | 41 } |
| 47 source_set("libjpeg-turbo") { | 42 third_party("libjpeg-turbo") { |
| 48 public_configs = [ ":libjpeg-turbo_config" ] | 43 public_configs = [ ":libjpeg-turbo_config" ] |
| 49 configs += third_party_configs | |
| 50 configs -= unwanted_configs | |
| 51 | 44 |
| 52 sources = [ | 45 sources = [ |
| 53 "externals/libjpeg-turbo/jcapimin.c", | 46 "externals/libjpeg-turbo/jcapimin.c", |
| 54 "externals/libjpeg-turbo/jcapistd.c", | 47 "externals/libjpeg-turbo/jcapistd.c", |
| 55 "externals/libjpeg-turbo/jccoefct.c", | 48 "externals/libjpeg-turbo/jccoefct.c", |
| 56 "externals/libjpeg-turbo/jccolor.c", | 49 "externals/libjpeg-turbo/jccolor.c", |
| 57 "externals/libjpeg-turbo/jcdctmgr.c", | 50 "externals/libjpeg-turbo/jcdctmgr.c", |
| 58 "externals/libjpeg-turbo/jchuff.c", | 51 "externals/libjpeg-turbo/jchuff.c", |
| 59 "externals/libjpeg-turbo/jcinit.c", | 52 "externals/libjpeg-turbo/jcinit.c", |
| 60 "externals/libjpeg-turbo/jcmainct.c", | 53 "externals/libjpeg-turbo/jcmainct.c", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 group("freetype2") { | 96 group("freetype2") { |
| 104 public_configs = [ ":system_freetype2" ] | 97 public_configs = [ ":system_freetype2" ] |
| 105 } | 98 } |
| 106 | 99 |
| 107 config("system_fontconfig") { | 100 config("system_fontconfig") { |
| 108 libs = [ "fontconfig" ] | 101 libs = [ "fontconfig" ] |
| 109 } | 102 } |
| 110 group("fontconfig") { | 103 group("fontconfig") { |
| 111 public_configs = [ ":system_fontconfig" ] | 104 public_configs = [ ":system_fontconfig" ] |
| 112 } | 105 } |
| OLD | NEW |