0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-31 01:43:02 +08:00
libzmq/builds/gyp/project-tests.gsl
Pieter Hintjens 8230c0d396 Problem: gyp does not build tests
Solution: it's a lot of work to define the tests in project.gyp
so I did this using gsl to generate the JSON, from a small XML
list of the test cases.

To keep this, and the hundreds of .mk files, away from the root
directory, I've moved the gyp files into builds/gyp, where you
would run them.

It all seems to work now. Next up, OS/X and Windows :)
2016-02-12 11:31:38 +01:00

20 lines
351 B
Plaintext

.echo "Generating project-tests.gypi..."
.output "project-tests.gypi"
{
'targets': [
.for test
{
'target_name': '$(name)',
'type': 'executable',
'sources': [
'../../tests/$(name).cpp',
'../../tests/testutil.hpp'
],
'dependencies': [
'libzmq'
],
}$(last ()?? ""? ",")
.endfor
]
}