summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@ddlm.me>2019-03-13 16:54:14 -0700
committerCedric BAIL <cedric@ddlm.me>2019-03-13 17:19:06 -0700
commita12ab95df071167e68439f10251d5eaa71187558 (patch)
tree4a498609a8f89050c0ad07fa0df85046cc8b4c24
parent6a69955e71a00a720e1b0a9bc7b64dd3dd5673db (diff)
build: add support for meson build system.
-rw-r--r--data/meson.build59
-rw-r--r--meson.build63
-rw-r--r--src/bin/meson.build128
3 files changed, 250 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..30925f9
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,59 @@
1files = [ 'Kochi.ttf',
2 'Vera.ttf',
3 'VeraBI.ttf',
4 'VeraBd.ttf',
5 'VeraIt.ttf',
6 'VeraMoBI.ttf',
7 'VeraMoBd.ttf',
8 'VeraMoIt.ttf',
9 'VeraMono.ttf',
10 'VeraSe.ttf',
11 'VeraSeBd.ttf',
12 'fonts.alias',
13 'fonts.dir',
14 'logo.png',
15 'e-logo.png',
16 'e.png',
17 'image.png',
18 'bar.png',
19 'frame.png',
20 'pan.png',
21 'tp.png',
22 'tp.yuv',
23 'icon_sel.png',
24 'text_sel.png',
25 'exit.png',
26 'watch.png',
27 'bug.png',
28 'bulb.png',
29 'camera.png',
30 'colorbox.png',
31 'error.png',
32 'flower.png',
33 'house.png',
34 'mushroom.png',
35 'pulse.png',
36 'typewriter.png',
37 'warning.png',
38 'im1.png',
39 'im2.png',
40 'cube1.png',
41 'cube2.png',
42 'cube3.png',
43 'cube4.png',
44 'cube5.png',
45 'cube6.png',
46 'text.png',
47 'rect.png',
48 'blend.png',
49 'map.png',
50 '3d.png',
51 'data.png',
52 'widgets.png',
53 'e-logo-2.png',
54 'e-logo-mask.png',
55 'texture.png',
56 'vector.png' ]
57
58install_data(files, install_dir: join_paths(get_option('datadir'),
59 meson.project_name(), 'data')) \ No newline at end of file
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..00e1eb2
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,63 @@
1project('expedite', 'c',
2 version: '1.11.99',
3 default_options: ['c_std=gnu99'],
4 license: 'BSD')
5
6
7cc = meson.get_compiler('c')
8
9prefix = get_option('prefix')
10add_global_arguments('-DHAVE_CONFIG_H=1', language: 'c')
11config_data = configuration_data()
12config_data.set('EFL_BETA_API_SUPPORT', 1)
13config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
14config_data.set_quoted('PACKAGE', meson.project_name())
15config_data.set_quoted('PACKAGE_BUGREPORT',
16 'enlightenment-devel@lists.sourceforge.net')
17config_data.set_quoted('PACKAGE_NAME', meson.project_name())
18config_data.set_quoted('PACKAGE_TARNAME', meson.project_name())
19config_data.set_quoted('PACKAGE_URL',
20 'https://www.enlightenment.org/')
21config_data.set_quoted('PACKAGE_BIN_DIR',
22 join_paths(prefix, get_option('bindir')))
23config_data.set_quoted('PACKAGE_DATA_DIR',
24 join_paths(prefix, get_option('datadir'),
25 meson.project_name()))
26config_data.set_quoted('PACKAGE_LIB_DIR',
27 join_paths(prefix, get_option('libdir')))
28config_data.set_quoted('LOCALEDIR', join_paths(prefix, get_option('localedir')))
29
30host_os = host_machine.system()
31
32if host_os == 'linux'
33 config_data.set('_GNU_SOURCE', 1)
34 config_data.set('__EXTENSIONS__', 1)
35 config_data.set('_POSIX_PTHREAD_SEMANTICS', 1)
36 config_data.set('_TANDEM_SOURCE', 1)
37 config_data.set('_ALL_SOURCE', 1)
38 config_data.set('_POSIX_SOURCE', 1)
39 config_data.set('_POSIX_1_SOURCE', 1)
40endif
41
42efl_version = '1.22.0'
43efl_deps = ['eina',
44 'eet',
45 'eo',
46 'efl',
47 'evas',
48 'ecore',
49 'ecore-evas',
50 'elementary']
51expedite_dependencies = []
52
53foreach efl_dep: efl_deps
54 dep = dependency(efl_dep, version: '>=' + efl_version)
55 expedite_dependencies += [dep]
56endforeach
57
58configure_file(output: 'config.h',
59 configuration: config_data)
60
61config_dir = include_directories('.')
62subdir('src/bin')
63subdir('data')
diff --git a/src/bin/meson.build b/src/bin/meson.build
new file mode 100644
index 0000000..ba4b263
--- /dev/null
+++ b/src/bin/meson.build
@@ -0,0 +1,128 @@
1expedite_sources = [ 'main.c',
2 'main.h',
3 'ui.c',
4 'ui.h',
5 'about.c',
6 'about.h',
7 'tests.h',
8 'widgets_file_icons.c',
9 'widgets_file_icons_2.c',
10 'widgets_file_icons_2_grouped.c',
11 'widgets_file_icons_2_same.c',
12 'widgets_file_icons_2_same_grouped.c',
13 'widgets_file_icons_3.c',
14 'widgets_file_icons_4.c',
15 'widgets_list_1.c',
16 'widgets_list_1_grouped.c',
17 'widgets_list_2.c',
18 'widgets_list_2_grouped.c',
19 'widgets_list_3.c',
20 'widgets_list_3_grouped.c',
21 'widgets_list_4.c',
22 'widgets_list_4_grouped.c',
23 'image_blend_unscaled.c',
24 'image_blend_solid_middle_unscaled.c',
25 'image_blend_fade_unscaled.c',
26 'image_blend_fade_pow2_unscaled.c',
27 'image_blend_solid_unscaled.c',
28 'image_blend_solid_fade_unscaled.c',
29 'image_blend_solid_fade_pow2_unscaled.c',
30 'image_blend_nearest_scaled.c',
31 'image_blend_nearest_solid_scaled.c',
32 'image_blend_smooth_scaled.c',
33 'image_blend_smooth_solid_scaled.c',
34 'image_blend_nearest_same_scaled.c',
35 'image_blend_nearest_solid_same_scaled.c',
36 'image_blend_smooth_same_scaled.c',
37 'image_blend_smooth_solid_same_scaled.c',
38 'image_blend_border.c',
39 'image_blend_solid_middle_border.c',
40 'image_blend_solid_border.c',
41 'image_blend_border_recolor.c',
42 'image_map_rotate.c',
43 'image_map_solid_rotate.c',
44 'image_map_nearest_rotate.c',
45 'image_map_nearest_solid_rotate.c',
46 'image_map_color_rotate.c',
47 'image_map_color_solid_rotate.c',
48 'image_map_color_nearest_rotate.c',
49 'image_map_color_nearest_solid_rotate.c',
50 'image_map_color_alpha_rotate.c',
51 'image_map_color_alpha_solid_rotate.c',
52 'image_map_color_alpha_nearest_rotate.c',
53 'image_map_color_alpha_nearest_solid_rotate.c',
54 'image_map_3d_1.c',
55 'image_map_3d_2.c',
56 'image_map_3d_3.c',
57 'image_map_3d_4.c',
58 'image_map_3d_5.c',
59 'image_map_3d_6.c',
60 'image_map_3d_flow.c',
61 'image_quality_scale.c',
62 'image_data_argb.c',
63 'image_data_argb_alpha.c',
64 'image_data_ycbcr601pl.c',
65 'image_data_ycbcr601pl_wide_stride.c',
66 'image_data_ycbcr601pl_map_solid_rotate.c',
67 'image_data_ycbcr601pl_map_nearest_solid_rotate.c',
68 'image_crossfade.c',
69 'text_basic.c',
70 'text_styles.c',
71 'text_styles_different_strings.c',
72 'text_change.c',
73 'textblock_basic.c',
74 'textblock_intl.c',
75 'textblock_auto_align.c',
76 'textblock_text_append.c',
77 'rect_blend.c',
78 'rect_blend_pow2.c',
79 'rect_solid.c',
80 'rect_blend_few.c',
81 'rect_blend_pow2_few.c',
82 'rect_solid_few.c',
83 'image_blend_occlude1_few.c',
84 'image_blend_occlude2_few.c',
85 'image_blend_occlude3_few.c',
86 'image_blend_occlude1.c',
87 'image_blend_occlude2.c',
88 'image_blend_occlude3.c',
89 'image_blend_occlude1_many.c',
90 'image_blend_occlude2_many.c',
91 'image_blend_occlude3_many.c',
92 'image_blend_occlude1_very_many.c',
93 'image_blend_occlude2_very_many.c',
94 'image_blend_occlude3_very_many.c',
95 'poly_blend.c',
96 'proxy_image.c',
97 'proxy_text_fixed.c',
98 'proxy_text_random.c',
99 'line_blend.c',
100 'image_blend_many_smooth_same_scaled.c',
101 'font_effect_blur_alpha.c',
102 'font_effect_blur_color.c',
103 'image_mask.c',
104 'image_mask_2.c',
105 'image_mask_3.c',
106 'image_mask_4.c',
107 'image_mask_5.c',
108 'image_mask_6.c',
109 'image_mask_7.c',
110 'image_mask_8.c',
111 'image_mask_9.c',
112 'image_mask_10.c',
113 'image_mask_11.c',
114 'image_mask_12.c',
115 'image_mask_13.c',
116 'vg_basic_rect.c',
117 'vg_basic_circle.c',
118 'vg_basic_gradient.c',
119 'vg_scaled.c',
120 'snapshot_widgets_file_icons.c' ]
121
122executable('expedite',
123 expedite_sources,
124 install: true,
125 include_directories: config_dir,
126 dependencies: expedite_dependencies)
127
128