272
edits
Hamzaalloush (talk | contribs) (→MXE: === Applying Patches ===) |
|||
| Line 153: | Line 153: | ||
{{Main article|http://mxe.cc/#creating-packages Creating mxe packages}} | {{Main article|http://mxe.cc/#creating-packages Creating mxe packages}} | ||
=== Applying Patches === | |||
MXE patches are written in the git-format-patch style, there is a useful tool for automatic patch generation to this style: | |||
<syntaxhighlight lang="bash"> | |||
cd mxe/ | |||
./tools/patch-tool-mxe init fgfs # this will download, extract and initialize package as a git repository into the mxe/gits directory. | |||
cd gits/fgfs-version | |||
# make changes here | |||
git commit -a # commit your changes and descibe them | |||
../tools/patch-tool-mxe export fgfs 1-patchname | |||
</syntaxhighlight> | |||
this will automatically write your patches in git format, and apply them to the /src directory, so they become src/fgfs-1-patchname, and are applied before compilation. | |||
=== Project inspiration === | === Project inspiration === | ||
edits