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

Unified Diff: BUILD.public

Issue 1535443003: update CMake and Google3 builds for AVX/AVX2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment Created 5 years 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 | cmake/CMakeLists.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.public
diff --git a/BUILD.public b/BUILD.public
index d20eb235eed1189c846ce8b873c780792c37b53f..b184f726f10fb64e9f324fc413ecf8bbae2f83ce 100644
--- a/BUILD.public
+++ b/BUILD.public
@@ -84,6 +84,8 @@ BASE_SRCS_UNIX = glob(
# Included in :opts_sse4 library.
"src/opts/*SSE4*",
"src/opts/*sse4*",
+ # Included in :opts_avx or :opts_avx2
+ "src/opts/*avx*",
"src/opts/SkBitmapProcState_opts_none.cpp",
"src/opts/SkBlitMask_opts_none.cpp",
"src/opts/SkBlitRow_opts_none.cpp",
@@ -123,6 +125,7 @@ BASE_SRCS_ANDROID = glob(
"src/opts/*ssse3*",
"src/opts/*SSE4*",
"src/opts/*sse4*",
+ "src/opts/*avx*",
"src/opts/*x86*",
"src/opts/SkBitmapProcState_opts_none.cpp",
"src/opts/SkBlitMask_opts_none.cpp",
@@ -165,6 +168,7 @@ BASE_SRCS_IOS = glob(
"src/opts/*ssse3*",
"src/opts/*SSE4*",
"src/opts/*sse4*",
+ "src/opts/*avx*",
"src/opts/*x86*",
"src/opts/SkBitmapProcState_opts_none.cpp",
"src/opts/SkBlitMask_opts_none.cpp",
@@ -212,6 +216,18 @@ SSE4_SRCS = glob(
],
)
+AVX_SRCS = glob(
+ [
+ "src/opts/*_avx.cpp",
+ ],
+)
+
+AVX2_SRCS = glob(
+ [
+ "src/opts/*_avx2.cpp",
+ ],
+)
+
BASE_HDRS = glob(
[
"include/**/*.h",
@@ -229,6 +245,8 @@ BASE_HDRS = glob(
# Dependencies.
BASE_DEPS_UNIX = [
+ ":opts_avx2",
+ ":opts_avx",
":opts_sse4",
":opts_ssse3",
]
@@ -424,6 +442,24 @@ cc_library(
deps = EXTERNAL_DEPS_ALL,
)
+cc_library(
+ name = "opts_avx",
+ srcs = AVX_SRCS,
+ copts = COPTS + ["-mavx"],
+ defines = DEFINES,
+ includes = INCLUDES,
+ deps = EXTERNAL_DEPS_ALL,
+)
+
+cc_library(
+ name = "opts_avx2",
+ srcs = AVX2_SRCS,
+ copts = COPTS + ["-mavx2"],
+ defines = DEFINES,
+ includes = INCLUDES,
+ deps = EXTERNAL_DEPS_ALL,
+)
+
# If you need Ganesh (GPU) support in Skia, please contact skia-team@google.com
# for help.
cc_library(
« no previous file with comments | « no previous file | cmake/CMakeLists.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698