{"action":"closed","number":19,"pull_request":{"url":"https://api.github.com/repos/deurk/mvdsv/pulls/19","id":135079314,"html_url":"https://github.com/deurk/mvdsv/pull/19","diff_url":"https://github.com/deurk/mvdsv/pull/19.diff","patch_url":"https://github.com/deurk/mvdsv/pull/19.patch","issue_url":"https://api.github.com/repos/deurk/mvdsv/issues/19","number":19,"state":"closed","locked":false,"title":"add meson build file","user":{"login":"fzwoch","id":439605,"avatar_url":"https://avatars1.githubusercontent.com/u/439605?v=4","gravatar_id":"","url":"https://api.github.com/users/fzwoch","html_url":"https://github.com/fzwoch","followers_url":"https://api.github.com/users/fzwoch/followers","following_url":"https://api.github.com/users/fzwoch/following{/other_user}","gists_url":"https://api.github.com/users/fzwoch/gists{/gist_id}","starred_url":"https://api.github.com/users/fzwoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzwoch/subscriptions","organizations_url":"https://api.github.com/users/fzwoch/orgs","repos_url":"https://api.github.com/users/fzwoch/repos","events_url":"https://api.github.com/users/fzwoch/events{/privacy}","received_events_url":"https://api.github.com/users/fzwoch/received_events","type":"User","site_admin":false},"body":"In an effort to get rid of cumbersome Makefiles or other custom configure things. Tested for native targets Linux, macOS and Windows/MSYS2. Cross compile tested from Linux -> Windows.\r\n\r\nIt actually tries to detect if you have libpcre installed and links to that library in case you have it. If not it will just compile the pcre files in the repository. Might be nice to not maintain those but rely on system installed libs. Keep in mind though that deployment then may require copying the libpcre library as well.\r\n\r\nNo ASM support for now. Mingw targets need to prevent `#define id386` in `quakeasm.h` unless someone knows how to compile these `.s` files nowadays.\r\n\r\nHere is a linux -> mingw cross-compile example config for a 64 bit target (e.g. mingw.txt):\r\n```\r\n[binaries]\r\nc = 'x86_64-w64-mingw32-gcc'\r\ncpp = 'x86_64-w64-mingw32-g++'\r\nar = 'x86_64-w64-mingw32-ar'\r\nstrip = 'x86_64-w64-mingw32-strip'\r\npkgconfig = 'x86_64-w64-mingw32-pkg-config'\r\nwindres = 'x86_64-w64-mingw32-windres'\r\n\r\n[host_machine]\r\nsystem = 'windows'\r\ncpu_family = 'x86_64'\r\ncpu = 'x86_64'\r\nendian = 'little'\r\n```\r\nCompile commands would be:\r\n```\r\nmeson --buildtype=release --cross-file=mingw.txt mingw\r\nninja -C mingw\r\n```\r\n\r\nNative builds should just drop the `--cross-file` option:\r\n```\r\nmeson --buildtype=release build\r\nninja -C build\r\n```\r\n\r\nDebug builds would just drop the `--buildtype` option:\r\n```\r\nmeson debug\r\nninja -C debug\r\n```","created_at":"2017-08-10T09:28:35Z","updated_at":"2017-08-10T09:41:40Z","closed_at":"2017-08-10T09:41:40Z","merged_at":"2017-08-10T09:41:40Z","merge_commit_sha":"9be25c415b7eab6ba506adca279e13b3f9d03469","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/deurk/mvdsv/pulls/19/commits","review_comments_url":"https://api.github.com/repos/deurk/mvdsv/pulls/19/comments","review_comment_url":"https://api.github.com/repos/deurk/mvdsv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deurk/mvdsv/issues/19/comments","statuses_url":"https://api.github.com/repos/deurk/mvdsv/statuses/9d96dda824de77be43733e541f26b08edc8acbc1","head":{"label":"fzwoch:meson","ref":"meson","sha":"9d96dda824de77be43733e541f26b08edc8acbc1","user":{"login":"fzwoch","id":439605,"avatar_url":"https://avatars1.githubusercontent.com/u/439605?v=4","gravatar_id":"","url":"https://api.github.com/users/fzwoch","html_url":"https://github.com/fzwoch","followers_url":"https://api.github.com/users/fzwoch/followers","following_url":"https://api.github.com/users/fzwoch/following{/other_user}","gists_url":"https://api.github.com/users/fzwoch/gists{/gist_id}","starred_url":"https://api.github.com/users/fzwoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzwoch/subscriptions","organizations_url":"https://api.github.com/users/fzwoch/orgs","repos_url":"https://api.github.com/users/fzwoch/repos","events_url":"https://api.github.com/users/fzwoch/events{/privacy}","received_events_url":"https://api.github.com/users/fzwoch/received_events","type":"User","site_admin":false},"repo":{"id":99903718,"name":"mvdsv","full_name":"fzwoch/mvdsv","owner":{"login":"fzwoch","id":439605,"avatar_url":"https://avatars1.githubusercontent.com/u/439605?v=4","gravatar_id":"","url":"https://api.github.com/users/fzwoch","html_url":"https://github.com/fzwoch","followers_url":"https://api.github.com/users/fzwoch/followers","following_url":"https://api.github.com/users/fzwoch/following{/other_user}","gists_url":"https://api.github.com/users/fzwoch/gists{/gist_id}","starred_url":"https://api.github.com/users/fzwoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzwoch/subscriptions","organizations_url":"https://api.github.com/users/fzwoch/orgs","repos_url":"https://api.github.com/users/fzwoch/repos","events_url":"https://api.github.com/users/fzwoch/events{/privacy}","received_events_url":"https://api.github.com/users/fzwoch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fzwoch/mvdsv","description":"MVDSV: a QuakeWorld server","fork":true,"url":"https://api.github.com/repos/fzwoch/mvdsv","forks_url":"https://api.github.com/repos/fzwoch/mvdsv/forks","keys_url":"https://api.github.com/repos/fzwoch/mvdsv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fzwoch/mvdsv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fzwoch/mvdsv/teams","hooks_url":"https://api.github.com/repos/fzwoch/mvdsv/hooks","issue_events_url":"https://api.github.com/repos/fzwoch/mvdsv/issues/events{/number}","events_url":"https://api.github.com/repos/fzwoch/mvdsv/events","assignees_url":"https://api.github.com/repos/fzwoch/mvdsv/assignees{/user}","branches_url":"https://api.github.com/repos/fzwoch/mvdsv/branches{/branch}","tags_url":"https://api.github.com/repos/fzwoch/mvdsv/tags","blobs_url":"https://api.github.com/repos/fzwoch/mvdsv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fzwoch/mvdsv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fzwoch/mvdsv/git/refs{/sha}","trees_url":"https://api.github.com/repos/fzwoch/mvdsv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fzwoch/mvdsv/statuses/{sha}","languages_url":"https://api.github.com/repos/fzwoch/mvdsv/languages","stargazers_url":"https://api.github.com/repos/fzwoch/mvdsv/stargazers","contributors_url":"https://api.github.com/repos/fzwoch/mvdsv/contributors","subscribers_url":"https://api.github.com/repos/fzwoch/mvdsv/subscribers","subscription_url":"https://api.github.com/repos/fzwoch/mvdsv/subscription","commits_url":"https://api.github.com/repos/fzwoch/mvdsv/commits{/sha}","git_commits_url":"https://api.github.com/repos/fzwoch/mvdsv/git/commits{/sha}","comments_url":"https://api.github.com/repos/fzwoch/mvdsv/comments{/number}","issue_comment_url":"https://api.github.com/repos/fzwoch/mvdsv/issues/comments{/number}","contents_url":"https://api.github.com/repos/fzwoch/mvdsv/contents/{+path}","compare_url":"https://api.github.com/repos/fzwoch/mvdsv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fzwoch/mvdsv/merges","archive_url":"https://api.github.com/repos/fzwoch/mvdsv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fzwoch/mvdsv/downloads","issues_url":"https://api.github.com/repos/fzwoch/mvdsv/issues{/number}","pulls_url":"https://api.github.com/repos/fzwoch/mvdsv/pulls{/number}","milestones_url":"https://api.github.com/repos/fzwoch/mvdsv/milestones{/number}","notifications_url":"https://api.github.com/repos/fzwoch/mvdsv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fzwoch/mvdsv/labels{/name}","releases_url":"https://api.github.com/repos/fzwoch/mvdsv/releases{/id}","deployments_url":"https://api.github.com/repos/fzwoch/mvdsv/deployments","created_at":"2017-08-10T09:06:49Z","updated_at":"2017-08-10T09:06:51Z","pushed_at":"2017-08-10T09:10:06Z","git_url":"git://github.com/fzwoch/mvdsv.git","ssh_url":"git@github.com:fzwoch/mvdsv.git","clone_url":"https://github.com/fzwoch/mvdsv.git","svn_url":"https://github.com/fzwoch/mvdsv","homepage":null,"size":4852,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"deurk:master","ref":"master","sha":"ed72dc473baf0975af2e8afae651d82542fb67de","user":{"login":"deurk","id":498032,"avatar_url":"https://avatars1.githubusercontent.com/u/498032?v=4","gravatar_id":"","url":"https://api.github.com/users/deurk","html_url":"https://github.com/deurk","followers_url":"https://api.github.com/users/deurk/followers","following_url":"https://api.github.com/users/deurk/following{/other_user}","gists_url":"https://api.github.com/users/deurk/gists{/gist_id}","starred_url":"https://api.github.com/users/deurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deurk/subscriptions","organizations_url":"https://api.github.com/users/deurk/orgs","repos_url":"https://api.github.com/users/deurk/repos","events_url":"https://api.github.com/users/deurk/events{/privacy}","received_events_url":"https://api.github.com/users/deurk/received_events","type":"User","site_admin":false},"repo":{"id":21004848,"name":"mvdsv","full_name":"deurk/mvdsv","owner":{"login":"deurk","id":498032,"avatar_url":"https://avatars1.githubusercontent.com/u/498032?v=4","gravatar_id":"","url":"https://api.github.com/users/deurk","html_url":"https://github.com/deurk","followers_url":"https://api.github.com/users/deurk/followers","following_url":"https://api.github.com/users/deurk/following{/other_user}","gists_url":"https://api.github.com/users/deurk/gists{/gist_id}","starred_url":"https://api.github.com/users/deurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deurk/subscriptions","organizations_url":"https://api.github.com/users/deurk/orgs","repos_url":"https://api.github.com/users/deurk/repos","events_url":"https://api.github.com/users/deurk/events{/privacy}","received_events_url":"https://api.github.com/users/deurk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deurk/mvdsv","description":"MVDSV: a QuakeWorld server","fork":false,"url":"https://api.github.com/repos/deurk/mvdsv","forks_url":"https://api.github.com/repos/deurk/mvdsv/forks","keys_url":"https://api.github.com/repos/deurk/mvdsv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deurk/mvdsv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deurk/mvdsv/teams","hooks_url":"https://api.github.com/repos/deurk/mvdsv/hooks","issue_events_url":"https://api.github.com/repos/deurk/mvdsv/issues/events{/number}","events_url":"https://api.github.com/repos/deurk/mvdsv/events","assignees_url":"https://api.github.com/repos/deurk/mvdsv/assignees{/user}","branches_url":"https://api.github.com/repos/deurk/mvdsv/branches{/branch}","tags_url":"https://api.github.com/repos/deurk/mvdsv/tags","blobs_url":"https://api.github.com/repos/deurk/mvdsv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deurk/mvdsv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deurk/mvdsv/git/refs{/sha}","trees_url":"https://api.github.com/repos/deurk/mvdsv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deurk/mvdsv/statuses/{sha}","languages_url":"https://api.github.com/repos/deurk/mvdsv/languages","stargazers_url":"https://api.github.com/repos/deurk/mvdsv/stargazers","contributors_url":"https://api.github.com/repos/deurk/mvdsv/contributors","subscribers_url":"https://api.github.com/repos/deurk/mvdsv/subscribers","subscription_url":"https://api.github.com/repos/deurk/mvdsv/subscription","commits_url":"https://api.github.com/repos/deurk/mvdsv/commits{/sha}","git_commits_url":"https://api.github.com/repos/deurk/mvdsv/git/commits{/sha}","comments_url":"https://api.github.com/repos/deurk/mvdsv/comments{/number}","issue_comment_url":"https://api.github.com/repos/deurk/mvdsv/issues/comments{/number}","contents_url":"https://api.github.com/repos/deurk/mvdsv/contents/{+path}","compare_url":"https://api.github.com/repos/deurk/mvdsv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deurk/mvdsv/merges","archive_url":"https://api.github.com/repos/deurk/mvdsv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deurk/mvdsv/downloads","issues_url":"https://api.github.com/repos/deurk/mvdsv/issues{/number}","pulls_url":"https://api.github.com/repos/deurk/mvdsv/pulls{/number}","milestones_url":"https://api.github.com/repos/deurk/mvdsv/milestones{/number}","notifications_url":"https://api.github.com/repos/deurk/mvdsv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deurk/mvdsv/labels{/name}","releases_url":"https://api.github.com/repos/deurk/mvdsv/releases{/id}","deployments_url":"https://api.github.com/repos/deurk/mvdsv/deployments","created_at":"2014-06-19T15:11:30Z","updated_at":"2017-08-08T13:03:07Z","pushed_at":"2017-08-10T09:41:40Z","git_url":"git://github.com/deurk/mvdsv.git","ssh_url":"git@github.com:deurk/mvdsv.git","clone_url":"https://github.com/deurk/mvdsv.git","svn_url":"https://github.com/deurk/mvdsv","homepage":null,"size":4852,"stargazers_count":23,"watchers_count":23,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":6,"forks":14,"open_issues":6,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deurk/mvdsv/pulls/19"},"html":{"href":"https://github.com/deurk/mvdsv/pull/19"},"issue":{"href":"https://api.github.com/repos/deurk/mvdsv/issues/19"},"comments":{"href":"https://api.github.com/repos/deurk/mvdsv/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/deurk/mvdsv/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/deurk/mvdsv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deurk/mvdsv/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/deurk/mvdsv/statuses/9d96dda824de77be43733e541f26b08edc8acbc1"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"deurk","id":498032,"avatar_url":"https://avatars1.githubusercontent.com/u/498032?v=4","gravatar_id":"","url":"https://api.github.com/users/deurk","html_url":"https://github.com/deurk","followers_url":"https://api.github.com/users/deurk/followers","following_url":"https://api.github.com/users/deurk/following{/other_user}","gists_url":"https://api.github.com/users/deurk/gists{/gist_id}","starred_url":"https://api.github.com/users/deurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deurk/subscriptions","organizations_url":"https://api.github.com/users/deurk/orgs","repos_url":"https://api.github.com/users/deurk/repos","events_url":"https://api.github.com/users/deurk/events{/privacy}","received_events_url":"https://api.github.com/users/deurk/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":100,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"deurk"}}