{"id":13755108,"url":"https://github.com/zyantific/ida-cmake","last_synced_at":"2025-05-10T00:31:34.945Z","repository":{"id":80705356,"uuid":"89610351","full_name":"zyantific/ida-cmake","owner":"zyantific","description":"IDA plugin CMake build-script","archived":true,"fork":false,"pushed_at":"2018-06-26T14:41:42.000Z","size":17,"stargazers_count":37,"open_issues_count":2,"forks_count":23,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-02-12T15:19:37.296Z","etag":null,"topics":["build-script","cmake","ida","plugin"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyantific.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-27T15:05:23.000Z","updated_at":"2023-11-25T14:28:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"86b9433b-288a-4f39-af59-4616c67c89cf","html_url":"https://github.com/zyantific/ida-cmake","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyantific%2Fida-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyantific%2Fida-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyantific%2Fida-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyantific%2Fida-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyantific","download_url":"https://codeload.github.com/zyantific/ida-cmake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253346488,"owners_count":21894264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-script","cmake","ida","plugin"],"created_at":"2024-08-03T10:00:45.872Z","updated_at":"2025-05-10T00:31:34.637Z","avatar_url":"https://github.com/zyantific.png","language":"CMake","funding_links":[],"categories":["\u003ca id=\"c08ebe5b7eec9fc96f8eff36d1d5cc7d\"\u003e\u003c/a\u003e辅助脚本编写","CMake"],"sub_categories":["\u003ca id=\"45fd7cfce682c7c25b4f3fbc4c461ba2\"\u003e\u003c/a\u003e未分类"],"readme":"IDA plugin CMake build-script\n=============================\n\nThis repository holds CMake build scripts and a Python helper allowing \ncompilation of C++ IDA plugins for Windows, macOS and Linux without\nmuch user effort.\n\n## Simple plugin example usage:\n\n##### Create plugin repo\n```bash\ngit init myplugin\ncd myplugin\ngit submodule add https://github.com/zyantific/ida-cmake.git ida-cmake\nmkdir src\ntouch src/myplugin.cpp CMakeLists.txt\n```\n\n##### CMakeLists.txt\n```CMake\ncmake_minimum_required(VERSION 3.1)\nproject(myplugin)\n\ninclude(\"ida-cmake/cmake/IDA.cmake\")\n\nset(sources \"src/myplugin.cpp\")\nadd_ida_plugin(${CMAKE_PROJECT_NAME} ${sources})\n```\n\n##### src/myplugin.cpp\n```cpp\n#include \u003cida.hpp\u003e\n#include \u003cidp.hpp\u003e\n#include \u003cloader.hpp\u003e\n\n/**\n * @brief   Initialization callback for IDA.\n * @return  A @c PLUGIN_ constant from loader.hpp.\n */\nint idaapi init()\n{\n    msg(\"%s\", \"Hello, IDA plugin world!\\n\");\n    return PLUGIN_KEEP;\n}\n\n/**\n * @brief   Run callback for IDA.\n */\nvoid idaapi run(int /*arg*/) {}\n\n/**\n * @brief   Shutdown callback for IDA.\n */\nvoid idaapi term() {}\n\nplugin_t PLUGIN =\n{\n    IDP_INTERFACE_VERSION,\n    0,\n    \u0026init,\n    \u0026term,\n    \u0026run,\n    \"My plugin name\",\n    \"My plugin description\",\n    \"My plugin menu entry text\",\n    nullptr, // plugin hotkey, e.g. \"Ctrl-Shift-A\"\n};\n```\n\n##### Building and installing the plugin for IDA 6.95 on macOS\n```bash\nida-cmake/build.py -i \u003cida-sdk-path\u003e -t 6.95 \\\n    --idaq-path '/Applications/IDA Pro 6.95.app/Contents/MacOS/'\n```\nSubstitute `\u003cida-sdks-path\u003e` with a directory of the IDA SDK corresponding to your IDA version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyantific%2Fida-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyantific%2Fida-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyantific%2Fida-cmake/lists"}