Source

pygame / symbian / SConscript.app.py

"""This is the build recipe for the pygame launcher application"""

from scons_symbian import *

# Import all from main SConstruct
Import("*")

python_includes = [ PYTHON_INCLUDE ]

pygame_rss = File("app/pygame.rss")
pygame_reg_rss = File( "app/pygame_reg.rss")

SymbianProgram( "pygame", TARGETTYPE_EXE,
                resources = [pygame_rss, pygame_reg_rss],
                sources = ["app/pygame_app.cpp", 
                           "app/pygame_main.cpp"                           
                           ],
                includes = ["app", "common",
                            join( "deps", "SDL", "include"),                              
                            join( "deps", "SDL", "symbian", "inc"),
                            C_INCLUDE ] + python_includes
                            
                ,
                defines = [
                    #"__LOGMAN_ENABLED__", 
                ],
                libraries = C_LIBRARY + ["euser", "avkon", "apparc", 
                             "cone","eikcore", "libGLES_CM", 
                             "bafl", # arrays and command line                            
                             PYTHON_LIB_NAME,
                             SDL_DLL_NAME,
                             "pygame.lib",
                             'pygame_libjpeg',
                             #"LogMan"
                             ],
                uid3=UID_PYGAMEAPP,
                icons = [ ("../lib/pygame_icon.svg", "pygame") ],
                package=PACKAGE_NAME,
                capabilities = CAPABILITIES,
                # 100k, 4MB
                epocheapsize = ( 0x19000, 0x400000 ),
                epocstacksize = 0x14000,
                winscw_options = "-w noempty",
)

# Install pygame app resources
from glob import glob

def doPackage(**kwargs):
    kwargs["source"] = abspath( kwargs["source"] )
    #kwargs["target"] = abspath( kwargs["target"] )
    ToPackage( package = PACKAGE_NAME, **kwargs )


doPackage( source = "app/pygame_main.py", target = "data/pygame", 
           dopycompile=False )
doPackage( source = "app/launcher/pygame_launcher.py", target = "data/pygame/launcher", 
           dopycompile=False )
doPackage( source = "app/apps/liquid_s60.py", target = "data/pygame/apps", 
           dopycompile=False )
doPackage( source = "app/launcher/logo.jpg", target = "data/pygame/launcher" )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.