-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathmeson.build
148 lines (135 loc) · 4.74 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
project('fuzz_tinyusdz', 'c', 'cpp', default_options : ['cpp_std=c++14'])
tinyusdz_sources=[
'../../src/asset-resolution.cc',
'../../src/lz4/lz4.c',
'../../src/tinyusdz.cc',
'../../src/lz4-compression.cc',
'../../src/integerCoding.cpp',
'../../src/io-util.cc',
'../../src/str-util.cc',
'../../src/pprinter.cc',
'../../src/performance.cc',
'../../src/prim-types.cc',
'../../src/prim-reconstruct.cc',
'../../src/usdGeom.cc',
'../../src/usdShade.cc',
'../../src/usdSkel.cc',
'../../src/usdLux.cc',
'../../src/usdObj.cc',
'../../src/primvar.cc',
'../../src/path-util.cc',
'../../src/ascii-parser.cc',
'../../src/ascii-parser-basetype.cc',
'../../src/ascii-parser-timesamples.cc',
'../../src/ascii-parser-timesamples-array.cc',
'../../src/usda-reader.cc',
'../../src/usda-writer.cc',
'../../src/usdc-reader.cc',
'../../src/usdc-writer.cc',
'../../src/crate-reader.cc',
'../../src/crate-format.cc',
'../../src/crate-pprint.cc',
'../../src/value-types.cc',
'../../src/value-pprint.cc',
'../../src/image-loader.cc',
'../../src/image-writer.cc',
'../../src/image-util.cc',
'../../src/linear-algebra.cc',
'../../src/xform.cc',
'../../src/stage.cc',
'../../src/tiny-format.cc',
'../../src/tydra/render-data.cc',
'../../src/tydra/prim-apply.cc',
'../../src/tydra/shader-network.cc',
'../../src/tydra/scene-access.cc',
# deps
'../../src/external/fpng.cpp',
'../../src/external/pystring.cpp',
#'../../src/external/string_id/string_id.cpp',
#'../../src/external/string_id/error.cpp',
#'../../src/external/string_id/database.cpp',
]
incdirs = include_directories(['../../src',
#'../../src/external/fast_float/include',
#'../../src/external/simple_match/include',
])
# TINYUSDZ_FUZZER_BUILD = suppress some debug message
executable('fuzz_tinyusdz',
'tinyusdz_fuzzmain.cc',
tinyusdz_sources,
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_pathutil',
'pathutil_fuzzmain.cc',
tinyusdz_sources,
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_intcoding_decompress',
'../../src/lz4/lz4.c',
'intCoding_decompress_fuzzmain.cc',
'../../src/lz4-compression.cc',
'../../src/integerCoding.cpp',
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_lz4_decompress',
'../../src/lz4/lz4.c',
'lz4_decompress_fuzzmain.cc',
'../../src/lz4-compression.cc',
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_usdaparser',
'usdaparser_fuzzmain.cc',
tinyusdz_sources,
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_usdcparser',
'usdcparser_fuzzmain.cc',
tinyusdz_sources,
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_dr_mp3_decoding',
'dr_mp3_decoding_fuzzmain.cc',
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_dr_wav_decoding',
'dr_wav_decoding_fuzzmain.cc',
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_wuffs_jpeg_decoding',
'wuffs_jpeg_decoding_fuzzmain.cc',
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )
executable('fuzz_alac_decoding',
'alac_decoding_fuzzmain.cc',
'../../src/external/alac/codec/EndianPortable.c',
'../../src/external/alac/codec/ALACBitUtilities.c',
'../../src/external/alac/codec/ALACDecoder.cpp',
'../../src/external/alac/codec/ALACEncoder.cpp',
'../../src/external/alac/codec/ag_dec.c',
'../../src/external/alac/codec/ag_enc.c',
'../../src/external/alac/codec/dp_dec.c',
'../../src/external/alac/codec/dp_enc.c',
'../../src/external/alac/codec/matrix_dec.c',
'../../src/external/alac/codec/matrix_enc.c',
install: true,
include_directories : incdirs,
cpp_args : ['-fsanitize=address,fuzzer', '-DTINYUSDZ_FUZZER_BUILD=1'],
link_args : '-fsanitize=address,fuzzer' )