{"id":20575750,"url":"https://github.com/warmist/file_to_obj","last_synced_at":"2025-06-22T20:35:17.353Z","repository":{"id":141387160,"uuid":"147719704","full_name":"warmist/file_to_obj","owner":"warmist","description":"Converts any file to linkable x64 obj file for msvc. This way you don't need to compile C file (e.g. from xd) and you dont need to mess with resource files etc...","archived":false,"fork":false,"pushed_at":"2019-10-28T09:05:31.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T10:55:53.075Z","etag":null,"topics":["linking","msvc","programming","utility"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/warmist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-06T18:56:56.000Z","updated_at":"2019-10-28T09:05:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b51df72-9e7d-4a33-9391-40414998905d","html_url":"https://github.com/warmist/file_to_obj","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/warmist/file_to_obj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warmist%2Ffile_to_obj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warmist%2Ffile_to_obj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warmist%2Ffile_to_obj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warmist%2Ffile_to_obj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warmist","download_url":"https://codeload.github.com/warmist/file_to_obj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warmist%2Ffile_to_obj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261363300,"owners_count":23147537,"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":["linking","msvc","programming","utility"],"created_at":"2024-11-16T05:43:17.701Z","updated_at":"2025-06-22T20:35:12.306Z","avatar_url":"https://github.com/warmist.png","language":"C++","readme":"# file_to_obj\nConverts any file to linkable x64 obj file for msvc. This way you don't need to compile C file (e.g. from xd) and you dont need to mess with resource files etc...\n\n# Usage\n\nFor use with cmake:\n* Put the included (in assets dir) `EmbedFileFTO.cmake` into your `CMAKE_MODULE_PATH`\n* `include(\"cmake/EmbedFileFTO.cmake\")` somewhere in your `cmakelists.txt`\n* `embed_file( \u003cLIST OF FILES TO EMBED\u003e )`\n* add to `add_executable(...)` optionaly: `${EMBEDDED_HDRS}` and mandatory: `${EMBEDDED_LIBS}`\n* `include_directories(${PROJECT_BINARY_DIR})` because i forget if it already looks for headers there?\n* in your cpp file `#include \"\u003cEMBEDED FILE NAME\u003e.hpp\"` and it will contain: `EMB_FILE_\u003cFILE NAME\u003e` and `EMB_FILE_SIZE_\u003cFILE NAME\u003e`\n* Have fun!\n\n# WHY?\n\nNot sure... Probably sanity is getting low... And i liked the `ld` having that power and basically alternatives: [here](https://stackoverflow.com/questions/4864866/c-c-with-gcc-statically-add-resource-files-to-executable-library)\n\n# Resources\n\n* https://docs.microsoft.com/en-us/windows/desktop/Debug/pe-format\n* http://www.delorie.com/djgpp/doc/coff/\n* https://www.agner.org/optimize/calling_conventions.pdf\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarmist%2Ffile_to_obj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarmist%2Ffile_to_obj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarmist%2Ffile_to_obj/lists"}