csharp: Fix test build dependency

Summary: Make dotnet target also depend on the manual test files.

Test Plan: Modify one of the manual files and run the tests again. The test target should be rebuilt.

Reviewers: bu5hm4n, segfaultxavi, brunobelo, felipealmeida

Reviewed By: brunobelo

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10609
This commit is contained in:
Lauro Moura 2019-11-06 23:47:50 -03:00
parent cd467051af
commit 03d9fa97cc
1 changed files with 28 additions and 28 deletions

View File

@ -57,50 +57,7 @@ foreach mono_gen_file : eo_files
'@INPUT@'])
endforeach
if get_option('dotnet')
dotnet_test_conf_data = configuration_data()
dotnet_test_conf_data.set('EFL_VERSION', meson.project_version())
dotnet_test_conf_data.set('BINDING_BUILD', join_paths(meson.current_build_dir(),
'..', '..', 'bindings', 'mono'))
dotnet_test_conf_data.set('BINDING_TEST_SRC', meson.current_source_dir())
dotnet_test_conf_data.set('NETCOREAPP_VERSION', dotnet_core_app_version)
if get_option('mono-beta')
dotnet_test_conf_data.set('EFL_BETA', 'EFL_BETA')
else
dotnet_test_conf_data.set('EFL_BETA', '')
endif
dotnet_test_csproj = configure_file(input: 'efl_sharp_test_suite.csproj.in',
output: 'efl_sharp_test_suite.csproj',
configuration: dotnet_test_conf_data,
)
efl_mono_suite = custom_target('efl_mono_test',
input: eo_file_targets + [dotnet_test_csproj],
output: 'efl_sharp_test_suite.dll',
depends: [efl_mono],
build_by_default: true,
command: [dotnet,
'build',
'-o',
meson.current_build_dir(),
'--framework',
'netcoreapp' + dotnet_core_app_version,
dotnet_test_csproj],
)
else
efl_mono_test = library('efl_mono_test',
eo_file_targets,
link_with : [efl_mono],
cs_args : extra_cs_args
)
efl_mono_src = [
efl_mono_src = [
'Main.cs',
'TestUtils.cs',
'EinaTestData.cs',
@ -125,7 +82,50 @@ else
'ValueEolian.cs',
'Inheritance.cs',
'Hash.cs'
]
]
if get_option('dotnet')
dotnet_test_conf_data = configuration_data()
dotnet_test_conf_data.set('EFL_VERSION', meson.project_version())
dotnet_test_conf_data.set('BINDING_BUILD', join_paths(meson.current_build_dir(),
'..', '..', 'bindings', 'mono'))
dotnet_test_conf_data.set('BINDING_TEST_SRC', meson.current_source_dir())
dotnet_test_conf_data.set('NETCOREAPP_VERSION', dotnet_core_app_version)
if get_option('mono-beta')
dotnet_test_conf_data.set('EFL_BETA', 'EFL_BETA')
else
dotnet_test_conf_data.set('EFL_BETA', '')
endif
dotnet_test_csproj = configure_file(input: 'efl_sharp_test_suite.csproj.in',
output: 'efl_sharp_test_suite.csproj',
configuration: dotnet_test_conf_data,
)
efl_mono_suite = custom_target('efl_mono_test',
input: eo_file_targets + [dotnet_test_csproj] + efl_mono_src,
output: 'efl_sharp_test_suite.dll',
depends: [efl_mono],
build_by_default: true,
command: [dotnet,
'build',
'-o',
meson.current_build_dir(),
'--framework',
'netcoreapp' + dotnet_core_app_version,
dotnet_test_csproj],
)
else
efl_mono_test = library('efl_mono_test',
eo_file_targets,
link_with : [efl_mono],
cs_args : extra_cs_args
)
efl_mono_suite = executable('efl-mono-suite',
efl_mono_src,