Linux: Include cefsimple instead of cefclient in client distribution (issue #1916)

This commit is contained in:
Marshall Greenblatt 2016-06-07 11:27:40 -04:00
parent 76a40cafe3
commit fe9c24e307
1 changed files with 11 additions and 7 deletions

View File

@ -463,13 +463,6 @@ if (options.noreleasebuild and \
parser.print_help(sys.stderr)
sys.exit()
if (options.clientdistrib or options.clientdistribonly) and \
options.buildtarget.find('cefclient') == -1:
print "A client distribution cannot be generated if --build-target "+\
"excludes cefclient."
parser.print_help(sys.stderr)
sys.exit()
# Operating system.
if options.dryrun and options.dryrunplatform is not None:
platform = options.dryrunplatform
@ -492,6 +485,17 @@ if platform == 'windows':
else:
script_ext = '.sh'
if options.clientdistrib or options.clientdistribonly:
if platform == 'linux':
client_app = 'cefsimple'
else:
client_app = 'cefclient'
if options.buildtarget.find(client_app) == -1:
print 'A client distribution cannot be generated if --build-target '+\
'excludes %s.' % client_app
parser.print_help(sys.stderr)
sys.exit()
if options.x64build and platform != 'windows' and platform != 'macosx':
print 'The x64 build option is only used on Windows and Mac OS X.'
sys.exit()