Fix compilation with shared_library components on Windows

An exported function of libdawn_native wasn't in libdawn_native_sources
instead of libdawn_native which made it not exported on Windows.

BUG=dawn:22

Change-Id: I824f1d4af18f8308b88e1650837cbe62374ace72
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12320
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2019-10-16 15:31:31 +00:00 committed by Commit Bot service account
parent fb7508435f
commit e180b591d1
2 changed files with 7 additions and 1 deletions

View File

@ -105,7 +105,7 @@ namespace dawn_native {
return nullptr; return nullptr;
} }
std::vector<const char*> GetProcMapNamesForTesting() { std::vector<const char*> GetProcMapNamesForTestingInternal() {
std::vector<const char*> result; std::vector<const char*> result;
result.reserve(sProcMapSize); result.reserve(sProcMapSize);
for (const ProcEntry& entry : sProcMap) { for (const ProcEntry& entry : sProcMap) {

View File

@ -134,4 +134,10 @@ namespace dawn_native {
return deviceBase->GetLazyClearCountForTesting(); return deviceBase->GetLazyClearCountForTesting();
} }
std::vector<const char*> GetProcMapNamesForTestingInternal();
std::vector<const char*> GetProcMapNamesForTesting() {
return GetProcMapNamesForTestingInternal();
}
} // namespace dawn_native } // namespace dawn_native