Update Android example

extensions
Volodymyr Shymanskyy 5 years ago
parent b0b23ea171
commit bad6e1cb41

@ -1,9 +1,9 @@
cmake_minimum_required(VERSION 3.4.1)
add_definitions(-DANDROID -Wno-format-security -O3
-Dd_m3AllocateLinearMemory=1
#-fno-optimize-sibling-calls
-fstrict-aliasing -flto -fno-fat-lto-objects)
-fomit-frame-pointer -fno-stack-check -fno-stack-protector
-fstrict-aliasing -flto)
file(GLOB M3_SRC FOLLOW_SYMLINKS "m3/*.c" "*.c")

@ -49,12 +49,12 @@ void run_wasm()
int main()
{
printf("wasm3 on Android (" M3_ARCH ")\n");
printf("wasm3 v" M3_VERSION " on Android (" M3_ARCH ")\n");
printf("Build " __DATE__ " " __TIME__ "\n");
clock_t start = clock();
run_wasm();
clock_t end = clock();
printf("Elapsed: %d ms\n", (end - start)*1000 / CLOCKS_PER_SEC);
printf("Elapsed: %ld ms\n", (end - start)*1000 / CLOCKS_PER_SEC);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@android:color/black" />
<foreground android:drawable="@drawable/ic_launcher" />
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1011 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Loading…
Cancel
Save