cross compilation

This commit is contained in:
Sebastian Hugentobler 2019-05-27 17:11:33 +02:00
parent 21c3807250
commit d5bd53089f
3 changed files with 11 additions and 441 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
*.swp
**/.idea/workspace.xml
**/.idea/tasks.xml
bin
*.exe
*.dll
*.so

View File

@ -1,437 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="5f223132-21fb-4b87-a6ba-b086fa9127d3" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bin/ecload" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/cmd/ecload/ecload" beforeDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="DefaultGradleProjectSettings">
<option name="testRunner" value="GRADLE" />
<option name="delegatedBuild" value="true" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/pkg/ecload/ecload.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="465">
<caret line="39" column="28" selection-start-line="39" selection-start-column="28" selection-end-line="39" selection-end-column="28" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/cmd/ecload/main.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="292">
<caret line="22" column="42" lean-forward="true" selection-start-line="22" selection-start-column="42" selection-end-line="22" selection-end-column="42" />
<folding>
<element signature="e#221#315#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="120">
<caret line="8" column="3" lean-forward="true" selection-start-line="8" selection-start-column="3" selection-end-line="8" selection-end-column="3" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/pkg/ecload/fetcher.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="17" column="43" selection-start-line="17" selection-start-column="43" selection-end-line="17" selection-end-column="43" />
<folding>
<element signature="e#223#314#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/pkg/ecload/pdf.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" selection-start-line="5" selection-end-line="5" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Go File" />
</list>
</option>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>exists</find>
<find>RegisterImageOptionsReader</find>
<find>downloadToFile</find>
</findStrings>
</component>
<component name="GOROOT" path="$PROJECT_DIR$/../go/go1.12.5" />
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="GoLibraries">
<option name="indexEntireGoPath" value="false" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/pkg/ecload/http.go" />
<option value="$PROJECT_DIR$/pkg/ecload/logger.go" />
<option value="$PROJECT_DIR$/cmd/ecload-gui/main.go" />
<option value="$PROJECT_DIR$/LICENSE" />
<option value="$PROJECT_DIR$/.gitignore" />
<option value="$PROJECT_DIR$/pkg/ecload/fetcher.go" />
<option value="$PROJECT_DIR$/Makefile" />
<option value="$PROJECT_DIR$/pkg/ecload/pdf.go" />
<option value="$PROJECT_DIR$/pkg/ecload/ecload.go" />
<option value="$PROJECT_DIR$/cmd/ecload/main.go" />
<option value="$PROJECT_DIR$/README.md" />
</list>
</option>
</component>
<component name="MacroExpansionManager">
<option name="directoryName" value="hGyqkpOy" />
</component>
<component name="ProjectFrameBounds">
<option name="y" value="23" />
<option name="width" value="2488" />
<option name="height" value="1417" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="ecload" type="b2602c69:ProjectViewProjectNode" />
<item name="ecload" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="ecload" type="b2602c69:ProjectViewProjectNode" />
<item name="ecload" type="462c0819:PsiDirectoryNode" />
<item name="cmd" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="ecload" type="b2602c69:ProjectViewProjectNode" />
<item name="ecload" type="462c0819:PsiDirectoryNode" />
<item name="cmd" type="462c0819:PsiDirectoryNode" />
<item name="ecload" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="ecload" type="b2602c69:ProjectViewProjectNode" />
<item name="ecload" type="462c0819:PsiDirectoryNode" />
<item name="pkg" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="ecload" type="b2602c69:ProjectViewProjectNode" />
<item name="ecload" type="462c0819:PsiDirectoryNode" />
<item name="pkg" type="462c0819:PsiDirectoryNode" />
<item name="ecload" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
</panes>
</component>
<component name="PropertiesComponent">
<property name="DefaultGoTemplateProperty" value="Go File" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="android.sdk.path" value="$USER_HOME$/Library/Android/sdk" />
<property name="configurable.Global.GOPATH.is.expanded" value="true" />
<property name="configurable.Module.GOPATH.is.expanded" value="false" />
<property name="configurable.Project.GOPATH.is.expanded" value="true" />
<property name="go.gopath.indexing.explicitly.defined" value="true" />
<property name="go.import.settings.migrated" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="settings.editor.selected.configurable" value="copyright.profiles" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="SbtLocalSettings">
<option name="projectSyncType">
<map>
<entry key="$PROJECT_DIR$/../../dev/gitsourcerepositories/dev-ding-10" value="PREVIEW" />
</map>
</option>
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="2488" height="1417" extended-state="0" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25183973" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Image Layers" order="2" />
<window_info id="Designer" order="3" />
<window_info id="Capture Tool" order="4" />
<window_info id="Favorites" order="5" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32981133" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" order="8" />
<window_info anchor="bottom" id="Terminal" order="9" visible="true" weight="0.32981133" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
<window_info anchor="bottom" id="Version Control" order="11" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Theme Preview" order="3" />
<window_info anchor="right" id="Maven" order="4" />
<window_info anchor="right" id="Cargo" order="5" />
<window_info anchor="right" id="make" order="6" />
<window_info anchor="right" id="Capture Analysis" order="7" />
<window_info anchor="right" id="Palette&#9;" order="8" />
<window_info anchor="right" id="SQL Formatter" order="9" />
<window_info anchor="right" id="Database" order="10" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="VgoProject">
<integration-enabled>true</integration-enabled>
<proxy>direct</proxy>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/gopkg.in/urfave/cli.v1@v1.20.0/help.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="283">
<caret line="172" column="5" selection-start-line="172" selection-start-column="5" selection-end-line="172" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/go.mod">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<caret line="3" selection-start-line="3" selection-end-line="3" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/github.com/jawher/mow.cli@v1.1.0/commands.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="452">
<caret line="648" column="19" selection-start-line="648" selection-start-column="10" selection-end-line="648" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/github.com/jawher/mow.cli@v1.1.0/cli.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="400">
<caret line="75" column="23" selection-start-line="75" selection-start-column="23" selection-end-line="75" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/github.com/!puerkito!bio/goquery@v1.5.0/property.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="133">
<caret line="15" column="61" selection-start-line="15" selection-start-column="55" selection-end-line="15" selection-end-column="61" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/go1.12.5/src/os/types.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="345">
<caret line="26" column="66" selection-start-line="26" selection-start-column="66" selection-end-line="26" selection-end-column="66" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/go1.12.5/src/io/ioutil/ioutil.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="317">
<caret line="97" column="19" lean-forward="true" selection-start-line="97" selection-start-column="19" selection-end-line="97" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pkg/ecload/logger.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="7" selection-start-line="7" selection-end-line="7" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/github.com/signintech/gopdf@v0.9.1/config.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="5" selection-start-line="18" selection-start-column="5" selection-end-line="18" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/github.com/signintech/gopdf@v0.9.1/page_sizes.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="13" column="4" selection-start-line="13" selection-start-column="4" selection-end-line="13" selection-end-column="4" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/github.com/signintech/gopdf@v0.9.1/gopdf.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="287">
<caret line="285" column="17" selection-start-line="285" selection-start-column="17" selection-end-line="285" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/pkg/mod/github.com/jung-kurt/gofpdf@v1.4.2/fpdf.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280">
<caret line="386" column="15" selection-start-line="386" selection-start-column="15" selection-end-line="386" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/cmd/ecload-gui/main.go" />
<entry file="file://$PROJECT_DIR$/LICENSE">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="773">
<caret line="373" selection-start-line="373" selection-end-line="373" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/go.sum">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="13" column="65" selection-start-line="13" selection-start-column="65" selection-end-line="13" selection-end-column="65" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/.gitignore">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="5" selection-start-line="10" selection-start-column="5" selection-end-line="10" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../go/go1.12.5/src/image/format.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="19" column="23" lean-forward="true" selection-start-line="19" selection-start-column="23" selection-end-line="19" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Makefile">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pkg/ecload/ecload.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="465">
<caret line="39" column="28" selection-start-line="39" selection-start-column="28" selection-end-line="39" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pkg/ecload/fetcher.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="17" column="43" selection-start-line="17" selection-start-column="43" selection-end-line="17" selection-end-column="43" />
<folding>
<element signature="e#223#314#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pkg/ecload/pdf.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" selection-start-line="5" selection-end-line="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/cmd/ecload/main.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="292">
<caret line="22" column="42" lean-forward="true" selection-start-line="22" selection-start-column="42" selection-end-line="22" selection-end-column="42" />
<folding>
<element signature="e#221#315#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="120">
<caret line="8" column="3" lean-forward="true" selection-start-line="8" selection-start-column="3" selection-end-line="8" selection-end-column="3" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="Copyright.UI">
<settings>
<last-edited>MPL-2.0</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

View File

@ -1,7 +1,13 @@
bin/ecload:
go build -o bin/ecload cmd/ecload/main.go
all: bin/ecload
all: bin/ecload bin/ecload.exe bin/ecload-mac
clean:
rm -r bin/
bin/ecload:
GOOS=linux GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go
bin/ecload.exe:
GOOS=windows GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go
bin/ecload-mac:
GOOS=darwin GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go