build: add support for meson build system.
This commit is contained in:
parent
6a69955e71
commit
a12ab95df0
|
@ -0,0 +1,59 @@
|
||||||
|
files = [ 'Kochi.ttf',
|
||||||
|
'Vera.ttf',
|
||||||
|
'VeraBI.ttf',
|
||||||
|
'VeraBd.ttf',
|
||||||
|
'VeraIt.ttf',
|
||||||
|
'VeraMoBI.ttf',
|
||||||
|
'VeraMoBd.ttf',
|
||||||
|
'VeraMoIt.ttf',
|
||||||
|
'VeraMono.ttf',
|
||||||
|
'VeraSe.ttf',
|
||||||
|
'VeraSeBd.ttf',
|
||||||
|
'fonts.alias',
|
||||||
|
'fonts.dir',
|
||||||
|
'logo.png',
|
||||||
|
'e-logo.png',
|
||||||
|
'e.png',
|
||||||
|
'image.png',
|
||||||
|
'bar.png',
|
||||||
|
'frame.png',
|
||||||
|
'pan.png',
|
||||||
|
'tp.png',
|
||||||
|
'tp.yuv',
|
||||||
|
'icon_sel.png',
|
||||||
|
'text_sel.png',
|
||||||
|
'exit.png',
|
||||||
|
'watch.png',
|
||||||
|
'bug.png',
|
||||||
|
'bulb.png',
|
||||||
|
'camera.png',
|
||||||
|
'colorbox.png',
|
||||||
|
'error.png',
|
||||||
|
'flower.png',
|
||||||
|
'house.png',
|
||||||
|
'mushroom.png',
|
||||||
|
'pulse.png',
|
||||||
|
'typewriter.png',
|
||||||
|
'warning.png',
|
||||||
|
'im1.png',
|
||||||
|
'im2.png',
|
||||||
|
'cube1.png',
|
||||||
|
'cube2.png',
|
||||||
|
'cube3.png',
|
||||||
|
'cube4.png',
|
||||||
|
'cube5.png',
|
||||||
|
'cube6.png',
|
||||||
|
'text.png',
|
||||||
|
'rect.png',
|
||||||
|
'blend.png',
|
||||||
|
'map.png',
|
||||||
|
'3d.png',
|
||||||
|
'data.png',
|
||||||
|
'widgets.png',
|
||||||
|
'e-logo-2.png',
|
||||||
|
'e-logo-mask.png',
|
||||||
|
'texture.png',
|
||||||
|
'vector.png' ]
|
||||||
|
|
||||||
|
install_data(files, install_dir: join_paths(get_option('datadir'),
|
||||||
|
meson.project_name(), 'data'))
|
|
@ -0,0 +1,63 @@
|
||||||
|
project('expedite', 'c',
|
||||||
|
version: '1.11.99',
|
||||||
|
default_options: ['c_std=gnu99'],
|
||||||
|
license: 'BSD')
|
||||||
|
|
||||||
|
|
||||||
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
|
prefix = get_option('prefix')
|
||||||
|
add_global_arguments('-DHAVE_CONFIG_H=1', language: 'c')
|
||||||
|
config_data = configuration_data()
|
||||||
|
config_data.set('EFL_BETA_API_SUPPORT', 1)
|
||||||
|
config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||||
|
config_data.set_quoted('PACKAGE', meson.project_name())
|
||||||
|
config_data.set_quoted('PACKAGE_BUGREPORT',
|
||||||
|
'enlightenment-devel@lists.sourceforge.net')
|
||||||
|
config_data.set_quoted('PACKAGE_NAME', meson.project_name())
|
||||||
|
config_data.set_quoted('PACKAGE_TARNAME', meson.project_name())
|
||||||
|
config_data.set_quoted('PACKAGE_URL',
|
||||||
|
'https://www.enlightenment.org/')
|
||||||
|
config_data.set_quoted('PACKAGE_BIN_DIR',
|
||||||
|
join_paths(prefix, get_option('bindir')))
|
||||||
|
config_data.set_quoted('PACKAGE_DATA_DIR',
|
||||||
|
join_paths(prefix, get_option('datadir'),
|
||||||
|
meson.project_name()))
|
||||||
|
config_data.set_quoted('PACKAGE_LIB_DIR',
|
||||||
|
join_paths(prefix, get_option('libdir')))
|
||||||
|
config_data.set_quoted('LOCALEDIR', join_paths(prefix, get_option('localedir')))
|
||||||
|
|
||||||
|
host_os = host_machine.system()
|
||||||
|
|
||||||
|
if host_os == 'linux'
|
||||||
|
config_data.set('_GNU_SOURCE', 1)
|
||||||
|
config_data.set('__EXTENSIONS__', 1)
|
||||||
|
config_data.set('_POSIX_PTHREAD_SEMANTICS', 1)
|
||||||
|
config_data.set('_TANDEM_SOURCE', 1)
|
||||||
|
config_data.set('_ALL_SOURCE', 1)
|
||||||
|
config_data.set('_POSIX_SOURCE', 1)
|
||||||
|
config_data.set('_POSIX_1_SOURCE', 1)
|
||||||
|
endif
|
||||||
|
|
||||||
|
efl_version = '1.22.0'
|
||||||
|
efl_deps = ['eina',
|
||||||
|
'eet',
|
||||||
|
'eo',
|
||||||
|
'efl',
|
||||||
|
'evas',
|
||||||
|
'ecore',
|
||||||
|
'ecore-evas',
|
||||||
|
'elementary']
|
||||||
|
expedite_dependencies = []
|
||||||
|
|
||||||
|
foreach efl_dep: efl_deps
|
||||||
|
dep = dependency(efl_dep, version: '>=' + efl_version)
|
||||||
|
expedite_dependencies += [dep]
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
configure_file(output: 'config.h',
|
||||||
|
configuration: config_data)
|
||||||
|
|
||||||
|
config_dir = include_directories('.')
|
||||||
|
subdir('src/bin')
|
||||||
|
subdir('data')
|
|
@ -0,0 +1,128 @@
|
||||||
|
expedite_sources = [ 'main.c',
|
||||||
|
'main.h',
|
||||||
|
'ui.c',
|
||||||
|
'ui.h',
|
||||||
|
'about.c',
|
||||||
|
'about.h',
|
||||||
|
'tests.h',
|
||||||
|
'widgets_file_icons.c',
|
||||||
|
'widgets_file_icons_2.c',
|
||||||
|
'widgets_file_icons_2_grouped.c',
|
||||||
|
'widgets_file_icons_2_same.c',
|
||||||
|
'widgets_file_icons_2_same_grouped.c',
|
||||||
|
'widgets_file_icons_3.c',
|
||||||
|
'widgets_file_icons_4.c',
|
||||||
|
'widgets_list_1.c',
|
||||||
|
'widgets_list_1_grouped.c',
|
||||||
|
'widgets_list_2.c',
|
||||||
|
'widgets_list_2_grouped.c',
|
||||||
|
'widgets_list_3.c',
|
||||||
|
'widgets_list_3_grouped.c',
|
||||||
|
'widgets_list_4.c',
|
||||||
|
'widgets_list_4_grouped.c',
|
||||||
|
'image_blend_unscaled.c',
|
||||||
|
'image_blend_solid_middle_unscaled.c',
|
||||||
|
'image_blend_fade_unscaled.c',
|
||||||
|
'image_blend_fade_pow2_unscaled.c',
|
||||||
|
'image_blend_solid_unscaled.c',
|
||||||
|
'image_blend_solid_fade_unscaled.c',
|
||||||
|
'image_blend_solid_fade_pow2_unscaled.c',
|
||||||
|
'image_blend_nearest_scaled.c',
|
||||||
|
'image_blend_nearest_solid_scaled.c',
|
||||||
|
'image_blend_smooth_scaled.c',
|
||||||
|
'image_blend_smooth_solid_scaled.c',
|
||||||
|
'image_blend_nearest_same_scaled.c',
|
||||||
|
'image_blend_nearest_solid_same_scaled.c',
|
||||||
|
'image_blend_smooth_same_scaled.c',
|
||||||
|
'image_blend_smooth_solid_same_scaled.c',
|
||||||
|
'image_blend_border.c',
|
||||||
|
'image_blend_solid_middle_border.c',
|
||||||
|
'image_blend_solid_border.c',
|
||||||
|
'image_blend_border_recolor.c',
|
||||||
|
'image_map_rotate.c',
|
||||||
|
'image_map_solid_rotate.c',
|
||||||
|
'image_map_nearest_rotate.c',
|
||||||
|
'image_map_nearest_solid_rotate.c',
|
||||||
|
'image_map_color_rotate.c',
|
||||||
|
'image_map_color_solid_rotate.c',
|
||||||
|
'image_map_color_nearest_rotate.c',
|
||||||
|
'image_map_color_nearest_solid_rotate.c',
|
||||||
|
'image_map_color_alpha_rotate.c',
|
||||||
|
'image_map_color_alpha_solid_rotate.c',
|
||||||
|
'image_map_color_alpha_nearest_rotate.c',
|
||||||
|
'image_map_color_alpha_nearest_solid_rotate.c',
|
||||||
|
'image_map_3d_1.c',
|
||||||
|
'image_map_3d_2.c',
|
||||||
|
'image_map_3d_3.c',
|
||||||
|
'image_map_3d_4.c',
|
||||||
|
'image_map_3d_5.c',
|
||||||
|
'image_map_3d_6.c',
|
||||||
|
'image_map_3d_flow.c',
|
||||||
|
'image_quality_scale.c',
|
||||||
|
'image_data_argb.c',
|
||||||
|
'image_data_argb_alpha.c',
|
||||||
|
'image_data_ycbcr601pl.c',
|
||||||
|
'image_data_ycbcr601pl_wide_stride.c',
|
||||||
|
'image_data_ycbcr601pl_map_solid_rotate.c',
|
||||||
|
'image_data_ycbcr601pl_map_nearest_solid_rotate.c',
|
||||||
|
'image_crossfade.c',
|
||||||
|
'text_basic.c',
|
||||||
|
'text_styles.c',
|
||||||
|
'text_styles_different_strings.c',
|
||||||
|
'text_change.c',
|
||||||
|
'textblock_basic.c',
|
||||||
|
'textblock_intl.c',
|
||||||
|
'textblock_auto_align.c',
|
||||||
|
'textblock_text_append.c',
|
||||||
|
'rect_blend.c',
|
||||||
|
'rect_blend_pow2.c',
|
||||||
|
'rect_solid.c',
|
||||||
|
'rect_blend_few.c',
|
||||||
|
'rect_blend_pow2_few.c',
|
||||||
|
'rect_solid_few.c',
|
||||||
|
'image_blend_occlude1_few.c',
|
||||||
|
'image_blend_occlude2_few.c',
|
||||||
|
'image_blend_occlude3_few.c',
|
||||||
|
'image_blend_occlude1.c',
|
||||||
|
'image_blend_occlude2.c',
|
||||||
|
'image_blend_occlude3.c',
|
||||||
|
'image_blend_occlude1_many.c',
|
||||||
|
'image_blend_occlude2_many.c',
|
||||||
|
'image_blend_occlude3_many.c',
|
||||||
|
'image_blend_occlude1_very_many.c',
|
||||||
|
'image_blend_occlude2_very_many.c',
|
||||||
|
'image_blend_occlude3_very_many.c',
|
||||||
|
'poly_blend.c',
|
||||||
|
'proxy_image.c',
|
||||||
|
'proxy_text_fixed.c',
|
||||||
|
'proxy_text_random.c',
|
||||||
|
'line_blend.c',
|
||||||
|
'image_blend_many_smooth_same_scaled.c',
|
||||||
|
'font_effect_blur_alpha.c',
|
||||||
|
'font_effect_blur_color.c',
|
||||||
|
'image_mask.c',
|
||||||
|
'image_mask_2.c',
|
||||||
|
'image_mask_3.c',
|
||||||
|
'image_mask_4.c',
|
||||||
|
'image_mask_5.c',
|
||||||
|
'image_mask_6.c',
|
||||||
|
'image_mask_7.c',
|
||||||
|
'image_mask_8.c',
|
||||||
|
'image_mask_9.c',
|
||||||
|
'image_mask_10.c',
|
||||||
|
'image_mask_11.c',
|
||||||
|
'image_mask_12.c',
|
||||||
|
'image_mask_13.c',
|
||||||
|
'vg_basic_rect.c',
|
||||||
|
'vg_basic_circle.c',
|
||||||
|
'vg_basic_gradient.c',
|
||||||
|
'vg_scaled.c',
|
||||||
|
'snapshot_widgets_file_icons.c' ]
|
||||||
|
|
||||||
|
executable('expedite',
|
||||||
|
expedite_sources,
|
||||||
|
install: true,
|
||||||
|
include_directories: config_dir,
|
||||||
|
dependencies: expedite_dependencies)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue