Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: BUILD.gn

Issue 2357963002: GN: is_skia_standalone (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gn/BUILDCONFIG.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("gn/shared_sources.gni") 6 import("gn/shared_sources.gni")
7 7
8 if (!defined(is_skia_standalone)) {
9 is_skia_standalone = false
10 }
11
8 declare_args() { 12 declare_args() {
9 skia_use_expat = true 13 skia_use_expat = true
10 skia_use_fontconfig = is_linux 14 skia_use_fontconfig = is_linux
11 skia_use_freetype = is_android || is_fuchsia || is_linux 15 skia_use_freetype = is_android || is_fuchsia || is_linux
12 skia_use_giflib = !is_fuchsia 16 skia_use_giflib = !is_fuchsia
13 skia_use_libjpeg_turbo = true 17 skia_use_libjpeg_turbo = true
14 skia_use_libpng = true 18 skia_use_libpng = true
15 skia_use_libwebp = !is_fuchsia 19 skia_use_libwebp = !is_fuchsia
16 skia_use_mesa = false 20 skia_use_mesa = false
17 skia_use_sfntly = !is_fuchsia 21 skia_use_sfntly = !is_fuchsia
18 skia_use_vulkan = is_android && defined(ndk_api) && ndk_api >= 24 22 skia_use_vulkan = is_android && defined(ndk_api) && ndk_api >= 24
19 skia_use_zlib = true 23 skia_use_zlib = true
20 24
21 skia_enable_android_framework_defines = false 25 skia_enable_android_framework_defines = false
22 skia_enable_gpu = true 26 skia_enable_gpu = true
23 skia_enable_tools = !is_fuchsia 27 skia_enable_tools = is_skia_standalone
24 28 skia_enable_vulkan_debug_layers = is_skia_standalone && is_debug
25 # TODO: Vulkan debug layers should be disabled for all client uses of skia as well.
26 skia_enable_vulkan_debug_layers = !is_fuchsia && is_debug
27 } 29 }
28 30
29 # Our tools require static linking (they use non-exported symbols) and GPU suppo rt (just lazy). 31 # Our tools require static linking (they use non-exported symbols) and GPU suppo rt (just lazy).
30 skia_enable_tools = skia_enable_tools && skia_enable_gpu && !is_component_build 32 skia_enable_tools = skia_enable_tools && skia_enable_gpu && !is_component_build
31 33
32 fontmgr_android_enabled = skia_use_expat && skia_use_freetype 34 fontmgr_android_enabled = skia_use_expat && skia_use_freetype
33 35
34 skia_public_includes = [ 36 skia_public_includes = [
35 "include/android", 37 "include/android",
36 "include/c", 38 "include/c",
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 "tools/get_images_from_skps.cpp", 906 "tools/get_images_from_skps.cpp",
905 ] 907 ]
906 deps = [ 908 deps = [
907 ":flags", 909 ":flags",
908 ":skia", 910 ":skia",
909 "//third_party/jsoncpp", 911 "//third_party/jsoncpp",
910 ] 912 ]
911 testonly = true 913 testonly = true
912 } 914 }
913 } 915 }
OLDNEW
« no previous file with comments | « no previous file | gn/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698