dino/xmpp-vala/CMakeLists.txt

112 lines
3.6 KiB
Text
Raw Normal View History

find_packages(ENGINE_PACKAGES REQUIRED
GDKPixbuf2
Gee
GIO
GLib
GObject
2017-03-02 14:37:32 +00:00
)
vala_precompile(ENGINE_VALA_C
SOURCES
"src/glib_fixes.vapi"
2017-03-02 14:37:32 +00:00
"src/core/namespace_state.vala"
"src/core/stanza_attribute.vala"
"src/core/stanza_node.vala"
"src/core/stanza_reader.vala"
"src/core/stanza_writer.vala"
"src/core/xmpp_log.vala"
2017-03-02 14:37:32 +00:00
"src/core/xmpp_stream.vala"
"src/module/bind.vala"
"src/module/iq/module.vala"
"src/module/iq/stanza.vala"
"src/module/message/module.vala"
"src/module/message/stanza.vala"
"src/module/presence/flag.vala"
"src/module/presence/module.vala"
"src/module/presence/stanza.vala"
"src/module/roster/flag.vala"
"src/module/roster/item.vala"
"src/module/roster/module.vala"
2017-05-21 21:30:30 +00:00
"src/module/roster/versioning_module.vala"
2017-03-02 14:37:32 +00:00
"src/module/sasl.vala"
2017-06-20 23:07:06 +00:00
"src/module/session.vala"
2017-03-02 14:37:32 +00:00
"src/module/stanza.vala"
"src/module/stanza_error.vala"
"src/module/stream_error.vala"
"src/module/tls.vala"
"src/module/util.vala"
"src/module/xep/0004_data_forms.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/0030_service_discovery/flag.vala"
2017-03-30 23:17:01 +00:00
"src/module/xep/0030_service_discovery/identity.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/0030_service_discovery/info_result.vala"
2017-03-30 23:17:01 +00:00
"src/module/xep/0030_service_discovery/item.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/0030_service_discovery/items_result.vala"
"src/module/xep/0030_service_discovery/module.vala"
"src/module/xep/0045_muc/flag.vala"
"src/module/xep/0045_muc/module.vala"
2017-04-11 16:06:01 +00:00
"src/module/xep/0045_muc/status_code.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/0048_bookmarks/module.vala"
"src/module/xep/0048_bookmarks/conference.vala"
"src/module/xep/0049_private_xml_storage.vala"
"src/module/xep/0054_vcard/module.vala"
"src/module/xep/0060_pubsub.vala"
"src/module/xep/0066_out_of_band_data.vala"
"src/module/xep/0082_date_time_profiles.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/0084_user_avatars.vala"
"src/module/xep/0085_chat_state_notifications.vala"
"src/module/xep/0115_entitiy_capabilities.vala"
"src/module/xep/0191_blocking_command.vala"
2017-08-12 21:14:50 +00:00
"src/module/xep/0198_stream_management.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/0199_ping.vala"
"src/module/xep/0184_message_delivery_receipts.vala"
"src/module/xep/0203_delayed_delivery.vala"
"src/module/xep/0280_message_carbons.vala"
2017-08-16 09:44:42 +00:00
"src/module/xep/0313_message_archive_management.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/0333_chat_markers.vala"
2017-08-09 18:44:15 +00:00
"src/module/xep/0368_srv_records_tls.vala"
2017-03-02 14:37:32 +00:00
"src/module/xep/pixbuf_storage.vala"
PACKAGES
${ENGINE_PACKAGES}
GENERATE_VAPI
2017-03-10 16:01:45 +00:00
xmpp-vala
2017-03-02 14:37:32 +00:00
GENERATE_HEADER
2017-03-10 16:01:45 +00:00
xmpp-vala
2017-03-02 14:37:32 +00:00
)
2017-03-10 16:01:45 +00:00
add_custom_target(xmpp-vala-vapi
2017-03-02 14:37:32 +00:00
DEPENDS
${CMAKE_BINARY_DIR}/exports/xmpp-vala.vapi
${CMAKE_BINARY_DIR}/exports/xmpp-vala.deps
2017-03-02 14:37:32 +00:00
)
add_definitions(${VALA_CFLAGS})
add_library(xmpp-vala SHARED ${ENGINE_VALA_C})
add_dependencies(xmpp-vala xmpp-vala-vapi)
target_link_libraries(xmpp-vala ${ENGINE_PACKAGES})
set_target_properties(xmpp-vala PROPERTIES VERSION 0.1 SOVERSION 0)
install(TARGETS xmpp-vala ${TARGET_INSTALL})
install(FILES ${CMAKE_BINARY_DIR}/exports/xmpp-vala.vapi ${CMAKE_BINARY_DIR}/exports/xmpp-vala.deps DESTINATION ${VAPI_INSTALL_DIR})
2017-06-20 23:07:06 +00:00
install(FILES ${CMAKE_BINARY_DIR}/exports/xmpp-vala.h DESTINATION ${INCLUDE_INSTALL_DIR})
if(BUILD_TESTS)
vala_precompile(ENGINE_TEST_VALA_C
SOURCES
"tests/common.vala"
"tests/testcase.vala"
"tests/stanza.vala"
CUSTOM_VAPIS
${CMAKE_BINARY_DIR}/exports/xmpp-vala_internal.vapi
PACKAGES
${ENGINE_PACKAGES}
)
add_definitions(${VALA_CFLAGS})
add_executable(xmpp-vala-test ${ENGINE_TEST_VALA_C})
target_link_libraries(xmpp-vala-test xmpp-vala ${SIGNAL_PROTOCOL_PACKAGES})
endif(BUILD_TESTS)