Open main menu

Difference between revisions of "Compiling ScummVM/WebOS"

Updated build instructions
m (Added compiler options for Pixi support.)
(Updated build instructions)
Line 165: Line 165:
./configure \
./configure \
       --host=webos \
       --host=webos \
      --prefix=/media/cryptofs/apps/usr/palm/applications/com.github.kayahr.scummvm \
       --enable-plugins \
       --enable-plugins \
      --default-dynamic \
      --enable-release \
       --enable-zlib \
       --enable-zlib \
       --enable-tremor \
       --enable-tremor \
Line 173: Line 174:
make
make
</syntaxhighlight>
</syntaxhighlight>
The specified prefix must match the base app id as used when building the WebOS package.


== Building the WebOS package ==
== Building the WebOS package ==


This builds a release package:
In the simplest case just type this:


<syntaxhighlight type="bash">
<syntaxhighlight type="bash">
make webosrelease BASE_APP_ID=com.github.kayahr VER_PACKAGE=1
make package
</syntaxhighlight>
</syntaxhighlight>


This builds a beta package:
This creates a release package in the ''portdist'' directory under the current working directory.
 
You can specify a custom destination dir if needed:


<syntaxhighlight type="bash">
<syntaxhighlight type="bash">
make webosbeta BASE_APP_ID=com.github.kayahr VER_PACKAGE=1
make package DIST=/tmp/webos
</syntaxhighlight>
</syntaxhighlight>


After this the IPK file can be found in the root directory of ScummVM.
== Distributing on App Catalog ==
 
=== Increasing the package version ===
 
''VER_PACKAGE'' in ''backends/platforms/webos/webos.mk'' must be set to a number which is higher than the currently used package version in the app catalog.  So when creating an updated package for ScummVM 1.3.9 and the current ScummVM package in the app catalog is version 1.3.0902 then you must set VER_PACKAGE to 3 to create the ScummVM package with version 1.3.0903.  Yeah, I know that's ugly but WebOS package version numbers are restricted to three numeric components.
 
=== App ID and name ===
 
As long as Palm doesn't support Team-maintained apps the uploaded packages '''must not''' be packaged with the default ''org.scummvm'' base id.  Instead apps must be uploaded with a user-specific base id.  A good practice is using the github user as base id: ''com.github.<username>''.  It is also necessary to use a user-specific app name when submitting the created package to the Palm app catalog because the app name must be unique.  Use ''ScummVM (<username>)'' instead of ''ScummVM'' and ''ScummVM Beta (<username>)'' instead of ''ScummVM Beta''.
 
The app id is automatically parsed from the installation prefix. So add a configure parameter like this to prepare a build of a package for the Palm App Catalog:
 
<syntaxhighlight type="bash">
--prefix=/media/cryptofs/apps/usr/palm/applications/com.github.kayahr.scummvm
</syntaxhighlight>


The specified package version must be higher than the one which is currently submitted to the Palm App Catalog.
To build a package for the Palm Beta App Catalog add "-beta" to the prefix:


The base app id must be a developer-specific id becaues Palm currently doesn't support team-maintained packages. When no base app id is specified then it defaults to ''org.scummvm''.
<syntaxhighlight type="bash">
--prefix=/media/cryptofs/apps/usr/palm/applications/com.github.kayahr.scummvm-beta
</syntaxhighlight>
40

edits