This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Better way for creating standalone EXE files using Julia, | |
## Taken from: https://github.com/JuliaComputing/static-julia | |
## Assumptions: | |
## 1. g++ / x86_64-w64-mingw32-gcc is available and is in path | |
## 2. patchelf is in the path | |
module MinimalBuild | |
# Assumption: the application main module is in MyApplication.jl | |
# this module must export a function called julia_main that is ccallable | |
appname = "MyApplication" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__precompile__() | |
module MyModule | |
using ArgParse | |
export main | |
s = ArgParseSettings() | |
@add_arg_table s begin # this takes 1.5s! | |
"--areamin", "-n" | |
help = "Minimum area (km^2)" | |
default = 0.0 |