Skip to content

Commit

Permalink
Build SkThreadUtils (home of SkThread type) too.
Browse files Browse the repository at this point in the history
BUG=

Review URL: https://codereview.chromium.org/686423003

Cr-Commit-Position: refs/heads/master@{#302095}
  • Loading branch information
mtklein authored and Commit bot committed Oct 30, 2014
1 parent c698e07 commit f922e95
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
26 changes: 17 additions & 9 deletions skia/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -382,27 +382,35 @@ component("skia") {
"//third_party/skia/src/utils/SkPathUtils.cpp",
"//third_party/skia/src/utils/SkSHA1.cpp",
"//third_party/skia/src/utils/SkSHA1.h",
"//third_party/skia/src/utils/SkThreadUtils.h",
"//third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
"//third_party/skia/src/utils/SkThreadUtils_pthread.h",
"//third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp",
"//third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp",
"//third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp",
"//third_party/skia/src/utils/SkThreadUtils_win.cpp",
"//third_party/skia/src/utils/SkTFitsIn.h",
"//third_party/skia/src/utils/SkTLogic.h",

# We don't currently need to change thread affinity, so leave out this complexity for now.
"//third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp",
"//third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp",

#testing
"//third_party/skia/src/fonts/SkGScalerContext.cpp",
"//third_party/skia/src/fonts/SkGScalerContext.h",
]

if (is_win) {
sources -= [
# Keeping _win.cpp
"//third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
"//third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp",
]
} else {
sources -= [
# Keeping _pthread.cpp and _pthread_other.cpp.
"//third_party/skia/src/utils/SkThreadUtils_win.cpp",
]
}

# need separate win section to handle chromes auto gn filter
# (build/config/BUILDCONFIG.gn)
if (is_win) {
sources -= [
"//third_party/skia/src/utils/SkThreadUtils_win.h",

#windows
"//third_party/skia/include/utils/win/SkAutoCoInitialize.h",
"//third_party/skia/include/utils/win/SkHRESULT.h",
Expand Down
25 changes: 17 additions & 8 deletions skia/skia_library.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,13 @@
'../third_party/skia/src/utils/SkPathUtils.cpp',
'../third_party/skia/src/utils/SkSHA1.cpp',
'../third_party/skia/src/utils/SkSHA1.h',
'../third_party/skia/src/utils/SkThreadUtils.h',
'../third_party/skia/src/utils/SkThreadUtils_pthread.cpp',
'../third_party/skia/src/utils/SkThreadUtils_pthread.h',
'../third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp',
'../third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp',
'../third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp',
'../third_party/skia/src/utils/SkThreadUtils_win.cpp',
'../third_party/skia/src/utils/SkThreadUtils_win.h',
'../third_party/skia/src/utils/SkTFitsIn.h',
'../third_party/skia/src/utils/SkTLogic.h',

# We don't currently need to change thread affinity, so leave out this complexity for now.
"../third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp",
"../third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp",

#windows
'../third_party/skia/include/utils/win/SkAutoCoInitialize.h',
'../third_party/skia/include/utils/win/SkHRESULT.h',
Expand Down Expand Up @@ -202,6 +198,19 @@
],
}],

[ 'OS == "win"', {
'sources!': [
# Keeping _win.cpp
"../third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
"../third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp",
],
},{
'sources!': [
# Keeping _pthread.cpp and _pthread_other.cpp
"../third_party/skia/src/utils/SkThreadUtils_win.cpp",
],
}],

[ 'OS != "mac"', {
'sources/': [
['exclude', '/mac/']
Expand Down

0 comments on commit f922e95

Please sign in to comment.