lib: add user-declared annotations on some modules
authorJean Privat <jean@pryen.org>
Thu, 31 Jul 2014 05:38:12 +0000 (01:38 -0400)
committerJean Privat <jean@pryen.org>
Mon, 4 Aug 2014 16:20:10 +0000 (12:20 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/android/platform.nit
lib/app.nit
lib/java.nit
lib/serialization.nit

index 9b8b189..dab001d 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-module platform is platform("android")
+module platform is
+       platform("android")
+       new_annotation java_package
+       new_annotation min_api_version
+       new_annotation max_api_version
+       new_annotation target_api_version
+       new_annotation android_manifest
+end
 
 import java
 import app
index 7ee9493..5d0a1fd 100644 (file)
 #
 # The features offered by this modules are common to all platforms, but
 # may not be available on all devices.
-module app
+module app is
+       new_annotation app_name
+       new_annotation app_version
+end
 
 # App subclasses are cross-platform applications
 #
index fb3025e..1f7755b 100644 (file)
@@ -29,6 +29,7 @@
 module java is
        c_compiler_option("-I $(JAVA_HOME)/include/")
        c_linker_option("-L $(JNI_LIB_PATH) -ljvm")
+       new_annotation extra_java_files
 end
 
 import jvm
index a87211f..8a1d1ee 100644 (file)
@@ -15,7 +15,9 @@
 # limitations under the License.
 
 # Offers services to serialize a Nit objects to different persistent formats
-module serialization
+module serialization is
+       new_annotation auto_serializable
+end
 
 # Abstract serialization service to be sub-classed by specialized services.
 interface Serializer