2015-07-25 09:16:16 -04:00
|
|
|
#!/usr/bin/env ruby
|
2017-07-20 15:33:29 -04:00
|
|
|
# frozen_string_literal: true
|
2015-07-25 09:16:16 -04:00
|
|
|
|
|
|
|
require 'mkmf'
|
|
|
|
|
|
|
|
NAME = 'tox'
|
|
|
|
|
2015-09-09 15:00:18 -04:00
|
|
|
LIBTOXCORE = 'toxcore'
|
2015-09-12 13:35:42 -04:00
|
|
|
|
2015-09-13 13:15:27 -04:00
|
|
|
have_header 'time.h' and
|
|
|
|
have_header 'tox/tox.h' and
|
2015-09-13 20:34:37 -04:00
|
|
|
have_header 'tox/tox_old.h' and
|
2015-09-13 13:15:27 -04:00
|
|
|
|
|
|
|
have_func 'sprintf' and
|
|
|
|
have_func 'sscanf' and
|
|
|
|
have_func 'nanosleep' and
|
|
|
|
|
2015-09-12 13:35:42 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_options_default' and
|
|
|
|
have_library LIBTOXCORE, 'tox_new' and
|
|
|
|
have_library LIBTOXCORE, 'tox_get_savedata_size' and
|
|
|
|
have_library LIBTOXCORE, 'tox_get_savedata' and
|
|
|
|
have_library LIBTOXCORE, 'tox_self_get_address' and
|
|
|
|
have_library LIBTOXCORE, 'tox_bootstrap' and
|
2015-09-12 13:53:41 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_kill' and
|
2015-09-13 06:07:26 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_version_is_compatible' and
|
2015-09-13 06:36:55 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_iteration_interval' and
|
|
|
|
have_library LIBTOXCORE, 'tox_iterate' and
|
2015-09-13 07:42:38 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_friend_add_norequest' and
|
2015-09-13 07:44:20 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_friend_send_message' and
|
2015-09-13 09:29:17 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_callback_friend_request' and
|
|
|
|
have_library LIBTOXCORE, 'tox_callback_friend_message' and
|
2015-09-15 15:18:15 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_self_get_name_size' and
|
|
|
|
have_library LIBTOXCORE, 'tox_self_get_name' and
|
|
|
|
have_library LIBTOXCORE, 'tox_self_set_name' and
|
2015-09-15 15:58:39 -04:00
|
|
|
have_library LIBTOXCORE, 'tox_self_get_status_message_size' and
|
|
|
|
have_library LIBTOXCORE, 'tox_self_get_status_message' and
|
|
|
|
have_library LIBTOXCORE, 'tox_self_set_status_message' and
|
2015-09-12 13:35:42 -04:00
|
|
|
|
|
|
|
create_makefile "#{NAME}/#{NAME}" or exit(1)
|