-
Notifications
You must be signed in to change notification settings - Fork 47
/
meson.build
85 lines (78 loc) · 2.82 KB
/
meson.build
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
project(
'DiscImageCreator',
'cpp',
license : 'Apache-2.0',
default_options : ['buildtype=release', 'prefix=/usr', 'cpp_std=c++11']
)
conf_data = configuration_data()
if target_machine.system().contains('linux') or target_machine.system().contains('darwin')
build_date = run_command('date', '+%Y%m%d').stdout().strip()
build_time = run_command('date', '+%H%M%S').stdout().strip()
endif
if target_machine.system().contains('linux')
add_project_arguments('-include', 'defineForLinux.h', language : 'cpp')
endif
conf_data.set('build_date', build_date)
conf_data.set('build_time', build_time)
builddatetime_h = configure_file(
input: 'DiscImageCreator/buildDateTime.h.in',
output: 'buildDateTime.h',
configuration: conf_data,
)
executable(
meson.project_name(),
sources: [
builddatetime_h,
'DiscImageCreator/DiscImageCreator.cpp',
'DiscImageCreator/_external/NonStandardFunction.cpp',
'DiscImageCreator/_external/abgx360.cpp',
'DiscImageCreator/_external/aes.cpp',
'DiscImageCreator/_external/aesni.cpp',
'DiscImageCreator/_external/crc16ccitt.cpp',
'DiscImageCreator/_external/crc32.cpp',
'DiscImageCreator/_external/crc32ecma267.cpp',
'DiscImageCreator/_external/crc6itu.cpp',
'DiscImageCreator/_external/md5c.cpp',
'DiscImageCreator/_external/platform_util.cpp',
'DiscImageCreator/_external/prngcd.cpp',
'DiscImageCreator/_external/rijndael-alg-fst.cpp',
'DiscImageCreator/_external/sha1.cpp',
'DiscImageCreator/_external/sha224-256.cpp',
'DiscImageCreator/_external/sha384-512.cpp',
'DiscImageCreator/_external/tinyxml2.cpp',
'DiscImageCreator/_external/xxhash.cpp',
'DiscImageCreator/_linux/defineForLinux.cpp',
'DiscImageCreator/calcHash.cpp',
'DiscImageCreator/check.cpp',
'DiscImageCreator/convert.cpp',
'DiscImageCreator/execIoctl.cpp',
'DiscImageCreator/execScsiCmd.cpp',
'DiscImageCreator/execScsiCmdforCD.cpp',
'DiscImageCreator/execScsiCmdforCDCheck.cpp',
'DiscImageCreator/execScsiCmdforDVD.cpp',
'DiscImageCreator/execScsiCmdforFileSystem.cpp',
'DiscImageCreator/execTapeCmd.cpp',
'DiscImageCreator/fix.cpp',
'DiscImageCreator/get.cpp',
'DiscImageCreator/init.cpp',
'DiscImageCreator/output.cpp',
'DiscImageCreator/outputFileSystem.cpp',
'DiscImageCreator/outputIoctlLog.cpp',
'DiscImageCreator/outputScsiCmdLog.cpp',
'DiscImageCreator/outputScsiCmdLogforCD.cpp',
'DiscImageCreator/outputScsiCmdLogforDVD.cpp',
'DiscImageCreator/set.cpp',
'DiscImageCreator/xml.cpp',
],
include_directories: 'DiscImageCreator/_linux',
cpp_args: ['-Wno-unknown-pragmas'],
install: true,
install_dir: get_option('bindir'),
)
install_data(
sources: [
'Release_ANSI/default.dat',
'Release_ANSI/driveOffset.txt',
],
install_dir: get_option('datadir') / meson.project_name(),
)