Difference between revisions of "Development/Tutorials/Necessitas/Assets"

Jump to: navigation, search
(Android assets)
(Define assets)
Line 2: Line 2:
 
Android assets are read-only arbitrary files bundled in their raw form into your package.Necessitas project provides seamless integration with android assets, meaning that you can access any asset files as you access any ordinary files.
 
Android assets are read-only arbitrary files bundled in their raw form into your package.Necessitas project provides seamless integration with android assets, meaning that you can access any asset files as you access any ordinary files.
  
=== Define assets ===
+
=== Deploy assets ===
 
+
<syntaxhighlight lang="make">
 +
# assuming we want to deploy qml/foo/main.qml file
 +
delployment.files=qml/foo/main.qml
 +
android { #define an android block
 +
    delployment.path=/assets
 +
} else : symbian {
 +
    delployment.path=/opt/$${TARGET}
 +
}
 +
INSTALLS += delployment
 +
</syntaxhighlight>
  
 
=== Access assets ===
 
=== Access assets ===

Revision as of 11:47, 30 October 2011

Android assets

Android assets are read-only arbitrary files bundled in their raw form into your package.Necessitas project provides seamless integration with android assets, meaning that you can access any asset files as you access any ordinary files.

Deploy assets

# assuming we want to deploy qml/foo/main.qml file
delployment.files=qml/foo/main.qml
android { #define an android block
    delployment.path=/assets
} else : symbian {
    delployment.path=/opt/$${TARGET}
}
INSTALLS += delployment

Access assets


Content is available under Creative Commons License SA 4.0 unless otherwise noted.