efl

Форк
0
/
meson.build 
110 строк · 3.1 Кб
1
ector_deps = [eina, emile, eet, eo, efl, draw]
2
ector_pub_deps = [eina, efl]
3
ector_ext_deps = [triangulator, freetype, draw_without_deps, m]
4

5
pub_eo_file_target = []
6
ector_opt_lib = [ ]
7

8

9
ector_header_src = [
10
 # nothing for now ector stays only intree
11
]
12

13
ector_src = files([
14
  'ector_main.c',
15
  'ector_gl_internal.h',
16
  'ector_buffer.c',
17
  'ector_renderer_shape.c',
18
  'ector_renderer_image.c',
19
  'ector_renderer.c',
20
  'ector_renderer_gradient.c',
21
  'ector_renderer_gradient_radial.c',
22
  'ector_renderer_gradient_linear.c'
23
])
24

25
pub_eo_files = [
26
  'ector_surface.eo',
27
  'ector_buffer.eo',
28
  'ector_renderer.eo',
29
  'ector_renderer_shape.eo',
30
  'ector_renderer_image.eo',
31
  'ector_renderer_gradient.eo',
32
  'ector_renderer_gradient_radial.eo',
33
  'ector_renderer_gradient_linear.eo'
34
]
35

36
ector_pub_eo_files = pub_eo_files
37

38
foreach eo_file : pub_eo_files
39
  pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
40
    input : eo_file,
41
    output : [eo_file + '.h'],
42
    depfile : eo_file + '.d',
43
    install : false,
44
    install_dir : dir_package_include,
45
    command : eolian_gen + [ '-I', meson.current_source_dir(), eolian_include_directories,
46
                           '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
47
                           '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
48
                           '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'),
49
                           '-e', 'ECTOR_API',
50
                           '-gchd', '@INPUT@'])
51
endforeach
52

53
eolian_include_directories += ['-I', meson.current_source_dir()]
54

55
subdir('gl')
56

57
pub_eo_types_files = [
58
  'ector_types.eot'
59
]
60

61
#
62
# Only enable that again when the namespace problems are fixed. ref T8648
63
#
64
#if get_option('install-eo-files')
65
#  install_data(ector_pub_eo_files + pub_eo_types_files,
66
#    install_dir: join_paths(eolian_include_dir, package_version_name)
67
#  )
68
#endif
69

70
foreach eo_file : pub_eo_types_files
71
  pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
72
    input : eo_file,
73
    output : [eo_file + '.h'],
74
    depfile : eo_file + '.d',
75
    install : false,
76
    install_dir : dir_package_include,
77
    command : eolian_gen + [ '-I', meson.current_source_dir(), eolian_include_directories,
78
                           '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
79
                           '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'),
80
                           '-e', 'ECTOR_API',
81
                           '-ghd', '@INPUT@'])
82
endforeach
83

84
subdir('software')
85

86
ector_opt_lib_dep = declare_dependency(
87
  link_with: ector_opt_lib
88
)
89

90
ector_ext_deps += ector_opt_lib_dep
91

92
ector_lib = library('ector',
93
    ector_src, pub_eo_file_target,
94
    c_args : [package_c_args, '-DECTOR_BUILD'],
95
    dependencies: ector_pub_deps + ector_ext_deps + ector_deps,
96
    include_directories : config_dir,
97
    install: true,
98
    version : meson.project_version(),
99
)
100

101
ector = declare_dependency(
102
  include_directories: [include_directories('.')],
103
  link_with: ector_lib,
104
  sources : pub_eo_file_target + priv_eo_file_target,
105
  dependencies: ector_pub_deps,
106
)
107

108
install_headers(ector_header_src,
109
  install_dir : dir_package_include,
110
)
111

112

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.