android-project/AndroidManifest.xml
author Sam Lantinga <slouken@libsdl.org>
Sun, 10 Sep 2017 10:30:25 -0700
changeset 11488 998f992b03ed
parent 11238 c728c661cec7
permissions -rw-r--r--
Fixed bug 3811 - change HAVE_COPYSIGN to HAVE__COPYSIGN in SDL_config_windows.h

Ozkan Sezer

The patch below changes HAVE_COPYSIGN macro in SDL_config_windows.h to
HAVE__COPYSIGN, so that _copysign() can be used in SDL_stdlib.h which
is available in many more windows-targeting toolchains such as MinGW,
MSVC >= 6, etc, and not just MSVC >= 2013. SDL_stdlib.c already has a
specific check for HAVE__COPYSIGN, so I believe this is reasonable.
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <!-- Replace org.libsdl.app with the identifier of your game below, e.g.
     3      com.gamemaker.game
     4 -->
     5 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     6       package="org.libsdl.app"
     7       android:versionCode="1"
     8       android:versionName="1.0"
     9       android:installLocation="auto">
    10 
    11     <!-- Android 2.3.3 -->
    12     <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />
    13 
    14     <!-- OpenGL ES 2.0 -->
    15     <uses-feature android:glEsVersion="0x00020000" />
    16 
    17     <!-- Allow writing to external storage -->
    18     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    19     <!-- Allow access to the vibrator -->
    20     <uses-permission android:name="android.permission.VIBRATE" />
    21 
    22     <!-- if you want to capture audio, uncomment this. -->
    23     <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
    24 
    25     <!-- Create a Java class extending SDLActivity and place it in a
    26          directory under src matching the package, e.g.
    27          	src/com/gamemaker/game/MyGame.java
    28 
    29          then replace "SDLActivity" with the name of your class (e.g. "MyGame")
    30          in the XML below.
    31 
    32          An example Java class can be found in README-android.md
    33     -->
    34     <application android:label="@string/app_name"
    35                  android:icon="@drawable/ic_launcher"
    36                  android:allowBackup="true"
    37                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    38                  android:hardwareAccelerated="true" >
    39         <activity android:name="SDLActivity"
    40                   android:label="@string/app_name"
    41                   android:configChanges="keyboardHidden|orientation|screenSize"
    42                   >
    43             <intent-filter>
    44                 <action android:name="android.intent.action.MAIN" />
    45                 <category android:name="android.intent.category.LAUNCHER" />
    46             </intent-filter>
    47             <!-- Drop file event -->
    48             <!--
    49             <intent-filter>
    50                 <action android:name="android.intent.action.VIEW" />
    51                 <category android:name="android.intent.category.DEFAULT" />
    52                 <data android:mimeType="*/*" />
    53             </intent-filter>
    54             -->
    55         </activity>
    56     </application>
    57 
    58 </manifest>