File: 0001-cmake-Add-descriptor_upbproto-library-for-shared-lin.patch

package info (click to toggle)
upb 0.0.0~git200730-2
  • links: PTS
  • area: main
  • in suites: sid
  • size: 1,696 kB
  • sloc: ansic: 16,828; cpp: 5,098; python: 360; pascal: 160; ruby: 21; sh: 19; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 763 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: [PATCH 1/5] cmake: Add descriptor_upbproto library for shared linking
 Before this change, building upb with the -DBUILD_SHARED_LIBS:BOOL=ON
 option was failing due to lack of libdescriptor_upbproto.so shared
 library. 
Author: Michal Rostecki <mrostecki@opensuse.org>
Last-Update: 2020-08-01

---

--- upb-0.orig/CMakeLists.txt
+++ upb-0/CMakeLists.txt
@@ -80,6 +80,9 @@ add_library(generated_code_support__only
 target_link_libraries(generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE
   table
   upb)
+add_library(descriptor_upb_proto
+  generated_for_cmake/google/protobuf/descriptor.upb.c
+  generated_for_cmake/google/protobuf/descriptor.upb.h)
 add_library(reflection
   upb/def.c
   upb/msg.h