GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2016-09-12 23:51:58 +00:00
|
|
|
import("gn/shared_sources.gni")
|
2016-09-01 21:24:39 +00:00
|
|
|
|
2016-09-21 16:14:19 +00:00
|
|
|
if (!defined(is_skia_standalone)) {
|
|
|
|
is_skia_standalone = false
|
|
|
|
}
|
|
|
|
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
declare_args() {
|
2016-09-23 20:18:41 +00:00
|
|
|
skia_use_angle = false
|
2016-08-24 16:55:56 +00:00
|
|
|
skia_use_expat = true
|
2016-08-29 20:26:14 +00:00
|
|
|
skia_use_fontconfig = is_linux
|
2016-09-12 22:15:44 +00:00
|
|
|
skia_use_freetype = is_android || is_fuchsia || is_linux
|
2016-10-13 19:45:07 +00:00
|
|
|
skia_use_gdi = false
|
2016-08-23 20:56:37 +00:00
|
|
|
skia_use_giflib = !is_fuchsia
|
2016-08-24 16:55:56 +00:00
|
|
|
skia_use_libjpeg_turbo = true
|
|
|
|
skia_use_libpng = true
|
2016-08-23 14:38:09 +00:00
|
|
|
skia_use_libwebp = !is_fuchsia
|
2016-09-20 20:36:47 +00:00
|
|
|
skia_use_mesa = false
|
2016-10-11 21:49:33 +00:00
|
|
|
skia_use_sfntly = !is_fuchsia && !is_win # TODO: icu on Windows, re-enable this.
|
2016-09-16 14:01:17 +00:00
|
|
|
skia_use_vulkan = is_android && defined(ndk_api) && ndk_api >= 24
|
2016-08-24 16:55:56 +00:00
|
|
|
skia_use_zlib = true
|
2016-09-16 14:45:52 +00:00
|
|
|
|
|
|
|
skia_enable_android_framework_defines = false
|
2016-09-20 19:28:12 +00:00
|
|
|
skia_enable_gpu = true
|
2016-09-21 16:14:19 +00:00
|
|
|
skia_enable_tools = is_skia_standalone
|
|
|
|
skia_enable_vulkan_debug_layers = is_skia_standalone && is_debug
|
2016-09-30 17:41:03 +00:00
|
|
|
skia_vulkan_sdk = ""
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
|
|
|
|
2016-09-30 17:41:03 +00:00
|
|
|
skia_use_vulkan = skia_use_vulkan || skia_vulkan_sdk != ""
|
|
|
|
|
2016-09-21 17:11:25 +00:00
|
|
|
# Our tools require static linking (they use non-exported symbols).
|
|
|
|
skia_enable_tools = skia_enable_tools && !is_component_build
|
2016-09-20 19:28:12 +00:00
|
|
|
|
2016-08-29 22:22:10 +00:00
|
|
|
fontmgr_android_enabled = skia_use_expat && skia_use_freetype
|
|
|
|
|
2016-07-26 20:55:45 +00:00
|
|
|
skia_public_includes = [
|
2016-07-27 20:55:26 +00:00
|
|
|
"include/android",
|
2016-07-28 16:45:14 +00:00
|
|
|
"include/c",
|
2016-07-26 20:55:45 +00:00
|
|
|
"include/codec",
|
|
|
|
"include/config",
|
|
|
|
"include/core",
|
|
|
|
"include/effects",
|
|
|
|
"include/gpu",
|
|
|
|
"include/gpu/gl",
|
|
|
|
"include/images",
|
|
|
|
"include/pathops",
|
|
|
|
"include/ports",
|
2016-07-27 20:55:26 +00:00
|
|
|
"include/svg",
|
2016-07-26 20:55:45 +00:00
|
|
|
"include/utils",
|
|
|
|
"include/utils/mac",
|
2016-07-27 20:55:26 +00:00
|
|
|
"include/xml",
|
2016-07-26 20:55:45 +00:00
|
|
|
]
|
|
|
|
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
# Skia public API, generally provided by :skia.
|
|
|
|
config("skia_public") {
|
2016-07-26 20:55:45 +00:00
|
|
|
include_dirs = skia_public_includes
|
2016-10-11 21:49:33 +00:00
|
|
|
defines = []
|
|
|
|
if (is_component_build) {
|
|
|
|
defines += [ "SKIA_DLL" ]
|
|
|
|
}
|
2016-09-27 01:37:09 +00:00
|
|
|
if (is_fuchsia || is_linux) {
|
2016-08-25 16:25:11 +00:00
|
|
|
defines += [ "SK_SAMPLES_FOR_X" ]
|
|
|
|
}
|
2016-09-20 15:24:34 +00:00
|
|
|
if (skia_enable_android_framework_defines) {
|
|
|
|
defines += skia_android_framework_defines
|
|
|
|
}
|
2016-09-20 19:28:12 +00:00
|
|
|
if (!skia_enable_gpu) {
|
|
|
|
defines += [ "SK_SUPPORT_GPU=0" ]
|
|
|
|
}
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Skia internal APIs, used by Skia itself and a few test tools.
|
|
|
|
config("skia_private") {
|
|
|
|
visibility = [ ":*" ]
|
|
|
|
|
|
|
|
include_dirs = [
|
|
|
|
"include/private",
|
|
|
|
"src/c",
|
2016-07-26 20:55:45 +00:00
|
|
|
"src/codec",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/config",
|
|
|
|
"src/core",
|
|
|
|
"src/effects",
|
2016-07-27 20:55:26 +00:00
|
|
|
"src/effects/gradients",
|
|
|
|
"src/fonts",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/gpu",
|
|
|
|
"src/image",
|
|
|
|
"src/images",
|
|
|
|
"src/lazy",
|
|
|
|
"src/opts",
|
|
|
|
"src/pathops",
|
2016-07-28 21:17:33 +00:00
|
|
|
"src/pdf",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/ports",
|
|
|
|
"src/sfnt",
|
2016-08-30 17:37:19 +00:00
|
|
|
"src/sksl",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/utils",
|
2016-08-04 13:19:33 +00:00
|
|
|
"src/utils/win",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"third_party/etc1",
|
|
|
|
"third_party/ktx",
|
|
|
|
]
|
2016-08-01 13:56:40 +00:00
|
|
|
|
2016-08-24 16:55:56 +00:00
|
|
|
defines = [ "SK_GAMMA_APPLY_TO_A8" ]
|
2016-09-09 18:07:45 +00:00
|
|
|
if (is_android) {
|
|
|
|
defines += [
|
|
|
|
"SK_GAMMA_EXPONENT=1.4",
|
|
|
|
"SK_GAMMA_CONTRAST=0.0",
|
|
|
|
]
|
|
|
|
}
|
2016-09-14 18:16:49 +00:00
|
|
|
if (is_official_build || is_android) {
|
|
|
|
# TODO(bsalomon): it'd be nice to make Android normal.
|
|
|
|
defines += [ "SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0" ]
|
|
|
|
}
|
2016-09-30 17:41:03 +00:00
|
|
|
libs = []
|
|
|
|
lib_dirs = []
|
|
|
|
if (skia_use_vulkan) {
|
|
|
|
if (skia_vulkan_sdk != "") {
|
2016-10-14 18:04:56 +00:00
|
|
|
if (is_win) {
|
|
|
|
include_dirs += [ "$skia_vulkan_sdk/Include/" ]
|
|
|
|
lib_dirs += [ "$skia_vulkan_sdk/Bin" ]
|
|
|
|
} else {
|
|
|
|
include_dirs += [ "$skia_vulkan_sdk/x86_64/include/" ]
|
|
|
|
lib_dirs += [ "$skia_vulkan_sdk/x86_64/lib/" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (is_win) {
|
|
|
|
libs += [ "vulkan-1.lib" ]
|
|
|
|
} else {
|
|
|
|
libs += [ "vulkan" ]
|
2016-09-30 17:41:03 +00:00
|
|
|
}
|
|
|
|
}
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Any code that's linked into Skia-the-library should use this config via += skia_library_configs.
|
|
|
|
config("skia_library") {
|
|
|
|
visibility = [ ":*" ]
|
|
|
|
defines = [ "SKIA_IMPLEMENTATION=1" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
skia_library_configs = [
|
|
|
|
":skia_public",
|
|
|
|
":skia_private",
|
|
|
|
":skia_library",
|
|
|
|
]
|
|
|
|
|
2016-08-25 00:32:30 +00:00
|
|
|
# Use for CPU-specific Skia code that needs particular compiler flags.
|
|
|
|
template("opts") {
|
|
|
|
if (invoker.enabled) {
|
|
|
|
source_set(target_name) {
|
|
|
|
forward_variables_from(invoker, "*")
|
|
|
|
configs += skia_library_configs
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
# If not enabled, a phony empty target that swallows all otherwise unused variables.
|
|
|
|
source_set(target_name) {
|
|
|
|
forward_variables_from(invoker,
|
|
|
|
"*",
|
|
|
|
[
|
|
|
|
"sources",
|
|
|
|
"cflags",
|
|
|
|
])
|
|
|
|
}
|
|
|
|
}
|
2016-08-17 20:57:26 +00:00
|
|
|
}
|
|
|
|
|
2016-08-17 01:28:43 +00:00
|
|
|
is_x86 = current_cpu == "x64" || current_cpu == "x86"
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
|
2016-08-25 21:50:44 +00:00
|
|
|
opts("none") {
|
|
|
|
enabled = !is_x86 && current_cpu != "arm" && current_cpu != "arm64"
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.none_sources
|
2016-08-25 11:55:19 +00:00
|
|
|
cflags = []
|
|
|
|
}
|
|
|
|
|
2016-08-25 21:50:44 +00:00
|
|
|
opts("armv7") {
|
2016-08-25 11:55:19 +00:00
|
|
|
enabled = current_cpu == "arm"
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.armv7_sources + skia_opts.neon_sources
|
2016-08-25 21:50:44 +00:00
|
|
|
cflags = []
|
2016-08-25 11:55:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
opts("arm64") {
|
|
|
|
enabled = current_cpu == "arm64"
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.arm64_sources
|
2016-08-25 11:55:19 +00:00
|
|
|
cflags = []
|
|
|
|
}
|
|
|
|
|
|
|
|
opts("crc32") {
|
|
|
|
enabled = current_cpu == "arm64"
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.crc32_sources
|
2016-08-25 11:55:19 +00:00
|
|
|
cflags = [ "-march=armv8-a+crc" ]
|
|
|
|
}
|
|
|
|
|
2016-08-25 00:32:30 +00:00
|
|
|
opts("sse2") {
|
|
|
|
enabled = is_x86
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.sse2_sources
|
2016-10-11 21:08:53 +00:00
|
|
|
if (!is_win) {
|
|
|
|
cflags = [ "-msse2" ]
|
|
|
|
}
|
2016-08-25 00:32:30 +00:00
|
|
|
}
|
2016-08-08 16:06:27 +00:00
|
|
|
|
2016-08-25 00:32:30 +00:00
|
|
|
opts("ssse3") {
|
|
|
|
enabled = is_x86
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.ssse3_sources
|
2016-10-11 21:08:53 +00:00
|
|
|
if (!is_win) {
|
|
|
|
cflags = [ "-mssse3" ]
|
|
|
|
}
|
2016-08-25 00:32:30 +00:00
|
|
|
}
|
2016-08-08 16:06:27 +00:00
|
|
|
|
2016-08-25 00:32:30 +00:00
|
|
|
opts("sse41") {
|
|
|
|
enabled = is_x86
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.sse41_sources
|
2016-10-11 21:08:53 +00:00
|
|
|
if (!is_win) {
|
|
|
|
cflags = [ "-msse4.1" ]
|
|
|
|
}
|
2016-08-25 00:32:30 +00:00
|
|
|
}
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
|
2016-08-25 00:32:30 +00:00
|
|
|
opts("sse42") {
|
|
|
|
enabled = is_x86
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.sse42_sources
|
2016-10-11 21:08:53 +00:00
|
|
|
if (!is_win) {
|
|
|
|
cflags = [ "-msse4.2" ]
|
|
|
|
}
|
2016-08-25 00:32:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
opts("avx") {
|
|
|
|
enabled = is_x86
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.avx_sources
|
2016-10-11 21:08:53 +00:00
|
|
|
if (is_win) {
|
|
|
|
cflags = [ "/arch:AVX" ]
|
|
|
|
} else {
|
|
|
|
cflags = [ "-mavx" ]
|
|
|
|
}
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
|
|
|
|
2016-09-30 14:48:01 +00:00
|
|
|
opts("hsw") {
|
|
|
|
enabled = is_x86
|
|
|
|
sources = skia_opts.hsw_sources
|
2016-10-11 21:08:53 +00:00
|
|
|
if (is_win) {
|
|
|
|
cflags = [ "/arch:AVX2" ]
|
|
|
|
} else {
|
|
|
|
cflags = [
|
|
|
|
"-mavx2",
|
|
|
|
"-mbmi",
|
|
|
|
"-mbmi2",
|
|
|
|
"-mf16c",
|
|
|
|
"-mfma",
|
|
|
|
]
|
|
|
|
}
|
2016-09-30 14:48:01 +00:00
|
|
|
}
|
|
|
|
|
2016-08-26 15:13:04 +00:00
|
|
|
opts("dsp") {
|
|
|
|
enabled = current_cpu == "mipsel"
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_opts.mips_dsp_sources
|
2016-08-30 18:49:24 +00:00
|
|
|
cflags = []
|
2016-08-26 15:13:04 +00:00
|
|
|
}
|
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
# Any feature of Skia that requires third-party code should be optional and use this template.
|
2016-08-23 20:56:37 +00:00
|
|
|
template("optional") {
|
|
|
|
if (invoker.enabled) {
|
|
|
|
config(target_name + "_public") {
|
2016-08-31 11:58:19 +00:00
|
|
|
if (defined(invoker.public_defines)) {
|
|
|
|
defines = invoker.public_defines
|
|
|
|
}
|
2016-08-23 20:56:37 +00:00
|
|
|
}
|
|
|
|
source_set(target_name) {
|
2016-08-31 11:58:19 +00:00
|
|
|
forward_variables_from(invoker,
|
|
|
|
"*",
|
|
|
|
[
|
|
|
|
"public_defines",
|
|
|
|
"sources_when_disabled",
|
|
|
|
])
|
2016-08-23 20:56:37 +00:00
|
|
|
all_dependent_configs = [ ":" + target_name + "_public" ]
|
2016-08-25 00:32:30 +00:00
|
|
|
configs += skia_library_configs
|
2016-08-23 20:56:37 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
source_set(target_name) {
|
|
|
|
forward_variables_from(invoker,
|
|
|
|
"*",
|
|
|
|
[
|
|
|
|
"public_defines",
|
|
|
|
"deps",
|
2016-09-14 13:12:09 +00:00
|
|
|
"libs",
|
2016-08-23 20:56:37 +00:00
|
|
|
"sources",
|
2016-08-31 11:58:19 +00:00
|
|
|
"sources_when_disabled",
|
2016-08-23 20:56:37 +00:00
|
|
|
])
|
2016-08-31 11:58:19 +00:00
|
|
|
if (defined(invoker.sources_when_disabled)) {
|
|
|
|
sources = invoker.sources_when_disabled
|
|
|
|
}
|
|
|
|
configs += skia_library_configs
|
2016-08-23 20:56:37 +00:00
|
|
|
}
|
2016-08-23 14:38:09 +00:00
|
|
|
}
|
|
|
|
}
|
2016-08-23 20:56:37 +00:00
|
|
|
|
2016-08-29 22:22:10 +00:00
|
|
|
optional("fontmgr_android") {
|
|
|
|
enabled = fontmgr_android_enabled
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/expat",
|
|
|
|
"//third_party/freetype2",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/ports/SkFontMgr_android.cpp",
|
|
|
|
"src/ports/SkFontMgr_android_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_android_parser.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-07 14:52:55 +00:00
|
|
|
optional("fontmgr_custom") {
|
|
|
|
enabled = is_linux && skia_use_freetype && !skia_use_fontconfig
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/freetype2",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/ports/SkFontMgr_custom.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_directory_factory.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-08-29 20:26:14 +00:00
|
|
|
optional("fontmgr_fontconfig") {
|
|
|
|
enabled = skia_use_freetype && skia_use_fontconfig
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party:fontconfig",
|
|
|
|
"//third_party/freetype2",
|
|
|
|
]
|
|
|
|
sources = [
|
2016-09-19 19:13:16 +00:00
|
|
|
"src/ports/SkFontConfigInterface.cpp",
|
2016-08-29 20:26:14 +00:00
|
|
|
"src/ports/SkFontConfigInterface_direct.cpp",
|
|
|
|
"src/ports/SkFontConfigInterface_direct_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_FontConfigInterface.cpp",
|
|
|
|
"src/ports/SkFontMgr_fontconfig.cpp",
|
|
|
|
"src/ports/SkFontMgr_fontconfig_factory.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-12 22:15:44 +00:00
|
|
|
optional("fontmgr_fuchsia") {
|
|
|
|
enabled = is_fuchsia && skia_use_freetype
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/freetype2",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/ports/SkFontMgr_custom.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_empty_factory.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-08-23 20:56:37 +00:00
|
|
|
optional("gif") {
|
|
|
|
enabled = skia_use_giflib
|
|
|
|
public_defines = [ "SK_HAS_GIF_LIBRARY" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/giflib",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/codec/SkGifCodec.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-20 19:28:12 +00:00
|
|
|
optional("gpu") {
|
|
|
|
enabled = skia_enable_gpu
|
2016-09-20 22:11:46 +00:00
|
|
|
public_defines = []
|
|
|
|
|
2016-09-20 19:28:12 +00:00
|
|
|
sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ]
|
|
|
|
|
|
|
|
# These paths need to be absolute to match the ones produced by shared_sources.gni.
|
|
|
|
sources -= get_path_info([
|
|
|
|
"src/gpu/gl/GrGLCreateNativeInterface_none.cpp",
|
|
|
|
"src/gpu/gl/GrGLDefaultInterface_none.cpp",
|
|
|
|
],
|
|
|
|
"abspath")
|
2016-10-13 21:18:04 +00:00
|
|
|
libs = []
|
2016-09-20 19:28:12 +00:00
|
|
|
if (is_android) {
|
|
|
|
sources += [ "src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp" ]
|
|
|
|
} else if (is_linux) {
|
|
|
|
sources += [ "src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp" ]
|
|
|
|
} else if (is_mac) {
|
|
|
|
sources += [ "src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp" ]
|
2016-10-13 21:18:04 +00:00
|
|
|
} else if (is_win) {
|
|
|
|
sources += [ "src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp" ]
|
|
|
|
libs += [ "OpenGL32.lib" ]
|
2016-09-20 19:28:12 +00:00
|
|
|
} else {
|
|
|
|
sources += [ "src/gpu/gl/GrGLCreateNativeInterface_none.cpp" ]
|
|
|
|
}
|
2016-09-20 22:11:46 +00:00
|
|
|
|
|
|
|
if (skia_use_vulkan) {
|
|
|
|
public_defines += [ "SK_VULKAN" ]
|
|
|
|
sources += skia_vk_sources
|
2016-09-21 14:36:14 +00:00
|
|
|
if (skia_enable_vulkan_debug_layers) {
|
|
|
|
public_defines += [ "SK_ENABLE_VK_LAYERS" ]
|
|
|
|
}
|
2016-09-20 22:11:46 +00:00
|
|
|
}
|
2016-09-20 19:28:12 +00:00
|
|
|
}
|
|
|
|
|
2016-08-24 16:55:56 +00:00
|
|
|
optional("jpeg") {
|
|
|
|
enabled = skia_use_libjpeg_turbo
|
|
|
|
public_defines = [ "SK_HAS_JPEG_LIBRARY" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/libjpeg-turbo:libjpeg",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/codec/SkJpegCodec.cpp",
|
|
|
|
"src/codec/SkJpegDecoderMgr.cpp",
|
|
|
|
"src/codec/SkJpegUtility.cpp",
|
|
|
|
"src/images/SkJPEGImageEncoder.cpp",
|
|
|
|
"src/images/SkJPEGWriteUtility.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
optional("pdf") {
|
|
|
|
enabled = skia_use_zlib
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/zlib",
|
|
|
|
]
|
2016-09-01 21:24:39 +00:00
|
|
|
sources = skia_pdf_sources
|
2016-08-31 11:58:19 +00:00
|
|
|
sources_when_disabled = [ "src/pdf/SkDocument_PDF_None.cpp" ]
|
2016-08-24 16:55:56 +00:00
|
|
|
|
|
|
|
if (skia_use_sfntly) {
|
|
|
|
deps += [ "//third_party/sfntly" ]
|
2016-08-31 11:58:19 +00:00
|
|
|
public_defines = [ "SK_PDF_USE_SFNTLY" ]
|
2016-08-24 16:55:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
optional("png") {
|
|
|
|
enabled = skia_use_libpng
|
|
|
|
public_defines = [ "SK_HAS_PNG_LIBRARY" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/libpng",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/codec/SkIcoCodec.cpp",
|
|
|
|
"src/codec/SkPngCodec.cpp",
|
|
|
|
"src/images/SkPNGImageEncoder.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-08-29 20:26:14 +00:00
|
|
|
optional("typeface_freetype") {
|
|
|
|
enabled = skia_use_freetype
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/freetype2",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/ports/SkFontHost_FreeType.cpp",
|
|
|
|
"src/ports/SkFontHost_FreeType_common.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-08-23 20:56:37 +00:00
|
|
|
optional("webp") {
|
|
|
|
enabled = skia_use_libwebp
|
|
|
|
public_defines = [ "SK_HAS_WEBP_LIBRARY" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/libwebp",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/codec/SkWebpAdapterCodec.cpp",
|
|
|
|
"src/codec/SkWebpCodec.cpp",
|
|
|
|
"src/images/SkWEBPImageEncoder.cpp",
|
|
|
|
]
|
|
|
|
}
|
2016-08-23 14:38:09 +00:00
|
|
|
|
2016-08-24 16:55:56 +00:00
|
|
|
optional("xml") {
|
|
|
|
enabled = skia_use_expat
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//third_party/expat",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/xml/SkDOM.cpp",
|
|
|
|
"src/xml/SkXMLParser.cpp",
|
|
|
|
"src/xml/SkXMLWriter.cpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
component("skia") {
|
|
|
|
public_configs = [ ":skia_public" ]
|
|
|
|
configs += skia_library_configs
|
|
|
|
|
|
|
|
deps = [
|
2016-08-25 11:55:19 +00:00
|
|
|
":arm64",
|
|
|
|
":armv7",
|
2016-08-25 00:32:30 +00:00
|
|
|
":avx",
|
2016-08-25 11:55:19 +00:00
|
|
|
":crc32",
|
2016-08-26 15:13:04 +00:00
|
|
|
":dsp",
|
2016-08-29 22:22:10 +00:00
|
|
|
":fontmgr_android",
|
2016-09-07 14:52:55 +00:00
|
|
|
":fontmgr_custom",
|
2016-08-29 20:26:14 +00:00
|
|
|
":fontmgr_fontconfig",
|
2016-09-12 22:15:44 +00:00
|
|
|
":fontmgr_fuchsia",
|
2016-08-23 20:56:37 +00:00
|
|
|
":gif",
|
2016-09-20 19:28:12 +00:00
|
|
|
":gpu",
|
2016-09-30 14:48:01 +00:00
|
|
|
":hsw",
|
2016-08-24 16:55:56 +00:00
|
|
|
":jpeg",
|
2016-08-25 00:32:30 +00:00
|
|
|
":none",
|
2016-08-24 16:55:56 +00:00
|
|
|
":pdf",
|
|
|
|
":png",
|
2016-08-25 00:32:30 +00:00
|
|
|
":sse2",
|
|
|
|
":sse41",
|
|
|
|
":sse42",
|
|
|
|
":ssse3",
|
2016-08-29 20:26:14 +00:00
|
|
|
":typeface_freetype",
|
2016-08-23 14:38:09 +00:00
|
|
|
":webp",
|
2016-08-24 16:55:56 +00:00
|
|
|
":xml",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sources = []
|
2016-09-01 21:24:39 +00:00
|
|
|
sources += skia_core_sources
|
|
|
|
sources += skia_effects_sources
|
|
|
|
sources += skia_sksl_sources
|
|
|
|
sources += skia_utils_sources
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
sources += [
|
2016-07-27 20:55:26 +00:00
|
|
|
"src/android/SkBitmapRegionCodec.cpp",
|
|
|
|
"src/android/SkBitmapRegionDecoder.cpp",
|
|
|
|
"src/codec/SkAndroidCodec.cpp",
|
2016-07-26 20:55:45 +00:00
|
|
|
"src/codec/SkBmpCodec.cpp",
|
|
|
|
"src/codec/SkBmpMaskCodec.cpp",
|
|
|
|
"src/codec/SkBmpRLECodec.cpp",
|
|
|
|
"src/codec/SkBmpStandardCodec.cpp",
|
|
|
|
"src/codec/SkCodec.cpp",
|
|
|
|
"src/codec/SkCodecImageGenerator.cpp",
|
|
|
|
"src/codec/SkMaskSwizzler.cpp",
|
|
|
|
"src/codec/SkMasks.cpp",
|
2016-07-27 20:55:26 +00:00
|
|
|
"src/codec/SkSampledCodec.cpp",
|
2016-07-26 20:55:45 +00:00
|
|
|
"src/codec/SkSampler.cpp",
|
|
|
|
"src/codec/SkSwizzler.cpp",
|
|
|
|
"src/codec/SkWbmpCodec.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/images/SkImageEncoder.cpp",
|
|
|
|
"src/images/SkImageEncoder_Factory.cpp",
|
2016-07-28 21:17:33 +00:00
|
|
|
"src/images/SkKTXImageEncoder.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/ports/SkDiscardableMemory_none.cpp",
|
|
|
|
"src/ports/SkGlobalInitialization_default.cpp",
|
2016-07-26 20:55:45 +00:00
|
|
|
"src/ports/SkImageGenerator_skia.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/ports/SkMemory_malloc.cpp",
|
|
|
|
"src/ports/SkOSFile_stdio.cpp",
|
|
|
|
"src/sfnt/SkOTTable_name.cpp",
|
|
|
|
"src/sfnt/SkOTUtils.cpp",
|
2016-07-27 20:55:26 +00:00
|
|
|
"src/svg/SkSVGCanvas.cpp",
|
|
|
|
"src/svg/SkSVGDevice.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/utils/mac/SkStream_mac.cpp",
|
|
|
|
"third_party/etc1/etc1.cpp",
|
|
|
|
"third_party/ktx/ktx.cpp",
|
|
|
|
]
|
2016-09-01 21:24:39 +00:00
|
|
|
|
2016-08-25 21:50:44 +00:00
|
|
|
libs = []
|
|
|
|
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
if (is_win) {
|
|
|
|
sources += [
|
2016-10-11 21:49:33 +00:00
|
|
|
"src/fonts/SkFontMgr_indirect.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/ports/SkDebug_win.cpp",
|
|
|
|
"src/ports/SkFontHost_win.cpp",
|
|
|
|
"src/ports/SkFontMgr_win_dw.cpp",
|
|
|
|
"src/ports/SkImageEncoder_WIC.cpp",
|
|
|
|
"src/ports/SkImageGeneratorWIC.cpp",
|
|
|
|
"src/ports/SkOSFile_win.cpp",
|
2016-09-21 21:01:32 +00:00
|
|
|
"src/ports/SkOSLibrary_win.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/ports/SkScalerContext_win_dw.cpp",
|
|
|
|
"src/ports/SkTLS_win.cpp",
|
|
|
|
"src/ports/SkTypeface_win_dw.cpp",
|
2016-07-27 20:55:26 +00:00
|
|
|
"src/xps/SkDocument_XPS.cpp",
|
2016-10-11 22:13:53 +00:00
|
|
|
"src/xps/SkXPSDevice.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
]
|
2016-10-13 19:45:07 +00:00
|
|
|
if (skia_use_gdi) {
|
|
|
|
sources += [ "src/ports/SkFontMgr_win_gdi_factory.cpp" ]
|
|
|
|
libs += [
|
|
|
|
"Gdi32.lib",
|
|
|
|
"Usp10.lib",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
sources += [ "src/ports/SkFontMgr_win_dw_factory.cpp" ]
|
|
|
|
}
|
2016-09-16 21:44:18 +00:00
|
|
|
sources -=
|
|
|
|
[ get_path_info("src/utils/SkThreadUtils_pthread.cpp", "abspath") ]
|
2016-10-11 22:13:53 +00:00
|
|
|
libs += [
|
|
|
|
"FontSub.lib",
|
|
|
|
"Ole32.lib",
|
|
|
|
"OleAut32.lib",
|
|
|
|
"User32.lib",
|
|
|
|
]
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
} else {
|
|
|
|
sources += [
|
|
|
|
"src/ports/SkOSFile_posix.cpp",
|
2016-09-21 21:01:32 +00:00
|
|
|
"src/ports/SkOSLibrary_posix.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/ports/SkTLS_pthread.cpp",
|
2016-07-27 20:55:26 +00:00
|
|
|
"src/xps/SkDocument_XPS_None.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-08-25 21:50:44 +00:00
|
|
|
if (is_android) {
|
|
|
|
deps += [
|
|
|
|
"//third_party/cpu-features",
|
|
|
|
"//third_party/expat",
|
|
|
|
]
|
2016-09-20 19:28:12 +00:00
|
|
|
sources += [ "src/ports/SkDebug_android.cpp" ]
|
2016-08-25 21:50:44 +00:00
|
|
|
libs += [
|
|
|
|
"EGL",
|
|
|
|
"GLESv2",
|
|
|
|
"log",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
if (is_linux) {
|
2016-08-23 20:35:28 +00:00
|
|
|
libs += [
|
|
|
|
"GL",
|
|
|
|
"GLU",
|
|
|
|
"X11",
|
|
|
|
]
|
2016-09-20 19:28:12 +00:00
|
|
|
sources += [ "src/ports/SkDebug_stdio.cpp" ]
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
sources += [
|
2016-08-25 21:50:44 +00:00
|
|
|
"src/ports/SkDebug_stdio.cpp",
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
"src/ports/SkFontHost_mac.cpp",
|
|
|
|
"src/ports/SkImageEncoder_CG.cpp",
|
|
|
|
"src/ports/SkImageGeneratorCG.cpp",
|
|
|
|
]
|
2016-08-23 20:35:28 +00:00
|
|
|
libs += [
|
|
|
|
"ApplicationServices.framework",
|
|
|
|
"OpenGL.framework",
|
|
|
|
]
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
2016-07-15 22:15:15 +00:00
|
|
|
|
|
|
|
if (is_fuchsia) {
|
2016-09-20 19:28:12 +00:00
|
|
|
sources += [ "src/ports/SkDebug_stdio.cpp" ]
|
2016-07-15 22:15:15 +00:00
|
|
|
}
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
|
|
|
|
2016-08-02 21:28:26 +00:00
|
|
|
skia_h_headers = exec_script("gyp/find.py",
|
|
|
|
[ "*.h" ] + rebase_path(skia_public_includes),
|
|
|
|
"list lines",
|
|
|
|
[]) -
|
|
|
|
[
|
|
|
|
rebase_path("include/gpu/gl/GrGLConfig_chrome.h"),
|
|
|
|
rebase_path("include/gpu/vk/GrVkBackendContext.h"),
|
|
|
|
rebase_path("include/gpu/vk/GrVkDefines.h"),
|
|
|
|
rebase_path("include/gpu/vk/GrVkInterface.h"),
|
|
|
|
rebase_path("include/gpu/vk/GrVkTypes.h"),
|
|
|
|
rebase_path("include/ports/SkFontMgr_fontconfig.h"),
|
|
|
|
]
|
|
|
|
|
2016-07-26 20:55:45 +00:00
|
|
|
action("skia.h") {
|
|
|
|
script = "gn/echo_headers.py"
|
|
|
|
args = [ rebase_path("$target_gen_dir/skia.h", root_build_dir) ] +
|
2016-08-24 19:23:52 +00:00
|
|
|
rebase_path(skia_h_headers, target_gen_dir)
|
2016-09-29 19:41:53 +00:00
|
|
|
inputs = skia_h_headers
|
2016-07-26 20:55:45 +00:00
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/skia.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-20 19:28:12 +00:00
|
|
|
if (skia_enable_gpu && target_cpu == "x64") {
|
2016-09-15 19:07:48 +00:00
|
|
|
# Our bots only have 64-bit libOSMesa installed.
|
|
|
|
# TODO: worth fixing?
|
|
|
|
executable("fiddle") {
|
|
|
|
include_dirs = [ "$target_gen_dir" ]
|
|
|
|
libs = []
|
|
|
|
if (is_linux) {
|
|
|
|
libs += [ "OSMesa" ]
|
|
|
|
}
|
2016-09-15 18:18:55 +00:00
|
|
|
|
2016-09-15 19:07:48 +00:00
|
|
|
sources = [
|
|
|
|
"src/images/SkForceLinking.cpp",
|
|
|
|
"tools/fiddle/draw.cpp",
|
|
|
|
"tools/fiddle/fiddle_main.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":skia",
|
|
|
|
":skia.h",
|
|
|
|
]
|
|
|
|
}
|
GN
What we've got here is a little GN MVP. It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo. I've been hopping back and forth between Linux at work and Mac at home. These seem to be at least partially working, enough to build and run cmake/example.cpp.
The xcode backend seems to work. From here, we can start exploring how to handle other backends (cmake,Android make, Google3). There are a couple things I want to try:
- add another backend like vs or xcode to GN directly
- intercept via a custom toolchain
- reverse from ninja -t commands
That last option seems kind of fun.
This tries to piggyback on Chrome's GN setup as much as possible. Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
This pulls in some new DEPS:
- build: Chrome's GN configuration, and much more
- buildtools: hashes for gn binary, pulled via hooks
- tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp. GN pulls some stuff from tools/gyp on Mac.
Have not yet tried building for Windows, Android, or iOS.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002
2016-06-23 17:29:30 +00:00
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
# Targets guarded by skia_enable_tools may use //third_party freely.
|
|
|
|
if (skia_enable_tools) {
|
|
|
|
template("test_lib") {
|
|
|
|
config(target_name + "_config") {
|
|
|
|
include_dirs = invoker.public_include_dirs
|
2016-09-20 20:36:47 +00:00
|
|
|
if (defined(invoker.public_defines)) {
|
|
|
|
defines = invoker.public_defines
|
|
|
|
}
|
2016-08-24 19:23:52 +00:00
|
|
|
}
|
|
|
|
source_set(target_name) {
|
|
|
|
forward_variables_from(invoker, "*", [ "public_include_dirs" ])
|
|
|
|
public_configs = [
|
|
|
|
":" + target_name + "_config",
|
|
|
|
":skia_private",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (!defined(deps)) {
|
|
|
|
deps = []
|
|
|
|
}
|
|
|
|
deps += [ ":skia" ]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|
2016-08-24 19:23:52 +00:00
|
|
|
|
|
|
|
test_lib("gpu_tool_utils") {
|
2016-09-21 17:11:25 +00:00
|
|
|
public_include_dirs = []
|
|
|
|
if (skia_enable_gpu) {
|
|
|
|
public_defines = []
|
|
|
|
public_include_dirs += [ "tools/gpu" ]
|
2016-09-23 20:18:41 +00:00
|
|
|
|
|
|
|
deps = []
|
2016-09-21 17:11:25 +00:00
|
|
|
sources = [
|
|
|
|
"tools/gpu/GrContextFactory.cpp",
|
|
|
|
"tools/gpu/GrTest.cpp",
|
|
|
|
"tools/gpu/TestContext.cpp",
|
|
|
|
"tools/gpu/gl/GLTestContext.cpp",
|
2016-09-21 21:01:32 +00:00
|
|
|
"tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp",
|
2016-09-21 17:11:25 +00:00
|
|
|
"tools/gpu/gl/debug/DebugGLTestContext.cpp",
|
|
|
|
"tools/gpu/gl/debug/GrBufferObj.cpp",
|
|
|
|
"tools/gpu/gl/debug/GrFrameBufferObj.cpp",
|
|
|
|
"tools/gpu/gl/debug/GrProgramObj.cpp",
|
|
|
|
"tools/gpu/gl/debug/GrShaderObj.cpp",
|
|
|
|
"tools/gpu/gl/debug/GrTextureObj.cpp",
|
|
|
|
"tools/gpu/gl/debug/GrTextureUnitObj.cpp",
|
|
|
|
"tools/gpu/gl/null/NullGLTestContext.cpp",
|
|
|
|
]
|
|
|
|
libs = []
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
sources += [ "tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp" ]
|
|
|
|
} else if (is_linux) {
|
|
|
|
sources += [ "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp" ]
|
|
|
|
} else if (is_mac) {
|
|
|
|
sources += [ "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp" ]
|
2016-10-11 22:13:53 +00:00
|
|
|
} else if (is_win) {
|
|
|
|
sources += [ "tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp" ]
|
|
|
|
libs += [
|
|
|
|
"Gdi32.lib",
|
|
|
|
"OpenGL32.lib",
|
|
|
|
]
|
2016-09-21 17:11:25 +00:00
|
|
|
}
|
2016-09-14 13:12:09 +00:00
|
|
|
|
2016-09-23 20:18:41 +00:00
|
|
|
if (skia_use_angle) {
|
|
|
|
public_defines += [ "SK_ANGLE" ]
|
|
|
|
deps += [ "//third_party/angle2" ]
|
|
|
|
sources += [ "tools/gpu/gl/angle/GLTestContext_angle.cpp" ]
|
2016-09-21 17:11:25 +00:00
|
|
|
}
|
|
|
|
if (skia_use_mesa) {
|
|
|
|
public_defines += [ "SK_MESA" ]
|
|
|
|
sources += [ "tools/gpu/gl/mesa/GLTestContext_mesa.cpp" ]
|
|
|
|
libs += [ "OSMesa" ]
|
|
|
|
}
|
2016-09-23 20:18:41 +00:00
|
|
|
if (skia_use_vulkan) {
|
|
|
|
sources += [ "tools/gpu/vk/VkTestContext.cpp" ]
|
|
|
|
}
|
2016-09-20 20:36:47 +00:00
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
test_lib("flags") {
|
|
|
|
public_include_dirs = [ "tools/flags" ]
|
|
|
|
sources = [
|
|
|
|
"tools/flags/SkCommandLineFlags.cpp",
|
2016-09-16 17:23:12 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
test_lib("common_flags") {
|
|
|
|
public_include_dirs = [ "tools/flags" ]
|
|
|
|
sources = [
|
2016-08-24 19:23:52 +00:00
|
|
|
"tools/flags/SkCommonFlags.cpp",
|
|
|
|
"tools/flags/SkCommonFlagsConfig.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
2016-09-16 17:23:12 +00:00
|
|
|
":flags",
|
2016-08-24 19:23:52 +00:00
|
|
|
":gpu_tool_utils",
|
|
|
|
]
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
test_lib("tool_utils") {
|
|
|
|
public_include_dirs = [
|
|
|
|
"tools",
|
|
|
|
"tools/debugger",
|
|
|
|
"tools/timer",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/images/SkForceLinking.cpp",
|
|
|
|
"src/utils/SkMultiPictureDocumentReader.cpp", # TODO(halcanary): move to tools?
|
2016-09-09 18:07:45 +00:00
|
|
|
"tools/AndroidSkDebugToStdOut.cpp",
|
2016-08-24 19:23:52 +00:00
|
|
|
"tools/CrashHandler.cpp",
|
2016-09-01 14:06:54 +00:00
|
|
|
"tools/LsanSuppressions.cpp",
|
2016-08-24 19:23:52 +00:00
|
|
|
"tools/ProcStats.cpp",
|
|
|
|
"tools/Resources.cpp",
|
|
|
|
"tools/ThermalManager.cpp",
|
|
|
|
"tools/UrlDataManager.cpp",
|
|
|
|
"tools/debugger/SkDebugCanvas.cpp",
|
|
|
|
"tools/debugger/SkDrawCommand.cpp",
|
|
|
|
"tools/debugger/SkJsonWriteBuffer.cpp",
|
|
|
|
"tools/debugger/SkObjectParser.cpp",
|
|
|
|
"tools/picture_utils.cpp",
|
|
|
|
"tools/random_parse_path.cpp",
|
|
|
|
"tools/sk_tool_utils.cpp",
|
|
|
|
"tools/sk_tool_utils_font.cpp",
|
|
|
|
"tools/timer/Timer.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
2016-09-16 17:23:12 +00:00
|
|
|
":common_flags",
|
2016-08-24 19:23:52 +00:00
|
|
|
":flags",
|
|
|
|
"//third_party/libpng",
|
|
|
|
]
|
|
|
|
public_deps = [
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
]
|
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
gm_sources = exec_script("gyp/find.py",
|
|
|
|
[
|
|
|
|
"*.c*",
|
|
|
|
rebase_path("gm"),
|
|
|
|
],
|
|
|
|
"list lines",
|
|
|
|
[])
|
|
|
|
test_lib("gm") {
|
|
|
|
public_include_dirs = [ "gm" ]
|
|
|
|
sources = gm_sources
|
|
|
|
deps = [
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
]
|
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
tests_sources = exec_script("gyp/find.py",
|
|
|
|
[
|
|
|
|
"*.c*",
|
|
|
|
rebase_path("tests"),
|
|
|
|
],
|
|
|
|
"list lines",
|
|
|
|
[])
|
|
|
|
|
|
|
|
test_lib("tests") {
|
|
|
|
public_include_dirs = [ "tests" ]
|
2016-08-29 22:22:10 +00:00
|
|
|
sources = tests_sources - [
|
|
|
|
rebase_path("tests/PathOpsSkpClipTest.cpp"), # alternate main
|
|
|
|
rebase_path("tests/SkpSkGrTest.cpp"), # doesn't compile
|
|
|
|
rebase_path("tests/skia_test.cpp"), # alternate main
|
|
|
|
]
|
|
|
|
if (!fontmgr_android_enabled) {
|
|
|
|
sources -= [ rebase_path("tests/FontMgrAndroidParserTest.cpp") ]
|
|
|
|
}
|
2016-08-24 19:23:52 +00:00
|
|
|
deps = [
|
2016-08-25 15:44:35 +00:00
|
|
|
":experimental_svg_model",
|
2016-08-24 19:23:52 +00:00
|
|
|
":flags",
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
"//third_party/libpng",
|
|
|
|
"//third_party/zlib",
|
|
|
|
]
|
|
|
|
}
|
2016-08-02 23:02:05 +00:00
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
bench_sources = exec_script("gyp/find.py",
|
|
|
|
[
|
|
|
|
"*.c*",
|
|
|
|
rebase_path("bench"),
|
|
|
|
],
|
|
|
|
"list lines",
|
|
|
|
[])
|
|
|
|
|
|
|
|
test_lib("bench") {
|
|
|
|
public_include_dirs = [ "bench" ]
|
|
|
|
sources = bench_sources
|
|
|
|
sources -= [
|
|
|
|
rebase_path("bench/nanobench.cpp"),
|
|
|
|
rebase_path("bench/nanobenchAndroid.cpp"),
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":gm",
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
]
|
|
|
|
}
|
2016-07-28 21:17:33 +00:00
|
|
|
|
2016-08-24 19:23:52 +00:00
|
|
|
test_lib("experimental_svg_model") {
|
|
|
|
public_include_dirs = [ "experimental/svg/model" ]
|
|
|
|
sources = [
|
|
|
|
"experimental/svg/model/SkSVGAttribute.cpp",
|
|
|
|
"experimental/svg/model/SkSVGAttributeParser.cpp",
|
|
|
|
"experimental/svg/model/SkSVGCircle.cpp",
|
|
|
|
"experimental/svg/model/SkSVGContainer.cpp",
|
|
|
|
"experimental/svg/model/SkSVGDOM.cpp",
|
|
|
|
"experimental/svg/model/SkSVGEllipse.cpp",
|
|
|
|
"experimental/svg/model/SkSVGLine.cpp",
|
2016-09-13 00:06:47 +00:00
|
|
|
"experimental/svg/model/SkSVGLinearGradient.cpp",
|
2016-08-24 19:23:52 +00:00
|
|
|
"experimental/svg/model/SkSVGNode.cpp",
|
|
|
|
"experimental/svg/model/SkSVGPath.cpp",
|
|
|
|
"experimental/svg/model/SkSVGPoly.cpp",
|
|
|
|
"experimental/svg/model/SkSVGRect.cpp",
|
|
|
|
"experimental/svg/model/SkSVGRenderContext.cpp",
|
|
|
|
"experimental/svg/model/SkSVGSVG.cpp",
|
|
|
|
"experimental/svg/model/SkSVGShape.cpp",
|
2016-09-13 00:06:47 +00:00
|
|
|
"experimental/svg/model/SkSVGStop.cpp",
|
2016-08-24 19:23:52 +00:00
|
|
|
"experimental/svg/model/SkSVGTransformableNode.cpp",
|
|
|
|
"experimental/svg/model/SkSVGValue.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
}
|
2016-08-04 02:53:36 +00:00
|
|
|
|
2016-07-28 21:17:33 +00:00
|
|
|
executable("dm") {
|
|
|
|
sources = [
|
|
|
|
"dm/DM.cpp",
|
|
|
|
"dm/DMJsonWriter.cpp",
|
|
|
|
"dm/DMSrcSink.cpp",
|
|
|
|
]
|
|
|
|
include_dirs = [ "tests" ]
|
|
|
|
deps = [
|
2016-09-16 17:23:12 +00:00
|
|
|
":common_flags",
|
2016-08-04 02:53:36 +00:00
|
|
|
":experimental_svg_model",
|
2016-07-28 21:17:33 +00:00
|
|
|
":flags",
|
|
|
|
":gm",
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
2016-08-02 23:02:05 +00:00
|
|
|
":tests",
|
2016-07-28 21:17:33 +00:00
|
|
|
":tool_utils",
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
"//third_party/libpng",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
|
|
|
|
2016-09-27 20:46:29 +00:00
|
|
|
if (!is_debug) { # I've benchmarked debug code once too many times...
|
|
|
|
executable("monobench") {
|
|
|
|
sources = [
|
|
|
|
"tools/monobench.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":bench",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-07-28 21:17:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
executable("nanobench") {
|
|
|
|
sources = [
|
|
|
|
"bench/nanobench.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":bench",
|
2016-09-16 17:23:12 +00:00
|
|
|
":common_flags",
|
2016-09-14 15:05:17 +00:00
|
|
|
":experimental_svg_model",
|
2016-07-28 21:17:33 +00:00
|
|
|
":flags",
|
|
|
|
":gm",
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-08-03 22:08:04 +00:00
|
|
|
|
2016-09-21 17:11:25 +00:00
|
|
|
if (skia_enable_gpu) {
|
|
|
|
executable("skpbench") {
|
|
|
|
sources = [
|
|
|
|
"tools/skpbench/skpbench.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-09-19 18:03:58 +00:00
|
|
|
}
|
|
|
|
|
2016-10-11 22:13:53 +00:00
|
|
|
# We can't yet build ICU on Windows.
|
2016-10-11 23:59:22 +00:00
|
|
|
if (!is_win) {
|
2016-09-10 14:01:53 +00:00
|
|
|
executable("sktexttopdf-hb") {
|
2016-08-29 23:01:10 +00:00
|
|
|
sources = [
|
|
|
|
"tools/SkShaper_harfbuzz.cpp",
|
|
|
|
"tools/using_skia_and_harfbuzz.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":skia",
|
|
|
|
"//third_party/harfbuzz",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-08-03 22:08:04 +00:00
|
|
|
}
|
2016-09-10 14:01:53 +00:00
|
|
|
executable("sktexttopdf") {
|
|
|
|
sources = [
|
|
|
|
"tools/SkShaper_primitive.cpp",
|
|
|
|
"tools/using_skia_and_harfbuzz.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-09-16 17:23:12 +00:00
|
|
|
|
|
|
|
executable("get_images_from_skps") {
|
|
|
|
sources = [
|
|
|
|
"tools/get_images_from_skps.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-09-22 18:51:24 +00:00
|
|
|
|
|
|
|
executable("skiaserve") {
|
|
|
|
sources = [
|
|
|
|
"tools/skiaserve/Request.cpp",
|
|
|
|
"tools/skiaserve/Response.cpp",
|
|
|
|
"tools/skiaserve/skiaserve.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/BatchBoundsHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/BatchesHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/BreakHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/ClipAlphaHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/CmdHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/ColorModeHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/DataHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/DownloadHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/EnableGPUHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/ImgHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/InfoHandler.cpp",
|
2016-10-17 19:20:02 +00:00
|
|
|
"tools/skiaserve/urlhandlers/OverdrawHandler.cpp",
|
2016-09-22 18:51:24 +00:00
|
|
|
"tools/skiaserve/urlhandlers/PostHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/QuitHandler.cpp",
|
|
|
|
"tools/skiaserve/urlhandlers/RootHandler.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":gpu_tool_utils",
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
"//third_party/libmicrohttpd",
|
|
|
|
"//third_party/libpng",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-10-03 18:49:45 +00:00
|
|
|
|
|
|
|
executable("fuzz") {
|
|
|
|
sources = [
|
|
|
|
"fuzz/FilterFuzz.cpp",
|
|
|
|
"fuzz/FuzzGradients.cpp",
|
|
|
|
"fuzz/FuzzParsePath.cpp",
|
|
|
|
"fuzz/FuzzPathop.cpp",
|
|
|
|
"fuzz/FuzzScaleToSides.cpp",
|
|
|
|
"fuzz/fuzz.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-10-05 19:41:01 +00:00
|
|
|
|
|
|
|
executable("dump_record") {
|
|
|
|
sources = [
|
|
|
|
"tools/DumpRecord.cpp",
|
|
|
|
"tools/dump_record.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":flags",
|
|
|
|
":skia",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-10-13 21:36:40 +00:00
|
|
|
|
|
|
|
executable("skdiff") {
|
|
|
|
sources = [
|
|
|
|
"tools/skdiff/skdiff.cpp",
|
|
|
|
"tools/skdiff/skdiff_html.cpp",
|
|
|
|
"tools/skdiff/skdiff_main.cpp",
|
|
|
|
"tools/skdiff/skdiff_utils.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-10-17 20:19:02 +00:00
|
|
|
|
|
|
|
executable("skp_parser") {
|
|
|
|
sources = [
|
|
|
|
"tools/skp_parser.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":skia",
|
|
|
|
":tool_utils",
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
]
|
|
|
|
testonly = true
|
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|