Change blob file extension
This commit is contained in:
parent
df1f611199
commit
938b663bd9
@ -41,7 +41,7 @@ res_object = custom_target(
|
||||
if fs.exists('src/tp6.c')
|
||||
# Compile the real file first (dirty hack)
|
||||
tp6c_fake_exe = executable(
|
||||
'tp6c.obj',
|
||||
'tp6c.o',
|
||||
'src/tp6.c',
|
||||
res_header,
|
||||
link_args: [ '-r' ], # Output an object file
|
||||
@ -53,17 +53,17 @@ if fs.exists('src/tp6.c')
|
||||
|
||||
tp6c = custom_target(
|
||||
'copy_tp6c',
|
||||
output: 'tp6c.obj',
|
||||
output: 'tp6c.o',
|
||||
input: tp6c_fake_exe.extract_all_objects(recursive: false),
|
||||
command: [
|
||||
copy_tp6c,
|
||||
'@INPUT0@',
|
||||
'@OUTPUT0@', meson.current_source_dir() / 'blob/tp6c.obj'
|
||||
'@OUTPUT0@', meson.current_source_dir() / 'blob/tp6c.o'
|
||||
]
|
||||
)
|
||||
else
|
||||
message('Using precompiled tp6c blob. Refer to the readme for more details')
|
||||
tp6c = 'blob/tp6c.obj'
|
||||
tp6c = 'blob/tp6c.o'
|
||||
endif
|
||||
|
||||
shared_library(
|
||||
|
Loading…
Reference in New Issue
Block a user