Skip to content

Add initial Meson build file #625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2017
Merged

Add initial Meson build file #625

merged 2 commits into from
Jun 26, 2017

Conversation

SoapGentoo
Copy link
Contributor

No description provided.

meson.build Outdated
'-B',
join_paths(meson.current_source_dir(), 'test/runjsontests.py'),
jsontestrunner,
join_paths(meson.current_source_dir(), 'test/data')]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cdunn2001 the script likely needs some changing, it still clobbers the source tree, which isn't good

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not able to discover any clobbered files. Is this upon installation?

I think I'll merge this and cut a 1.8.1 release. We can improve it later.

Copy link
Contributor Author

@SoapGentoo SoapGentoo Jun 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ meson --default-library shared . build
<snip>
$ ninja -C build test
ninja: Entering directory `build'
[10/11] Running all tests.
1/2 unittest_jsoncpp_test                   OK       0.01 s
2/2 unittest_jsontestrunner                 OK       1.05 s

OK:         2
FAIL:       0
SKIP:       0
TIMEOUT:    0

Full log written to /home/soap/gitz/jsoncpp/build/meson-logs/testlog.txt
$ git clean -fdx .
Removing build/
Removing test/data/test_array_01.actual
Removing test/data/test_array_01.actual-rewrite
Removing test/data/test_array_01.process-output
Removing test/data/test_array_01.rewrite
Removing test/data/test_array_02.actual
Removing test/data/test_array_02.actual-rewrite
...

All those temporary files in test/ should not be created there but in build/, as the idea of meson is not to use make clean and just rm -rf build/. You might want to consider chopping up that python script and turning it into separate parallel tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All those temporary files in test/ should not be created there but in build/

I see. Seems easy to fix. But I don't see anything being clobbered, which would worry me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the misuse of words, my bad. I meant to say that files get added to the source tree.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am having a lot of trouble getting meson installed in TravisCI (in a container, so we cannot use sudo). Look at the mesonise branch in this repo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not getting anywhere. If you want, you can try with sudo: true, which will slow down the build but will make sudo possible. Otherwise, I will probably try CodeShip when I have time.

I could merge this now, but we cannot switch to this for CI yet. We might as well get CI working on this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, don't merge it yet, I'm pretty close to getting it working

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cdunn2001 I gave up on AppVeyor due to it being dumb. Travis seems to work fine now.

@cdunn2001
Copy link
Contributor

# ninja scan-build
scan-build: No bugs found.

Great!

@cdunn2001
Copy link
Contributor

Ah. I guess this is basically copied from here:

Could you put your AppVeyor attempts on a branch? We should be able to get that working eventually. No rush though. We will probably continue to support the cmake builds too for a few months.

@cdunn2001 cdunn2001 merged commit c21b4bb into open-source-parsers:master Jun 26, 2017
@SoapGentoo SoapGentoo deleted the mesonise branch June 26, 2017 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants