{"action":"created","comment":{"url":"https://api.github.com/repos/distributePro/ovsrpro/pulls/comments/55872076","id":55872076,"diff_hunk":"@@ -0,0 +1,100 @@\n+########################################\n+# qwt\n+########################################\n+xpProOption(qwt)\n+########################################\n+set(QWT_SRC_PATH ${CMAKE_BINARY_DIR}/xpbase/Source/qwt)\n+if(WIN32)\n+  set(QWT_DL_URL https://sourceforge.net/projects/qwt/files/qwt/6.1.2/qwt-6.1.2.zip/download)\n+  set(QWT_DL_MD5 b43a4e93c59b09fa3eb60b2406b4b37f)\n+else()\n+  set(QWT_DL_URL https://sourceforge.net/projects/qwt/files/qwt/6.1.2/qwt-6.1.2.tar.bz2/download)\n+  set(QWT_DL_MD5 9c88db1774fa7e3045af063bbde44d7d)\n+endif()\n+\n+set(PRO_QWT\n+  NAME qwt\n+  WEB \"Qwt\" http://http://qwt.sourceforge.net/ \"Qwt - Qt Widgets for Technical Applications\"\n+  LICENSE \"LGPL\" http://qwt.sourceforge.net/qwtlicense.html \"LGPL with exceptions\"\n+  DESC \"The Qwt library contains GUI Components and utility classes which are primarily useful for programs with a technical background.\"\n+  VER 6.1.2\n+  DLURL ${QWT_DL_URL}\n+  DLMD5 ${QWT_DL_MD5}\n+  PATCH ${PATCH_DIR}/qwtconfig.pri.patch  \n+)\n+########################################\n+function(mkpatch_qwt)\n+  xpRepo(${PRO_QWT})\n+endfunction()\n+########################################\n+function(download_qwt)\n+  xpNewDownload(${PRO_QWT})\n+endfunction()\n+########################################\n+function(patch_qwt)\n+  if(NOT (XP_DEFAULT OR XP_PRO_QWT))\n+    return()\n+  endif()\n+\n+  xpPatch(${PRO_QWT})\n+endfunction()\n+########################################\n+function(build_qwt)\n+  if(NOT (XP_DEFAULT OR XP_PRO_QWT))\n+    return()\n+  endif()\n+\n+  if(NOT TARGET qwt)\n+    patch_qwt()\n+  endif()\n+\n+  # Make sure the qt5 target this depends on has been created\n+  if(NOT (XP_DEFAULT OR XP_PRO_QT5))\n+    message(FATAL_ERROR \"qwt requires qt5\")\n+    return()\n+  endif()\n+\n+  if(${XP_BUILD_STATIC})","path":"projects/qwt.cmake","position":57,"original_position":57,"commit_id":"d9e10b4e1d81652761ac382767fff629ec899815","original_commit_id":"d9e10b4e1d81652761ac382767fff629ec899815","user":{"login":"incessantier","id":9424731,"avatar_url":"https://avatars.githubusercontent.com/u/9424731?v=3","gravatar_id":"","url":"https://api.github.com/users/incessantier","html_url":"https://github.com/incessantier","followers_url":"https://api.github.com/users/incessantier/followers","following_url":"https://api.github.com/users/incessantier/following{/other_user}","gists_url":"https://api.github.com/users/incessantier/gists{/gist_id}","starred_url":"https://api.github.com/users/incessantier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incessantier/subscriptions","organizations_url":"https://api.github.com/users/incessantier/orgs","repos_url":"https://api.github.com/users/incessantier/repos","events_url":"https://api.github.com/users/incessantier/events{/privacy}","received_events_url":"https://api.github.com/users/incessantier/received_events","type":"User","site_admin":false},"body":"(optional) have a variable for static-build to be 'true' or 'false' and use the variable in the add_custom_target instead of duplicating the whole add_custom_target in the if/else.","created_at":"2016-03-11T18:59:00Z","updated_at":"2016-03-11T18:59:00Z","html_url":"https://github.com/distributePro/ovsrpro/pull/2#discussion_r55872076","pull_request_url":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/distributePro/ovsrpro/pulls/comments/55872076"},"html":{"href":"https://github.com/distributePro/ovsrpro/pull/2#discussion_r55872076"},"pull_request":{"href":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2","id":62577168,"html_url":"https://github.com/distributePro/ovsrpro/pull/2","diff_url":"https://github.com/distributePro/ovsrpro/pull/2.diff","patch_url":"https://github.com/distributePro/ovsrpro/pull/2.patch","issue_url":"https://api.github.com/repos/distributePro/ovsrpro/issues/2","number":2,"state":"open","locked":false,"title":"Add the Qwt library","user":{"login":"bnhhughes","id":17324652,"avatar_url":"https://avatars.githubusercontent.com/u/17324652?v=3","gravatar_id":"","url":"https://api.github.com/users/bnhhughes","html_url":"https://github.com/bnhhughes","followers_url":"https://api.github.com/users/bnhhughes/followers","following_url":"https://api.github.com/users/bnhhughes/following{/other_user}","gists_url":"https://api.github.com/users/bnhhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/bnhhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnhhughes/subscriptions","organizations_url":"https://api.github.com/users/bnhhughes/orgs","repos_url":"https://api.github.com/users/bnhhughes/repos","events_url":"https://api.github.com/users/bnhhughes/events{/privacy}","received_events_url":"https://api.github.com/users/bnhhughes/received_events","type":"User","site_admin":false},"body":"Also includes some other cleanup","created_at":"2016-03-11T17:41:17Z","updated_at":"2016-03-11T18:59:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee3deb49a2fe3e0f82f55bdbb0eaa32732aab9c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2/commits","review_comments_url":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2/comments","review_comment_url":"https://api.github.com/repos/distributePro/ovsrpro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/distributePro/ovsrpro/issues/2/comments","statuses_url":"https://api.github.com/repos/distributePro/ovsrpro/statuses/d9e10b4e1d81652761ac382767fff629ec899815","head":{"label":"bnhhughes:qwt","ref":"qwt","sha":"d9e10b4e1d81652761ac382767fff629ec899815","user":{"login":"bnhhughes","id":17324652,"avatar_url":"https://avatars.githubusercontent.com/u/17324652?v=3","gravatar_id":"","url":"https://api.github.com/users/bnhhughes","html_url":"https://github.com/bnhhughes","followers_url":"https://api.github.com/users/bnhhughes/followers","following_url":"https://api.github.com/users/bnhhughes/following{/other_user}","gists_url":"https://api.github.com/users/bnhhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/bnhhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnhhughes/subscriptions","organizations_url":"https://api.github.com/users/bnhhughes/orgs","repos_url":"https://api.github.com/users/bnhhughes/repos","events_url":"https://api.github.com/users/bnhhughes/events{/privacy}","received_events_url":"https://api.github.com/users/bnhhughes/received_events","type":"User","site_admin":false},"repo":{"id":52042855,"name":"ovsrpro","full_name":"bnhhughes/ovsrpro","owner":{"login":"bnhhughes","id":17324652,"avatar_url":"https://avatars.githubusercontent.com/u/17324652?v=3","gravatar_id":"","url":"https://api.github.com/users/bnhhughes","html_url":"https://github.com/bnhhughes","followers_url":"https://api.github.com/users/bnhhughes/followers","following_url":"https://api.github.com/users/bnhhughes/following{/other_user}","gists_url":"https://api.github.com/users/bnhhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/bnhhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnhhughes/subscriptions","organizations_url":"https://api.github.com/users/bnhhughes/orgs","repos_url":"https://api.github.com/users/bnhhughes/repos","events_url":"https://api.github.com/users/bnhhughes/events{/privacy}","received_events_url":"https://api.github.com/users/bnhhughes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bnhhughes/ovsrpro","description":"","fork":true,"url":"https://api.github.com/repos/bnhhughes/ovsrpro","forks_url":"https://api.github.com/repos/bnhhughes/ovsrpro/forks","keys_url":"https://api.github.com/repos/bnhhughes/ovsrpro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bnhhughes/ovsrpro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bnhhughes/ovsrpro/teams","hooks_url":"https://api.github.com/repos/bnhhughes/ovsrpro/hooks","issue_events_url":"https://api.github.com/repos/bnhhughes/ovsrpro/issues/events{/number}","events_url":"https://api.github.com/repos/bnhhughes/ovsrpro/events","assignees_url":"https://api.github.com/repos/bnhhughes/ovsrpro/assignees{/user}","branches_url":"https://api.github.com/repos/bnhhughes/ovsrpro/branches{/branch}","tags_url":"https://api.github.com/repos/bnhhughes/ovsrpro/tags","blobs_url":"https://api.github.com/repos/bnhhughes/ovsrpro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bnhhughes/ovsrpro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bnhhughes/ovsrpro/git/refs{/sha}","trees_url":"https://api.github.com/repos/bnhhughes/ovsrpro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bnhhughes/ovsrpro/statuses/{sha}","languages_url":"https://api.github.com/repos/bnhhughes/ovsrpro/languages","stargazers_url":"https://api.github.com/repos/bnhhughes/ovsrpro/stargazers","contributors_url":"https://api.github.com/repos/bnhhughes/ovsrpro/contributors","subscribers_url":"https://api.github.com/repos/bnhhughes/ovsrpro/subscribers","subscription_url":"https://api.github.com/repos/bnhhughes/ovsrpro/subscription","commits_url":"https://api.github.com/repos/bnhhughes/ovsrpro/commits{/sha}","git_commits_url":"https://api.github.com/repos/bnhhughes/ovsrpro/git/commits{/sha}","comments_url":"https://api.github.com/repos/bnhhughes/ovsrpro/comments{/number}","issue_comment_url":"https://api.github.com/repos/bnhhughes/ovsrpro/issues/comments{/number}","contents_url":"https://api.github.com/repos/bnhhughes/ovsrpro/contents/{+path}","compare_url":"https://api.github.com/repos/bnhhughes/ovsrpro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bnhhughes/ovsrpro/merges","archive_url":"https://api.github.com/repos/bnhhughes/ovsrpro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bnhhughes/ovsrpro/downloads","issues_url":"https://api.github.com/repos/bnhhughes/ovsrpro/issues{/number}","pulls_url":"https://api.github.com/repos/bnhhughes/ovsrpro/pulls{/number}","milestones_url":"https://api.github.com/repos/bnhhughes/ovsrpro/milestones{/number}","notifications_url":"https://api.github.com/repos/bnhhughes/ovsrpro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bnhhughes/ovsrpro/labels{/name}","releases_url":"https://api.github.com/repos/bnhhughes/ovsrpro/releases{/id}","deployments_url":"https://api.github.com/repos/bnhhughes/ovsrpro/deployments","created_at":"2016-02-18T22:16:27Z","updated_at":"2016-02-18T22:16:27Z","pushed_at":"2016-03-11T17:38:33Z","git_url":"git://github.com/bnhhughes/ovsrpro.git","ssh_url":"git@github.com:bnhhughes/ovsrpro.git","clone_url":"https://github.com/bnhhughes/ovsrpro.git","svn_url":"https://github.com/bnhhughes/ovsrpro","homepage":null,"size":8332,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"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":"distributePro:master","ref":"master","sha":"821a26cef0b6a4cc9a14fb083bfd150556a06eb6","user":{"login":"distributePro","id":16581717,"avatar_url":"https://avatars.githubusercontent.com/u/16581717?v=3","gravatar_id":"","url":"https://api.github.com/users/distributePro","html_url":"https://github.com/distributePro","followers_url":"https://api.github.com/users/distributePro/followers","following_url":"https://api.github.com/users/distributePro/following{/other_user}","gists_url":"https://api.github.com/users/distributePro/gists{/gist_id}","starred_url":"https://api.github.com/users/distributePro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distributePro/subscriptions","organizations_url":"https://api.github.com/users/distributePro/orgs","repos_url":"https://api.github.com/users/distributePro/repos","events_url":"https://api.github.com/users/distributePro/events{/privacy}","received_events_url":"https://api.github.com/users/distributePro/received_events","type":"Organization","site_admin":false},"repo":{"id":49480616,"name":"ovsrpro","full_name":"distributePro/ovsrpro","owner":{"login":"distributePro","id":16581717,"avatar_url":"https://avatars.githubusercontent.com/u/16581717?v=3","gravatar_id":"","url":"https://api.github.com/users/distributePro","html_url":"https://github.com/distributePro","followers_url":"https://api.github.com/users/distributePro/followers","following_url":"https://api.github.com/users/distributePro/following{/other_user}","gists_url":"https://api.github.com/users/distributePro/gists{/gist_id}","starred_url":"https://api.github.com/users/distributePro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distributePro/subscriptions","organizations_url":"https://api.github.com/users/distributePro/orgs","repos_url":"https://api.github.com/users/distributePro/repos","events_url":"https://api.github.com/users/distributePro/events{/privacy}","received_events_url":"https://api.github.com/users/distributePro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/distributePro/ovsrpro","description":"","fork":true,"url":"https://api.github.com/repos/distributePro/ovsrpro","forks_url":"https://api.github.com/repos/distributePro/ovsrpro/forks","keys_url":"https://api.github.com/repos/distributePro/ovsrpro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/distributePro/ovsrpro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/distributePro/ovsrpro/teams","hooks_url":"https://api.github.com/repos/distributePro/ovsrpro/hooks","issue_events_url":"https://api.github.com/repos/distributePro/ovsrpro/issues/events{/number}","events_url":"https://api.github.com/repos/distributePro/ovsrpro/events","assignees_url":"https://api.github.com/repos/distributePro/ovsrpro/assignees{/user}","branches_url":"https://api.github.com/repos/distributePro/ovsrpro/branches{/branch}","tags_url":"https://api.github.com/repos/distributePro/ovsrpro/tags","blobs_url":"https://api.github.com/repos/distributePro/ovsrpro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/distributePro/ovsrpro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/distributePro/ovsrpro/git/refs{/sha}","trees_url":"https://api.github.com/repos/distributePro/ovsrpro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/distributePro/ovsrpro/statuses/{sha}","languages_url":"https://api.github.com/repos/distributePro/ovsrpro/languages","stargazers_url":"https://api.github.com/repos/distributePro/ovsrpro/stargazers","contributors_url":"https://api.github.com/repos/distributePro/ovsrpro/contributors","subscribers_url":"https://api.github.com/repos/distributePro/ovsrpro/subscribers","subscription_url":"https://api.github.com/repos/distributePro/ovsrpro/subscription","commits_url":"https://api.github.com/repos/distributePro/ovsrpro/commits{/sha}","git_commits_url":"https://api.github.com/repos/distributePro/ovsrpro/git/commits{/sha}","comments_url":"https://api.github.com/repos/distributePro/ovsrpro/comments{/number}","issue_comment_url":"https://api.github.com/repos/distributePro/ovsrpro/issues/comments{/number}","contents_url":"https://api.github.com/repos/distributePro/ovsrpro/contents/{+path}","compare_url":"https://api.github.com/repos/distributePro/ovsrpro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/distributePro/ovsrpro/merges","archive_url":"https://api.github.com/repos/distributePro/ovsrpro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/distributePro/ovsrpro/downloads","issues_url":"https://api.github.com/repos/distributePro/ovsrpro/issues{/number}","pulls_url":"https://api.github.com/repos/distributePro/ovsrpro/pulls{/number}","milestones_url":"https://api.github.com/repos/distributePro/ovsrpro/milestones{/number}","notifications_url":"https://api.github.com/repos/distributePro/ovsrpro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/distributePro/ovsrpro/labels{/name}","releases_url":"https://api.github.com/repos/distributePro/ovsrpro/releases{/id}","deployments_url":"https://api.github.com/repos/distributePro/ovsrpro/deployments","created_at":"2016-01-12T06:43:30Z","updated_at":"2016-01-21T20:25:31Z","pushed_at":"2016-03-11T17:41:17Z","git_url":"git://github.com/distributePro/ovsrpro.git","ssh_url":"git@github.com:distributePro/ovsrpro.git","clone_url":"https://github.com/distributePro/ovsrpro.git","svn_url":"https://github.com/distributePro/ovsrpro","homepage":null,"size":8326,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2"},"html":{"href":"https://github.com/distributePro/ovsrpro/pull/2"},"issue":{"href":"https://api.github.com/repos/distributePro/ovsrpro/issues/2"},"comments":{"href":"https://api.github.com/repos/distributePro/ovsrpro/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/distributePro/ovsrpro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/distributePro/ovsrpro/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/distributePro/ovsrpro/statuses/d9e10b4e1d81652761ac382767fff629ec899815"}}}}