summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2018-05-19 12:02:08 +0300
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2018-05-19 12:02:08 +0300
commit03b7473d4faddcb87a5e82205a42028768e7c177 (patch)
tree8c21b9d4ef03a82740fc63f7b0512200dbdd4a0d /meson.build
parent224585cfb9502534032078f4f059588185490c09 (diff)
downloadcoffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.tar.gz
coffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.tar.bz2
coffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.zip
add support for "live"-flashing new settings.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 6 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index d1f6305..cbef6cb 100644
--- a/meson.build
+++ b/meson.build
@@ -6,14 +6,17 @@ deps = [dependency('threads')]
deps += dependency('gtk+-3.0')
deps += dependency('ncurses')
+progname = 'coffeetemp'
+resource_dir = join_paths(get_option('datadir'), progname)
+
subdir('src')
-progname = 'coffeetemp'
+inc = include_directories('include')
-resource_dir = join_paths(get_option('datadir'), progname)
resource_dir_arg = 'DATA_DIR=' + '"' + join_paths(get_option('prefix'), resource_dir) + '"'
add_project_arguments('-D', resource_dir_arg, language : 'c')
+add_project_link_arguments('-rdynamic', language : 'c')
-destktop_application = executable(progname, sources, gui_app : true, install : true, dependencies : deps, extra_files : extra)
+destktop_application = executable(progname, sources, include_directories : inc, gui_app : true, install : true, dependencies : deps, extra_files : extra)
install_data(extra, install_dir : resource_dir)