Corentin Wallez | 7fe6efb | 2020-02-05 17:16:05 +0000 | [diff] [blame] | 1 | # 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 | |
| 15 | DawnJSONGenerator( |
| 16 | TARGET "dawn_wire" |
| 17 | PRINT_NAME "Dawn wire" |
| 18 | RESULT_VARIABLE "DAWN_WIRE_GEN_SOURCES" |
| 19 | ) |
| 20 | |
Corentin Wallez | 19b910d | 2020-09-16 19:03:18 +0000 | [diff] [blame] | 21 | add_library(dawn_wire ${DAWN_DUMMY_FILE}) |
| 22 | |
| 23 | target_compile_definitions(dawn_wire PRIVATE "DAWN_WIRE_IMPLEMENTATION") |
| 24 | if(BUILD_SHARED_LIBS) |
| 25 | target_compile_definitions(dawn_wire PRIVATE "DAWN_WIRE_SHARED_LIBRARY") |
| 26 | endif() |
| 27 | |
Corentin Wallez | 7fe6efb | 2020-02-05 17:16:05 +0000 | [diff] [blame] | 28 | target_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 Eng | bd3f586 | 2021-02-25 20:21:25 +0000 | [diff] [blame] | 34 | "BufferConsumer.h" |
| 35 | "BufferConsumer_impl.h" |
Austin Eng | cac0442 | 2020-10-13 22:35:34 +0000 | [diff] [blame] | 36 | "ChunkedCommandHandler.cpp" |
| 37 | "ChunkedCommandHandler.h" |
| 38 | "ChunkedCommandSerializer.cpp" |
| 39 | "ChunkedCommandSerializer.h" |
Austin Eng | 1b31dc0 | 2021-02-17 22:14:56 +0000 | [diff] [blame] | 40 | "Wire.cpp" |
Corentin Wallez | 7fe6efb | 2020-02-05 17:16:05 +0000 | [diff] [blame] | 41 | "WireClient.cpp" |
| 42 | "WireDeserializeAllocator.cpp" |
| 43 | "WireDeserializeAllocator.h" |
Austin Eng | bd3f586 | 2021-02-25 20:21:25 +0000 | [diff] [blame] | 44 | "WireResult.h" |
Corentin Wallez | 7fe6efb | 2020-02-05 17:16:05 +0000 | [diff] [blame] | 45 | "WireServer.cpp" |
| 46 | "client/ApiObjects.h" |
Corentin Wallez | 7fe6efb | 2020-02-05 17:16:05 +0000 | [diff] [blame] | 47 | "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 Wallez | 9fa6883 | 2020-06-30 17:53:08 +0000 | [diff] [blame] | 58 | "client/Queue.cpp" |
| 59 | "client/Queue.h" |
Corentin Wallez | 7fe6efb | 2020-02-05 17:16:05 +0000 | [diff] [blame] | 60 | "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 | ) |
| 69 | target_link_libraries(dawn_wire |
| 70 | PUBLIC dawn_headers |
| 71 | PRIVATE dawn_common dawn_internal_config |
| 72 | ) |