41 #include <android/log.h>
50 #define main wrapped_main
51 int wrapped_main(
int argc,
char** argv);
53 extern "C" void android_main(
struct android_app* app);
56 static const char* cmdline =
"geogram";
57 static const char* argv[] = {
62 void android_main(
struct android_app* app) {
63 __android_log_print(ANDROID_LOG_VERBOSE,
"GEOGRAM",
"Initializing");
65 __android_log_print(ANDROID_LOG_VERBOSE,
"GEOGRAM",
"Set android app");
66 GEO::CmdLine::set_android_app(app);
67 __android_log_print(ANDROID_LOG_VERBOSE,
"GEOGRAM",
"Calling main()");
68 wrapped_main(argc, (
char**)argv);
Functions to parse and store command line arguments.
void initialize(int flags=GEOGRAM_INSTALL_NONE)
Initialize Geogram.