1*1b3f573fSAndroid Build Coastguard Workerset(libprotobuf_lite_files 2*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/any_lite.cc 3*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/arena.cc 4*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/arenastring.cc 5*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/arenaz_sampler.cc 6*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/extension_set.cc 7*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/generated_enum_util.cc 8*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/generated_message_tctable_lite.cc 9*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/generated_message_util.cc 10*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/implicit_weak_message.cc 11*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/inlined_string_field.cc 12*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/coded_stream.cc 13*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/io_win32.cc 14*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/strtod.cc 15*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream.cc 16*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream_impl.cc 17*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream_impl_lite.cc 18*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/map.cc 19*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/message_lite.cc 20*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/parse_context.cc 21*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/repeated_field.cc 22*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/repeated_ptr_field.cc 23*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/bytestream.cc 24*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/common.cc 25*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/int128.cc 26*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/status.cc 27*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/statusor.cc 28*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/stringpiece.cc 29*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/stringprintf.cc 30*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/structurally_valid.cc 31*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/strutil.cc 32*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/time.cc 33*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/wire_format_lite.cc 34*1b3f573fSAndroid Build Coastguard Worker) 35*1b3f573fSAndroid Build Coastguard Worker 36*1b3f573fSAndroid Build Coastguard Workerset(libprotobuf_lite_includes 37*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/any.h 38*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/arena.h 39*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/arena_impl.h 40*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/arenastring.h 41*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/arenaz_sampler.h 42*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/endian.h 43*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/explicitly_constructed.h 44*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/extension_set.h 45*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/extension_set_inl.h 46*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/generated_enum_util.h 47*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/generated_message_tctable_decl.h 48*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/generated_message_tctable_impl.h 49*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/generated_message_util.h 50*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/has_bits.h 51*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/implicit_weak_message.h 52*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/inlined_string_field.h 53*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/coded_stream.h 54*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/io_win32.h 55*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/strtod.h 56*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream.h 57*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream_impl.h 58*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream_impl_lite.h 59*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/map.h 60*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/map_entry_lite.h 61*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/map_field_lite.h 62*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/map_type_handler.h 63*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/message_lite.h 64*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/metadata_lite.h 65*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/parse_context.h 66*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/port.h 67*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/repeated_field.h 68*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/repeated_ptr_field.h 69*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/bytestream.h 70*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/callback.h 71*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/casts.h 72*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/common.h 73*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/hash.h 74*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/logging.h 75*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/macros.h 76*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/map_util.h 77*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/mutex.h 78*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/once.h 79*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/platform_macros.h 80*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/port.h 81*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/status.h 82*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/stl_util.h 83*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/stringpiece.h 84*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/strutil.h 85*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/stubs/template_util.h 86*1b3f573fSAndroid Build Coastguard Worker ${protobuf_SOURCE_DIR}/src/google/protobuf/wire_format_lite.h 87*1b3f573fSAndroid Build Coastguard Worker) 88*1b3f573fSAndroid Build Coastguard Worker 89*1b3f573fSAndroid Build Coastguard Workeradd_library(libprotobuf-lite ${protobuf_SHARED_OR_STATIC} 90*1b3f573fSAndroid Build Coastguard Worker ${libprotobuf_lite_files} ${libprotobuf_lite_includes} ${protobuf_version_rc_file}) 91*1b3f573fSAndroid Build Coastguard Workerif(protobuf_HAVE_LD_VERSION_SCRIPT) 92*1b3f573fSAndroid Build Coastguard Worker if(${CMAKE_VERSION} VERSION_GREATER 3.13 OR ${CMAKE_VERSION} VERSION_EQUAL 3.13) 93*1b3f573fSAndroid Build Coastguard Worker target_link_options(libprotobuf-lite PRIVATE -Wl,--version-script=${protobuf_SOURCE_DIR}/src/libprotobuf-lite.map) 94*1b3f573fSAndroid Build Coastguard Worker elseif(protobuf_BUILD_SHARED_LIBS) 95*1b3f573fSAndroid Build Coastguard Worker target_link_libraries(libprotobuf-lite PRIVATE -Wl,--version-script=${protobuf_SOURCE_DIR}/src/libprotobuf-lite.map) 96*1b3f573fSAndroid Build Coastguard Worker endif() 97*1b3f573fSAndroid Build Coastguard Worker set_target_properties(libprotobuf-lite PROPERTIES 98*1b3f573fSAndroid Build Coastguard Worker LINK_DEPENDS ${protobuf_SOURCE_DIR}/src/libprotobuf-lite.map) 99*1b3f573fSAndroid Build Coastguard Workerendif() 100*1b3f573fSAndroid Build Coastguard Workertarget_link_libraries(libprotobuf-lite PRIVATE ${CMAKE_THREAD_LIBS_INIT}) 101*1b3f573fSAndroid Build Coastguard Workerif(protobuf_LINK_LIBATOMIC) 102*1b3f573fSAndroid Build Coastguard Worker target_link_libraries(libprotobuf-lite PRIVATE atomic) 103*1b3f573fSAndroid Build Coastguard Workerendif() 104*1b3f573fSAndroid Build Coastguard Workerif(${CMAKE_SYSTEM_NAME} STREQUAL "Android") 105*1b3f573fSAndroid Build Coastguard Worker target_link_libraries(libprotobuf-lite PRIVATE log) 106*1b3f573fSAndroid Build Coastguard Workerendif() 107*1b3f573fSAndroid Build Coastguard Workertarget_include_directories(libprotobuf-lite PUBLIC ${protobuf_SOURCE_DIR}/src) 108*1b3f573fSAndroid Build Coastguard Workerif(protobuf_BUILD_SHARED_LIBS) 109*1b3f573fSAndroid Build Coastguard Worker target_compile_definitions(libprotobuf-lite 110*1b3f573fSAndroid Build Coastguard Worker PUBLIC PROTOBUF_USE_DLLS 111*1b3f573fSAndroid Build Coastguard Worker PRIVATE LIBPROTOBUF_EXPORTS) 112*1b3f573fSAndroid Build Coastguard Workerendif() 113*1b3f573fSAndroid Build Coastguard Workerset_target_properties(libprotobuf-lite PROPERTIES 114*1b3f573fSAndroid Build Coastguard Worker VERSION ${protobuf_VERSION} 115*1b3f573fSAndroid Build Coastguard Worker SOVERSION 32 116*1b3f573fSAndroid Build Coastguard Worker OUTPUT_NAME ${LIB_PREFIX}protobuf-lite 117*1b3f573fSAndroid Build Coastguard Worker DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}") 118*1b3f573fSAndroid Build Coastguard Workeradd_library(protobuf::libprotobuf-lite ALIAS libprotobuf-lite) 119