@ -91,6 +91,8 @@ google/protobuf/wire_format_lite.h
g o o g l e / p r o t o b u f / w i r e _ f o r m a t _ l i t e _ i n l . h
g o o g l e / p r o t o b u f / w i r e _ f o r m a t _ l i t e _ i n l . h
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m . h
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m . h
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l _ l i t e . h
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l _ l i t e . h
g o o g l e / p r o t o b u f / i o / g z i p _ s t r e a m . h
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l . h
)
)
SET ( LIBPROTOBUF_FULL_HDRS
SET ( LIBPROTOBUF_FULL_HDRS
@ -99,7 +101,6 @@ google/protobuf/descriptor.pb.h
g o o g l e / p r o t o b u f / d e s c r i p t o r _ d a t a b a s e . h
g o o g l e / p r o t o b u f / d e s c r i p t o r _ d a t a b a s e . h
g o o g l e / p r o t o b u f / d y n a m i c _ m e s s a g e . h
g o o g l e / p r o t o b u f / d y n a m i c _ m e s s a g e . h
g o o g l e / p r o t o b u f / g e n e r a t e d _ m e s s a g e _ r e f l e c t i o n . h
g o o g l e / p r o t o b u f / g e n e r a t e d _ m e s s a g e _ r e f l e c t i o n . h
g o o g l e / p r o t o b u f / i o / g z i p _ s t r e a m . h
g o o g l e / p r o t o b u f / c o m p i l e r / i m p o r t e r . h
g o o g l e / p r o t o b u f / c o m p i l e r / i m p o r t e r . h
g o o g l e / p r o t o b u f / m e s s a g e . h
g o o g l e / p r o t o b u f / m e s s a g e . h
g o o g l e / p r o t o b u f / c o m p i l e r / p a r s e r . h
g o o g l e / p r o t o b u f / c o m p i l e r / p a r s e r . h
@ -112,7 +113,6 @@ google/protobuf/text_format.h
g o o g l e / p r o t o b u f / i o / t o k e n i z e r . h
g o o g l e / p r o t o b u f / i o / t o k e n i z e r . h
g o o g l e / p r o t o b u f / u n k n o w n _ f i e l d _ s e t . h
g o o g l e / p r o t o b u f / u n k n o w n _ f i e l d _ s e t . h
g o o g l e / p r o t o b u f / w i r e _ f o r m a t . h
g o o g l e / p r o t o b u f / w i r e _ f o r m a t . h
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l . h
)
)
LIST ( APPEND LIBPROTOBUF_FULL_HDRS ${ LIBPROTOBUF_LITE_HDRS } )
LIST ( APPEND LIBPROTOBUF_FULL_HDRS ${ LIBPROTOBUF_LITE_HDRS } )
@ -128,6 +128,8 @@ google/protobuf/repeated_field.cc
g o o g l e / p r o t o b u f / w i r e _ f o r m a t _ l i t e . c c
g o o g l e / p r o t o b u f / w i r e _ f o r m a t _ l i t e . c c
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m . c c
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m . c c
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l _ l i t e . c c
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l _ l i t e . c c
g o o g l e / p r o t o b u f / i o / g z i p _ s t r e a m . c c
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l . c c
)
)
SET ( LIBPROTOBUF_FULL_SRCS
SET ( LIBPROTOBUF_FULL_SRCS
@ -137,7 +139,6 @@ google/protobuf/descriptor_database.cc
g o o g l e / p r o t o b u f / d y n a m i c _ m e s s a g e . c c
g o o g l e / p r o t o b u f / d y n a m i c _ m e s s a g e . c c
g o o g l e / p r o t o b u f / e x t e n s i o n _ s e t _ h e a v y . c c
g o o g l e / p r o t o b u f / e x t e n s i o n _ s e t _ h e a v y . c c
g o o g l e / p r o t o b u f / g e n e r a t e d _ m e s s a g e _ r e f l e c t i o n . c c
g o o g l e / p r o t o b u f / g e n e r a t e d _ m e s s a g e _ r e f l e c t i o n . c c
g o o g l e / p r o t o b u f / i o / g z i p _ s t r e a m . c c
g o o g l e / p r o t o b u f / c o m p i l e r / i m p o r t e r . c c
g o o g l e / p r o t o b u f / c o m p i l e r / i m p o r t e r . c c
g o o g l e / p r o t o b u f / m e s s a g e . c c
g o o g l e / p r o t o b u f / m e s s a g e . c c
g o o g l e / p r o t o b u f / c o m p i l e r / p a r s e r . c c
g o o g l e / p r o t o b u f / c o m p i l e r / p a r s e r . c c
@ -151,7 +152,6 @@ google/protobuf/text_format.cc
g o o g l e / p r o t o b u f / i o / t o k e n i z e r . c c
g o o g l e / p r o t o b u f / i o / t o k e n i z e r . c c
g o o g l e / p r o t o b u f / u n k n o w n _ f i e l d _ s e t . c c
g o o g l e / p r o t o b u f / u n k n o w n _ f i e l d _ s e t . c c
g o o g l e / p r o t o b u f / w i r e _ f o r m a t . c c
g o o g l e / p r o t o b u f / w i r e _ f o r m a t . c c
g o o g l e / p r o t o b u f / i o / z e r o _ c o p y _ s t r e a m _ i m p l . c c
)
)
SET ( LIBPROTOC_HDRS
SET ( LIBPROTOC_HDRS
@ -201,9 +201,36 @@ LIST(APPEND LIBPROTOBUF_FULL_SRCS ${LIBPROTOBUF_LITE_SRCS})
INCLUDE_DIRECTORIES ( ${ CMAKE_CURRENT_SOURCE_DIR } )
INCLUDE_DIRECTORIES ( ${ CMAKE_CURRENT_SOURCE_DIR } )
INCLUDE_DIRECTORIES ( ${ dfhack_SOURCE_DIR } /library/depends/zlib )
INCLUDE_DIRECTORIES ( ${ dfhack_SOURCE_DIR } /library/depends/zlib )
ADD_LIBRARY ( protobuf-lite ${ LIBPROTOBUF_LITE_SRCS } ${ LIBPROTOBUF_LITE_HDRS } )
# P r o t o b u f s h a r e d l i b r a r i e s
ADD_LIBRARY ( protobuf ${ LIBPROTOBUF_FULL_SRCS } ${ LIBPROTOBUF_FULL_HDRS } )
ADD_LIBRARY ( protoc ${ LIBPROTOC_SRCS } ${ LIBPROTOC_HDRS } )
ADD_LIBRARY ( protobuf SHARED ${ LIBPROTOBUF_FULL_SRCS } ${ LIBPROTOBUF_FULL_HDRS } )
ADD_LIBRARY ( protobuf-lite SHARED ${ LIBPROTOBUF_LITE_SRCS } ${ LIBPROTOBUF_LITE_HDRS } )
SET_TARGET_PROPERTIES ( protobuf PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS )
SET_TARGET_PROPERTIES ( protobuf-lite PROPERTIES COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS )
IF ( WIN32 )
TARGET_LINK_LIBRARIES ( protobuf ${ CMAKE_THREAD_LIBS_INIT } zlib )
TARGET_LINK_LIBRARIES ( protobuf-lite ${ CMAKE_THREAD_LIBS_INIT } zlib )
ELSE ( )
TARGET_LINK_LIBRARIES ( protobuf ${ CMAKE_THREAD_LIBS_INIT } z )
TARGET_LINK_LIBRARIES ( protobuf-lite ${ CMAKE_THREAD_LIBS_INIT } z )
ENDIF ( )
install ( TARGETS protobuf-lite
L I B R A R Y D E S T I N A T I O N $ { D F H A C K _ L I B R A R Y _ D E S T I N A T I O N } / d e p l i b s
R U N T I M E D E S T I N A T I O N $ { D F H A C K _ L I B R A R Y _ D E S T I N A T I O N } / d e p l i b s )
# P r o t o b u f c o m p i l e r s h a r e d l i b r a r y
ADD_LIBRARY ( protoc SHARED ${ LIBPROTOC_SRCS } ${ LIBPROTOC_HDRS } )
SET_TARGET_PROPERTIES ( protoc PROPERTIES COMPILE_DEFINITIONS LIBPROTOC_EXPORTS )
TARGET_LINK_LIBRARIES ( protoc protobuf )
# P r o t o b u f c o m p i l e r e x e c u t a b l e
ADD_EXECUTABLE ( protoc-bin google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h )
ADD_EXECUTABLE ( protoc-bin google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h )
SET_TARGET_PROPERTIES ( protoc-bin PROPERTIES OUTPUT_NAME protoc )
SET_TARGET_PROPERTIES ( protoc-bin PROPERTIES OUTPUT_NAME protoc )
TARGET_LINK_LIBRARIES ( protoc-bin protoc protobuf ${ CMAKE_THREAD_LIBS_INIT } )
TARGET_LINK_LIBRARIES ( protoc-bin protoc )