<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Docker on Canoi Gomes</title>
    <link>https://notes.canoigomes.com.br/tags/docker/</link>
    <description>Recent content in Docker on Canoi Gomes</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>pt-br</language>
    <managingEditor>canoigomes@proton.me (Canoi Gomes)</managingEditor>
    <webMaster>canoigomes@proton.me (Canoi Gomes)</webMaster>
    <lastBuildDate>Wed, 20 Aug 2025 13:28:00 -0300</lastBuildDate><atom:link href="https://notes.canoigomes.com.br/tags/docker/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Compilando projetos multiplataforma com Docker</title>
      <link>https://notes.canoigomes.com.br/posts/2025-08-20-compilando-multiplataforma-com-docker/</link>
      <pubDate>Wed, 20 Aug 2025 13:28:00 -0300</pubDate>
      <author>canoigomes@proton.me (Canoi Gomes)</author>
      <guid>https://notes.canoigomes.com.br/posts/2025-08-20-compilando-multiplataforma-com-docker/</guid>
      
      <description>&lt;p&gt;Esses dias voltei a fazer alguns experimentos com o Docker para compilação multiplataforma da &lt;a href=&#34;https://codeberg.org/canoi12/selene&#34;&gt;selene&lt;/a&gt;, principalmente para Android e Emscripten.&lt;/p&gt;
&lt;p&gt;Atualmente uso alguns scripts de CMake auxiliares para fazer o Setup desses ambientes, tanto no Linux, quanto no Windows. Alio isso ao uso de toolchains para facilitar o processo, faço algo como:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cmake -P ./cmake/scripts/SetupEmscripten.cmake
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cmake -S $SOURCE_DIR -B $BUILD_DIR -DCMAKE_BUILD_TYPE&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;Release -DCMAKE_TOOLCHAIN_FILE&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;cmake/toolchains/Emscripten.cmake
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cmake --build $BUILD_DIR --target package --config Release
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Para empacotar para Emscripten, por exemplo. Para Android é parecido, porém uso o &lt;code&gt;gradle&lt;/code&gt; para gerar o APK final, e no Linux também gosto de empacotar e distribuir como &lt;code&gt;AppImage&lt;/code&gt;.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
