blob: 77e96c0b69408ef7d52bae5a6adc8dfe6ceb32db [file] [log] [blame]
Corentin Wallez7fe6efb2020-02-05 17:16:05 +00001# Copyright 2020 The Dawn Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15DawnJSONGenerator(
16 TARGET "dawn_wire"
17 PRINT_NAME "Dawn wire"
18 RESULT_VARIABLE "DAWN_WIRE_GEN_SOURCES"
19)
20
Corentin Wallez19b910d2020-09-16 19:03:18 +000021add_library(dawn_wire ${DAWN_DUMMY_FILE})
22
23target_compile_definitions(dawn_wire PRIVATE "DAWN_WIRE_IMPLEMENTATION")
24if(BUILD_SHARED_LIBS)
25 target_compile_definitions(dawn_wire PRIVATE "DAWN_WIRE_SHARED_LIBRARY")
26endif()
27
Corentin Wallez7fe6efb2020-02-05 17:16:05 +000028target_sources(dawn_wire PRIVATE
29 "${DAWN_INCLUDE_DIR}/dawn_wire/Wire.h"
30 "${DAWN_INCLUDE_DIR}/dawn_wire/WireClient.h"
31 "${DAWN_INCLUDE_DIR}/dawn_wire/WireServer.h"
32 "${DAWN_INCLUDE_DIR}/dawn_wire/dawn_wire_export.h"
33 ${DAWN_WIRE_GEN_SOURCES}
Austin Engbd3f5862021-02-25 20:21:25 +000034 "BufferConsumer.h"
35 "BufferConsumer_impl.h"
Austin Engcac04422020-10-13 22:35:34 +000036 "ChunkedCommandHandler.cpp"
37 "ChunkedCommandHandler.h"
38 "ChunkedCommandSerializer.cpp"
39 "ChunkedCommandSerializer.h"
Austin Eng1b31dc02021-02-17 22:14:56 +000040 "Wire.cpp"
Corentin Wallez7fe6efb2020-02-05 17:16:05 +000041 "WireClient.cpp"
42 "WireDeserializeAllocator.cpp"
43 "WireDeserializeAllocator.h"
Austin Engbd3f5862021-02-25 20:21:25 +000044 "WireResult.h"
Corentin Wallez7fe6efb2020-02-05 17:16:05 +000045 "WireServer.cpp"
46 "client/ApiObjects.h"
Corentin Wallez7fe6efb2020-02-05 17:16:05 +000047 "client/Buffer.cpp"
48 "client/Buffer.h"
49 "client/Client.cpp"
50 "client/Client.h"
51 "client/ClientDoers.cpp"
52 "client/ClientInlineMemoryTransferService.cpp"
53 "client/Device.cpp"
54 "client/Device.h"
55 "client/Fence.cpp"
56 "client/Fence.h"
57 "client/ObjectAllocator.h"
Corentin Wallez9fa68832020-06-30 17:53:08 +000058 "client/Queue.cpp"
59 "client/Queue.h"
Corentin Wallez7fe6efb2020-02-05 17:16:05 +000060 "server/ObjectStorage.h"
61 "server/Server.cpp"
62 "server/Server.h"
63 "server/ServerBuffer.cpp"
64 "server/ServerDevice.cpp"
65 "server/ServerFence.cpp"
66 "server/ServerInlineMemoryTransferService.cpp"
67 "server/ServerQueue.cpp"
68)
69target_link_libraries(dawn_wire
70 PUBLIC dawn_headers
71 PRIVATE dawn_common dawn_internal_config
72)