2020-02-05 09:16:05 -08:00
|
|
|
# Copyright 2020 The Dawn Authors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
DawnJSONGenerator(
|
2022-02-04 04:51:25 -08:00
|
|
|
TARGET "wire"
|
2020-02-05 09:16:05 -08:00
|
|
|
PRINT_NAME "Dawn wire"
|
|
|
|
RESULT_VARIABLE "DAWN_WIRE_GEN_SOURCES"
|
|
|
|
)
|
|
|
|
|
2022-04-19 15:25:45 -07:00
|
|
|
add_library(dawn_wire ${DAWN_PLACEHOLDER_FILE})
|
2022-04-08 11:08:36 -07:00
|
|
|
common_compile_options(dawn_wire)
|
2020-09-16 12:03:18 -07:00
|
|
|
|
|
|
|
target_compile_definitions(dawn_wire PRIVATE "DAWN_WIRE_IMPLEMENTATION")
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
target_compile_definitions(dawn_wire PRIVATE "DAWN_WIRE_SHARED_LIBRARY")
|
|
|
|
endif()
|
|
|
|
|
2020-02-05 09:16:05 -08:00
|
|
|
target_sources(dawn_wire PRIVATE
|
2022-02-04 04:51:25 -08:00
|
|
|
"${DAWN_INCLUDE_DIR}/dawn/wire/Wire.h"
|
|
|
|
"${DAWN_INCLUDE_DIR}/dawn/wire/WireClient.h"
|
|
|
|
"${DAWN_INCLUDE_DIR}/dawn/wire/WireServer.h"
|
|
|
|
"${DAWN_INCLUDE_DIR}/dawn/wire/dawn_wire_export.h"
|
2020-02-05 09:16:05 -08:00
|
|
|
${DAWN_WIRE_GEN_SOURCES}
|
2021-02-25 12:21:25 -08:00
|
|
|
"BufferConsumer.h"
|
|
|
|
"BufferConsumer_impl.h"
|
2020-10-13 15:35:34 -07:00
|
|
|
"ChunkedCommandHandler.cpp"
|
|
|
|
"ChunkedCommandHandler.h"
|
|
|
|
"ChunkedCommandSerializer.cpp"
|
|
|
|
"ChunkedCommandSerializer.h"
|
2022-06-14 06:22:16 -07:00
|
|
|
"ObjectHandle.cpp"
|
|
|
|
"ObjectHandle.h"
|
2021-12-15 13:52:17 -08:00
|
|
|
"SupportedFeatures.cpp"
|
|
|
|
"SupportedFeatures.h"
|
2021-02-17 14:14:56 -08:00
|
|
|
"Wire.cpp"
|
2020-02-05 09:16:05 -08:00
|
|
|
"WireClient.cpp"
|
|
|
|
"WireDeserializeAllocator.cpp"
|
|
|
|
"WireDeserializeAllocator.h"
|
2021-02-25 12:21:25 -08:00
|
|
|
"WireResult.h"
|
2020-02-05 09:16:05 -08:00
|
|
|
"WireServer.cpp"
|
2021-12-14 15:22:46 -08:00
|
|
|
"client/Adapter.cpp"
|
|
|
|
"client/Adapter.h"
|
2020-02-05 09:16:05 -08:00
|
|
|
"client/ApiObjects.h"
|
|
|
|
"client/Buffer.cpp"
|
|
|
|
"client/Buffer.h"
|
|
|
|
"client/Client.cpp"
|
|
|
|
"client/Client.h"
|
|
|
|
"client/ClientDoers.cpp"
|
|
|
|
"client/ClientInlineMemoryTransferService.cpp"
|
|
|
|
"client/Device.cpp"
|
|
|
|
"client/Device.h"
|
2021-12-14 15:22:46 -08:00
|
|
|
"client/Instance.cpp"
|
|
|
|
"client/Instance.h"
|
2021-12-15 13:52:17 -08:00
|
|
|
"client/LimitsAndFeatures.cpp"
|
|
|
|
"client/LimitsAndFeatures.h"
|
2022-06-17 14:21:39 -07:00
|
|
|
"client/ObjectStore.cpp"
|
|
|
|
"client/ObjectStore.h"
|
2022-05-09 13:28:54 -07:00
|
|
|
"client/ObjectBase.cpp"
|
|
|
|
"client/ObjectBase.h"
|
2022-06-09 03:12:13 -07:00
|
|
|
"client/QuerySet.cpp"
|
|
|
|
"client/QuerySet.h"
|
2020-06-30 10:53:08 -07:00
|
|
|
"client/Queue.cpp"
|
|
|
|
"client/Queue.h"
|
2021-09-03 09:09:30 -07:00
|
|
|
"client/RequestTracker.h"
|
2021-04-05 16:34:17 -07:00
|
|
|
"client/ShaderModule.cpp"
|
|
|
|
"client/ShaderModule.h"
|
2023-05-26 03:32:17 -07:00
|
|
|
"client/SwapChain.cpp"
|
|
|
|
"client/SwapChain.h"
|
2022-06-08 11:14:02 -07:00
|
|
|
"client/Texture.cpp"
|
|
|
|
"client/Texture.h"
|
2020-02-05 09:16:05 -08:00
|
|
|
"server/ObjectStorage.h"
|
|
|
|
"server/Server.cpp"
|
|
|
|
"server/Server.h"
|
2021-12-15 13:52:17 -08:00
|
|
|
"server/ServerAdapter.cpp"
|
2020-02-05 09:16:05 -08:00
|
|
|
"server/ServerBuffer.cpp"
|
|
|
|
"server/ServerDevice.cpp"
|
|
|
|
"server/ServerInlineMemoryTransferService.cpp"
|
2021-12-15 13:52:17 -08:00
|
|
|
"server/ServerInstance.cpp"
|
2020-02-05 09:16:05 -08:00
|
|
|
"server/ServerQueue.cpp"
|
2021-04-05 16:34:17 -07:00
|
|
|
"server/ServerShaderModule.cpp"
|
2020-02-05 09:16:05 -08:00
|
|
|
)
|
|
|
|
target_link_libraries(dawn_wire
|
|
|
|
PUBLIC dawn_headers
|
|
|
|
PRIVATE dawn_common dawn_internal_config
|
|
|
|
)
|