2011-09-27 17:02:08 +02:00
|
|
|
# Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
|
|
|
# reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
# can be found in the LICENSE file.
|
|
|
|
|
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'chromium_code': 1,
|
2011-10-03 12:25:14 +02:00
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="mac"', {
|
|
|
|
# Don't use clang with CEF binary releases due to Chromium tree structure dependency.
|
|
|
|
'clang': 0,
|
2011-11-08 18:35:59 +01:00
|
|
|
}]
|
2011-10-03 12:25:14 +02:00
|
|
|
]
|
2011-09-27 17:02:08 +02:00
|
|
|
},
|
|
|
|
'includes': [
|
|
|
|
# Bring in the source file lists for cefclient.
|
2011-12-23 18:36:30 +01:00
|
|
|
'cef_paths2.gypi',
|
2011-09-27 17:02:08 +02:00
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'cefclient',
|
|
|
|
'type': 'executable',
|
2011-10-03 12:25:14 +02:00
|
|
|
'mac_bundle': 1,
|
2011-09-27 17:02:08 +02:00
|
|
|
'msvs_guid': '6617FED9-C5D4-4907-BF55-A90062A6683F',
|
|
|
|
'dependencies': [
|
|
|
|
'libcef_dll_wrapper',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'USING_CEF_SHARED',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(includes_common)',
|
2011-12-23 18:36:30 +01:00
|
|
|
'<@(includes_wrapper)',
|
2011-09-27 17:02:08 +02:00
|
|
|
'<@(cefclient_sources_common)',
|
|
|
|
],
|
2011-10-03 12:25:14 +02:00
|
|
|
'mac_bundle_resources': [
|
|
|
|
'<@(cefclient_bundle_resources_mac)',
|
|
|
|
],
|
|
|
|
'mac_bundle_resources!': [
|
|
|
|
# TODO(mark): Come up with a fancier way to do this (mac_info_plist?)
|
|
|
|
# that automatically sets the correct INFOPLIST_FILE setting and adds
|
|
|
|
# the file to a source group.
|
|
|
|
'cefclient/mac/Info.plist',
|
|
|
|
],
|
|
|
|
'xcode_settings': {
|
|
|
|
'INFOPLIST_FILE': 'cefclient/mac/Info.plist',
|
|
|
|
# Target build path.
|
|
|
|
'SYMROOT': 'xcodebuild',
|
|
|
|
},
|
2011-09-27 17:02:08 +02:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
# Set /SUBSYSTEM:WINDOWS.
|
|
|
|
'SubSystem': '2',
|
|
|
|
'EntryPointSymbol' : 'wWinMainCRTStartup',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lcomctl32.lib',
|
|
|
|
'-lshlwapi.lib',
|
|
|
|
'-lrpcrt4.lib',
|
|
|
|
'-lopengl32.lib',
|
|
|
|
'-lglu32.lib',
|
|
|
|
'-llib/$(ConfigurationName)/libcef.lib'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'sources': [
|
|
|
|
'<@(includes_win)',
|
|
|
|
'<@(cefclient_sources_win)',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'OS=="mac"', {
|
2011-10-03 12:25:14 +02:00
|
|
|
'product_name': 'cefclient',
|
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
# Add library dependencies to the bundle.
|
|
|
|
'destination': '<(PRODUCT_DIR)/cefclient.app/Contents/MacOS/',
|
|
|
|
'files': [
|
|
|
|
'$(CONFIGURATION)/libcef.dylib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
# Add other resources to the bundle.
|
|
|
|
'destination': '<(PRODUCT_DIR)/cefclient.app/Contents/',
|
|
|
|
'files': [
|
|
|
|
'Resources/',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
|
2012-05-16 18:56:38 +02:00
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
|
2011-10-03 12:25:14 +02:00
|
|
|
'$(CONFIGURATION)/libcef.dylib'
|
|
|
|
],
|
|
|
|
},
|
2011-09-27 17:02:08 +02:00
|
|
|
'sources': [
|
|
|
|
'<@(includes_mac)',
|
|
|
|
'<@(cefclient_sources_mac)',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
2011-11-12 05:47:00 +01:00
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'destination': '<(PRODUCT_DIR)/files',
|
|
|
|
'files': [
|
|
|
|
'<@(cefclient_bundle_resources_linux)',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2011-09-27 17:02:08 +02:00
|
|
|
'sources': [
|
|
|
|
'<@(includes_linux)',
|
|
|
|
'<@(cefclient_sources_linux)',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'libcef_dll_wrapper',
|
|
|
|
'type': 'static_library',
|
|
|
|
'msvs_guid': 'A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9',
|
|
|
|
'defines': [
|
|
|
|
'USING_CEF_SHARED',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<@(includes_common)',
|
2011-12-23 18:36:30 +01:00
|
|
|
'<@(includes_capi)',
|
|
|
|
'<@(includes_wrapper)',
|
2011-09-27 17:02:08 +02:00
|
|
|
'<@(libcef_dll_wrapper_sources_common)',
|
|
|
|
],
|
2011-10-03 12:25:14 +02:00
|
|
|
'xcode_settings': {
|
|
|
|
# Target build path.
|
|
|
|
'SYMROOT': 'xcodebuild',
|
|
|
|
},
|
2011-09-27 17:02:08 +02:00
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|