mirror of
https://github.com/IllusionMan1212/ndk-odin.git
synced 2026-10-24 10:12:30 +00:00
misc: update to latest odin compiler and remove android build tag
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package aaudio
|
package aaudio
|
||||||
|
|
||||||
foreign import aaudio "system:aaudio"
|
foreign import aaudio "system:aaudio"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package amidi
|
package amidi
|
||||||
|
|
||||||
foreign import amidi "system:amidi"
|
foreign import amidi "system:amidi"
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
import "core:c"
|
import "core:c"
|
||||||
import "core:sys/unix"
|
import "core:sys/posix"
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|
||||||
@@ -182,13 +181,13 @@ android_app :: struct {
|
|||||||
// -------------------------------------------------
|
// -------------------------------------------------
|
||||||
// Below are "private" implementation of the glue code.
|
// Below are "private" implementation of the glue code.
|
||||||
|
|
||||||
mutex: unix.pthread_mutex_t,
|
mutex: posix.pthread_mutex_t,
|
||||||
cond: unix.pthread_cond_t,
|
cond: posix.pthread_cond_t,
|
||||||
|
|
||||||
msgread: c.int,
|
msgread: c.int,
|
||||||
msgwrite: c.int,
|
msgwrite: c.int,
|
||||||
|
|
||||||
thread: unix.pthread_t,
|
thread: posix.pthread_t,
|
||||||
|
|
||||||
cmdPollSource: android_poll_source,
|
cmdPollSource: android_poll_source,
|
||||||
inputPollSource: android_poll_source,
|
inputPollSource: android_poll_source,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
import "core:c"
|
import "core:c"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
foreign import camerandk "system:camera2ndk"
|
foreign import camerandk "system:camera2ndk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
foreign import camerandk "system:camera2ndk"
|
foreign import camerandk "system:camera2ndk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
foreign import camerandk "system:camera2ndk"
|
foreign import camerandk "system:camera2ndk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
import "../"
|
import "../"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
acamera_metadata_section_t :: enum {
|
acamera_metadata_section_t :: enum {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
import "../"
|
import "../"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package camerandk
|
package camerandk
|
||||||
|
|
||||||
foreign import camerandk "system:camera2ndk"
|
foreign import camerandk "system:camera2ndk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
import "core:c"
|
import "core:c"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
import "core:c"
|
import "core:c"
|
||||||
@@ -283,7 +282,7 @@ JNINativeInterface :: struct {
|
|||||||
GetStringLength: #type proc "c" (jni: ^^JNINativeInterface, str: jstring) -> jsize,
|
GetStringLength: #type proc "c" (jni: ^^JNINativeInterface, str: jstring) -> jsize,
|
||||||
GetStringChars: #type proc "c" (jni: ^^JNINativeInterface, str: jstring, isCopy: ^jboolean) -> [^]jchar,
|
GetStringChars: #type proc "c" (jni: ^^JNINativeInterface, str: jstring, isCopy: ^jboolean) -> [^]jchar,
|
||||||
ReleaseStringChars: #type proc "c" (jni: ^^JNINativeInterface, str: jstring, chars: [^]jchar),
|
ReleaseStringChars: #type proc "c" (jni: ^^JNINativeInterface, str: jstring, chars: [^]jchar),
|
||||||
NewStringUTF: #type proc "c" (jni: ^^JNINativeInterface, bytes: [^]c.char) -> jstring,
|
NewStringUTF: #type proc "c" (jni: ^^JNINativeInterface, bytes: cstring) -> jstring,
|
||||||
GetStringUTFLength: #type proc "c" (jni: ^^JNINativeInterface, str: jstring) -> jsize,
|
GetStringUTFLength: #type proc "c" (jni: ^^JNINativeInterface, str: jstring) -> jsize,
|
||||||
/* JNI spec says this returns const jbyte*, but that's inconsistent */
|
/* JNI spec says this returns const jbyte*, but that's inconsistent */
|
||||||
GetStringUTFChars: #type proc "c" (jni: ^^JNINativeInterface, str: jstring, isCopy: ^jboolean) -> cstring,
|
GetStringUTFChars: #type proc "c" (jni: ^^JNINativeInterface, str: jstring, isCopy: ^jboolean) -> cstring,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
Keycode :: enum i32 {
|
Keycode :: enum i32 {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
import "core:c"
|
import "core:c"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
import "../"
|
import "../"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
import "../"
|
import "../"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
import android "../"
|
import android "../"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
foreign import mediandk "system:mediandk"
|
foreign import mediandk "system:mediandk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
import "../"
|
import "../"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
foreign import mediandk "system:mediandk"
|
foreign import mediandk "system:mediandk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
import "../"
|
import "../"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
foreign import mediandk "system:mediandk"
|
foreign import mediandk "system:mediandk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package mediandk
|
package mediandk
|
||||||
|
|
||||||
foreign import mediandk "system:mediandk"
|
foreign import mediandk "system:mediandk"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
import "core:c"
|
import "core:c"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
foreign import android "system:android"
|
foreign import android "system:android"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
//+build android
|
|
||||||
package android
|
package android
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user