summaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 8b0ef910808ac1c2f5079dc2aebf8ff540da58a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Sources

source_files = files(
  'actions.c',
  'dlg-add-files.c',
  'dlg-add-folder.c',
  'dlg-ask-password.c',
  'dlg-batch-add.c',
  'dlg-delete.c',
  'dlg-extract.c',
  'dlg-new.c',
  'dlg-open-with.c',
  'dlg-package-installer.c',
  'dlg-password.c',
  'dlg-prop.c',
  'dlg-update.c',
  'eggfileformatchooser.c',
  'eggtreemultidnd.c',
  'file-data.c',
  'file-utils.c',
  'fr-archive.c',
  'fr-command-7z.c',
  'fr-command-ace.c',
  'fr-command-alz.c',
  'fr-command-ar.c',
  'fr-command-arj.c',
  'fr-command.c',
  'fr-command-cfile.c',
  'fr-command-cpio.c',
  'fr-command-dpkg.c',
  'fr-command-iso.c',
  'fr-command-jar.c',
  'fr-command-lha.c',
  'fr-command-lrzip.c',
  'fr-command-nomarch.c',
  'fr-command-rar.c',
  'fr-command-rpm.c',
  'fr-command-tar.c',
  'fr-command-unstuff.c',
  'fr-command-zip.c',
  'fr-command-zoo.c',
  'fr-error.c',
  'fr-init.c',
  'fr-list-model.c',
  'fr-proc-error.c',
  'fr-process.c',
  'fr-window.c',
  'gio-utils.c',
  'glib-utils.c',
  'gtk-utils.c',
  'java-utils.c',
  'main.c',
  'open-file.c',
  'preferences.c',
  'rar-utils.c'
)
if libjson_glib_dep.found()
  source_files += [ 'fr-command-unarchiver.c' ]
endif

gresource_files = gnome.compile_resources('fr-resources', 'engrampa.gresource.xml', c_name : 'fr')

marshal_files = gnome.genmarshal('fr-marshal', prefix : 'fr_marshal', sources : 'fr-marshal.list' )

enum_files = gnome.mkenums_simple('fr-enum-types',
  sources: [ 'typedefs.h' ]
)

# Build targets

executable('engrampa',
  sources : [
    config_file,
    source_files,
    gresource_files,
    marshal_files,
    enum_files
  ],
  dependencies : [
    libm_dep,
    thread_dep,
    glib_dep,
    gthread_dep,
    gtk_dep,
    mate_submodules_dep,
    use_json_glib ? libjson_glib_dep : [],
    use_magic ? libmagic_dep : []
  ],
  include_directories : config_inc,
  c_args : c_args,
  install : true
)

executable('test-server', 'test-server.c',
  dependencies : [
    libm_dep,
    thread_dep,
    glib_dep,
    gthread_dep,
    gtk_dep,
    use_json_glib ? libjson_glib_dep : []
  ],
  include_directories : config_inc,
  c_args : c_args,
  install : true,
  install_dir: privexecdir,
)

# Subdirectories

subdir('sh')