diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 17:35:35 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 17:35:35 +0000 |
commit | c04558992dcba248ff8477021addf14b3b5b74f6 (patch) | |
tree | 7908abf3a882071017f2681c3fb97b8bd8d340e4 /gears/SConscript.browser | |
parent | 9333f1812b353233e6c492a6dfe7efb3a03717a3 (diff) | |
download | chromium_src-c04558992dcba248ff8477021addf14b3b5b74f6.zip chromium_src-c04558992dcba248ff8477021addf14b3b5b74f6.tar.gz chromium_src-c04558992dcba248ff8477021addf14b3b5b74f6.tar.bz2 |
First pass at adding support for building Android via scons.
Review URL: http://codereview.chromium.org/13644
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript.browser')
-rw-r--r-- | gears/SConscript.browser | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/gears/SConscript.browser b/gears/SConscript.browser index f622603..fab0166 100644 --- a/gears/SConscript.browser +++ b/gears/SConscript.browser @@ -218,6 +218,20 @@ if not env['OFFICIAL_BUILD']: 'jpeg-gears', ]) +if env['OS'] == 'android': + env.Append(LIBS = [ + 'mozjs-gears', + ]) + env.FilterOut(LIBS = [ + 'googleurl-gears', + 'sqlite-gears', + 'portaudio', + 'png-gears', + 'zlib-gears', + 'jpeg-gears', + 'gd', + ]) + if env['BROWSER'] == 'IE': if env['OS'] == 'win32': env.Append( @@ -308,15 +322,16 @@ elif env['BROWSER'] in ['FF2', 'FF3']: FF3_LIBS = ['xpcomglue_s'], ) elif env['BROWSER'] == 'NPAPI': - env.Append( - LIBS = [ - 'delayimp.lib', - 'comdlg32.lib', - ], - SHLINKFLAGS = [ - '/DELAYLOAD:"comdlg32.dll"', - ], - ) + if env['OS'] == 'win32': + env.Append( + LIBS = [ + 'delayimp.lib', + 'comdlg32.lib', + ], + SHLINKFLAGS = [ + '/DELAYLOAD:"comdlg32.dll"', + ], + ) # Building resources. @@ -429,12 +444,13 @@ for src in GetInputs('$BROWSER_IDLSRCS'): if env['BROWSER'] in ['FF2', 'FF3']: outputs['MODULE_TYPELIB'] = env.XptLink('gears.xpt', xptsrcs) -# genfiles/%.res: %.rc -env.Append(BROWSER_SHLINKSRCS = [ - [env_res.RES( - *PatternRule('$GENFILES_DIR/${SOURCE.filebase}.res', src)) - for src in GetInputs('$BROWSER_RESSRCS')] -]) +if env_res: + # genfiles/%.res: %.rc + env.Append(BROWSER_SHLINKSRCS = [ + [env_res.RES( + *PatternRule('$GENFILES_DIR/${SOURCE.filebase}.res', src)) + for src in GetInputs('$BROWSER_RESSRCS')] + ]) # TODO: figure out why the .rc scanner doesn't notice these dependencies. if env['OS'] in ['win32', 'wince'] and env['BROWSER'] in ['NPAPI', 'IE']: |