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

Unified Diff: BUILD.gn

Issue 2275983004: GN: Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: note Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gn/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 90f531fdf10acc3e4ac518a658f0ff15fbf1ce15..8c053cfbb96697865b4c91ba81ec9788e01105f3 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -161,16 +161,16 @@ template("opts") {
is_x86 = current_cpu == "x64" || current_cpu == "x86"
-opts("armv7") {
- enabled = current_cpu == "arm"
- sources = opts_gypi.armv7_sources
+opts("none") {
+ enabled = !is_x86 && current_cpu != "arm" && current_cpu != "arm64"
+ sources = opts_gypi.none_sources
cflags = []
}
-opts("neon") {
+opts("armv7") {
enabled = current_cpu == "arm"
- sources = opts_gypi.neon_sources
- cflags = [ "-mfpu=neon" ]
+ sources = opts_gypi.armv7_sources + opts_gypi.neon_sources
+ cflags = []
}
opts("arm64") {
@@ -185,12 +185,6 @@ opts("crc32") {
cflags = [ "-march=armv8-a+crc" ]
}
-opts("none") {
- enabled = !is_x86 && current_cpu != "arm" && current_cpu != "arm64"
- sources = opts_gypi.none_sources
- cflags = []
-}
-
opts("sse2") {
enabled = is_x86
sources = opts_gypi.sse2_sources
@@ -342,7 +336,6 @@ component("skia") {
":crc32",
":gif",
":jpeg",
- ":neon",
":none",
":pdf",
":png",
@@ -354,10 +347,6 @@ component("skia") {
":xml",
]
- if (!is_win) {
- libs = [ "pthread" ]
- }
-
sources = []
sources += core_gypi.sources
sources += effects_gypi.sources
@@ -401,6 +390,8 @@ component("skia") {
"src/gpu/gl/GrGLDefaultInterface_none.cpp",
]
+ libs = []
+
if (is_win) {
sources += [
"src/ports/SkDebug_win.cpp",
@@ -418,17 +409,38 @@ component("skia") {
sources -= [ "src/utils/SkThreadUtils_pthread.cpp" ]
} else {
sources += [
- "src/ports/SkDebug_stdio.cpp",
"src/ports/SkOSFile_posix.cpp",
"src/ports/SkTLS_pthread.cpp",
"src/xps/SkDocument_XPS_None.cpp",
]
}
+ if (is_android) {
+ deps += [
+ "//third_party/cpu-features",
+ "//third_party/expat",
+ "//third_party/freetype2",
+ ]
+ sources += [
+ "src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp",
+ "src/ports/SkDebug_android.cpp",
+ "src/ports/SkFontHost_FreeType.cpp",
+ "src/ports/SkFontHost_FreeType_common.cpp",
+ "src/ports/SkFontMgr_android.cpp",
+ "src/ports/SkFontMgr_android_factory.cpp",
+ "src/ports/SkFontMgr_android_parser.cpp",
+ ]
+ libs += [
+ "EGL",
+ "GLESv2",
+ "log",
+ ]
+ }
+
if (is_linux) {
deps += [
"third_party:fontconfig",
- "third_party:freetype2",
+ "//third_party/freetype2",
]
libs += [
"GL",
@@ -437,6 +449,7 @@ component("skia") {
]
sources += [
"src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp",
+ "src/ports/SkDebug_stdio.cpp",
"src/ports/SkFontConfigInterface_direct.cpp",
"src/ports/SkFontConfigInterface_direct_factory.cpp",
"src/ports/SkFontHost_FreeType.cpp",
@@ -450,6 +463,7 @@ component("skia") {
if (is_mac) {
sources += [
"src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp",
+ "src/ports/SkDebug_stdio.cpp",
"src/ports/SkFontHost_mac.cpp",
"src/ports/SkImageEncoder_CG.cpp",
"src/ports/SkImageGeneratorCG.cpp",
@@ -463,6 +477,7 @@ component("skia") {
if (is_fuchsia) {
sources += [
"src/gpu/gl/GrGLCreateNativeInterface_none.cpp",
+ "src/ports/SkDebug_stdio.cpp",
"src/ports/SkFontMgr_empty_factory.cpp",
]
}
@@ -547,7 +562,9 @@ if (skia_enable_tools) {
]
libs = []
- if (is_linux) {
+ 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" ]
« no previous file with comments | « no previous file | gn/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698