diff --git a/project/java/Accelerometer.java b/project/java/Accelerometer.java index 4c4c44a26..c068105ca 100644 --- a/project/java/Accelerometer.java +++ b/project/java/Accelerometer.java @@ -1,4 +1,14 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. +*/ + package net.sourceforge.clonekeenplus; import android.app.Activity; diff --git a/project/java/Audio.java b/project/java/Audio.java index a12682a46..0dbd4833f 100644 --- a/project/java/Audio.java +++ b/project/java/Audio.java @@ -1,4 +1,14 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. +*/ + package net.sourceforge.clonekeenplus; diff --git a/project/java/DataDownloader.java b/project/java/DataDownloader.java index 5ce61580d..2e0f78ec9 100644 --- a/project/java/DataDownloader.java +++ b/project/java/DataDownloader.java @@ -1,4 +1,14 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. +*/ + package net.sourceforge.clonekeenplus; import android.app.Activity; diff --git a/project/java/GLSurfaceView_SDL.java b/project/java/GLSurfaceView_SDL.java index eec731f61..6a2ed0e63 100644 --- a/project/java/GLSurfaceView_SDL.java +++ b/project/java/GLSurfaceView_SDL.java @@ -15,9 +15,8 @@ */ /* This is GLSurfaceView class ripped out of Android 2.1 sources, - fixed with a hammer and rasp to work with libSDL port */ + fixed with a hammer to work with libSDL port */ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount package net.sourceforge.clonekeenplus; import java.io.Writer; diff --git a/project/java/Globals.java b/project/java/Globals.java index 6bb1cff72..798ba0a72 100644 --- a/project/java/Globals.java +++ b/project/java/Globals.java @@ -1,4 +1,14 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount anywhere +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. +*/ + package net.sourceforge.clonekeenplus; import android.app.Activity; diff --git a/project/java/Keycodes.java b/project/java/Keycodes.java index 106b8c42d..f8cef3291 100644 --- a/project/java/Keycodes.java +++ b/project/java/Keycodes.java @@ -1,4 +1,14 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount anywhere +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. +*/ + package net.sourceforge.clonekeenplus; import java.lang.String; diff --git a/project/java/MainActivity.java b/project/java/MainActivity.java index 624c72286..6d9b7d55c 100644 --- a/project/java/MainActivity.java +++ b/project/java/MainActivity.java @@ -1,4 +1,14 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. +*/ + package net.sourceforge.clonekeenplus; import android.app.Activity; diff --git a/project/java/Settings.java b/project/java/Settings.java index b73ce77c6..bdcc2cc60 100644 --- a/project/java/Settings.java +++ b/project/java/Settings.java @@ -1,4 +1,32 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + There is a license exception for this particular file (Settings.java) - + you may modify it as you wish without releasing source code, + as long as the libraries in the binary package you're distributing + (typically libapplication.so and other closed-source libraries in your .apk file) + can be linked and executed without error against the SDL compiled + from the original source code. This implies that you may not modify Java-to-C + interface, otherwise you have to publish the source code with your changes. + + This exception is here to permit you to replace a rather awkward SDL startup config dialog + with your own user-friendly version, possibly with lesser options and some help on them. + Also you may put your own logo in the startup screen instead of the "Powered by SDL" logo. + + You may modify other Java files if needed to implement your custom startup config dialog + without publishing the source code, to a reasonable extent of course - if your modification + will make SDL work better, faster or more stable beyond the startup config dialog - + you still have to publish the source code with such change (and I don't care about + changes which will make SDL work worse, slower or less stable, you may keep them). +*/ + package net.sourceforge.clonekeenplus; import android.app.Activity; diff --git a/project/java/Video.java b/project/java/Video.java index 853185c84..cd482cfbf 100644 --- a/project/java/Video.java +++ b/project/java/Video.java @@ -1,4 +1,14 @@ -// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount +/* + SDL - Simple DirectMedia Layer + Copyright (C) 1997-2011 Sam Lantinga + Java source code (C) 2009-2011 Sergii Pylypenko + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. +*/ + package net.sourceforge.clonekeenplus; import javax.microedition.khronos.opengles.GL10; diff --git a/readme.txt b/readme.txt index 439565d34..53bb4c12c 100644 --- a/readme.txt +++ b/readme.txt @@ -1,4 +1,4 @@ -This is libSDL 1.2 and 1.3 ported to Google Android (also bunch of other libs included). +This is SDL 1.2 and 1.3 ported to Google Android (also bunch of other libs included). The libsdl.org now has an official SDL 1.3 Android port, which supports ABGR8888 pixel format and creating GLES2 context. This port supports only GLES version 1 and 16-bit pixel format, focused mainly on SDL 1.2, and won't keep updating with SDL 1.3 from libsdl.org. @@ -35,7 +35,7 @@ It's designed for 320x240, so if you have smaller screen it will be resized. The game enforces horizontal screen orientation, you may slide-open your keyboard if you have it and use it for additional keys - the device will just keep current screen orientation. -Recent Android phone models like HTC Evo have no keyboard at all, on-screen keyboard built into libSDL +Recent Android phone models like HTC Evo have no keyboard at all, on-screen keyboard built into SDL is available for such devices - it has joystick (which can be configured as arrow buttons or analog joystick), and 6 configurable keys, full text input is toggled with 7-th key. Both user and application may redefine button layout and returned keycodes, and also toggle full text input - see SDL_screenkeyboard.h. @@ -335,10 +335,29 @@ while heap memory limit on most phones is 24 Mb. License information =================== -The libSDL port itself is licensed under LGPL, so you may use it for commercial app without releasing sources, -however you'll have to release the file AndroidAppSettings.cfg to allow linking newer version of libSDL with -your compiled application, as LGPL requires. -It contains separate libraries under project/jni, each of which has it's own license, +The SDL port itself is licensed under LGPL, so you may use it for commercial purposes +without releasing source code, however to fullfill LGPL requirementsyou'll have to publish +the file AndroidAppSettings.cfg to allow linking other version of SDL with the libraries +in the binary package you're distributing - typically libapplication.so and other +closed-source libraries in your .apk file. + +There is a license exception for a file project/java/Settings.java: +you may modify it as you wish without releasing source code, +as long as your binary package can be linked and executed without error against the SDL compiled +from the original source code. This implies that you may not modify Java-to-C +interface, otherwise you have to publish the source code with your changes. + +This exception is here to permit you to replace a rather awkward SDL startup config dialog +with your own user-friendly version, possibly with lesser options and some help on them. +Also you may put your own logo in the startup screen instead of the "Powered by SDL" logo. + +You may modify other Java files if needed to implement your custom startup config dialog +without publishing the source code, to a reasonable extent of course - if your modification +will make SDL work better, faster or more stable beyond the startup config dialog - +you still have to publish the source code with such change (and I don't care about +changes which will make SDL work worse, slower or less stable, you may keep them). + +The libraries under project/jni, each of which has it's own license, I've tried to compile all LGPL-ed libs as shared libs but you should anyway inspect the licenses of the libraries you're linking to if you're creating closed-source app. libmad and liblzo2 are licensed under GPL, so if you're planning to make commercial app you should avoid