blob: 73cfe7d0a1df55e53da9e8fbd6816cf107280d87 [file] [log] [blame]
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
'includes': [ '../build/contents_dir.gypi' ],
'targets': [
{
'target_name': 'webdriver',
'type': 'static_library',
'conditions': [
['enable_webdriver==1', {
'sources': [
'algorithms.cc',
'algorithms.h',
'dispatcher.cc',
'dispatcher.h',
'element_driver.cc',
'element_driver.h',
'keyboard.cc',
'keyboard.h',
'protocol/capabilities.cc',
'protocol/capabilities.h',
'protocol/cookie.h',
'protocol/cookie.cc',
'protocol/element_id.cc',
'protocol/element_id.h',
'protocol/frame_id.cc',
'protocol/frame_id.h',
'protocol/keys.cc',
'protocol/keys.h',
'protocol/proxy.cc',
'protocol/proxy.h',
'protocol/log_entry.cc',
'protocol/log_entry.h',
'protocol/log_type.cc',
'protocol/log_type.h',
'protocol/response.cc',
'protocol/response.h',
'protocol/search_strategy.cc',
'protocol/search_strategy.h',
'protocol/server_status.cc',
'protocol/server_status.h',
'protocol/session_id.h',
'protocol/script.cc',
'protocol/script.h',
'protocol/size.cc',
'protocol/size.h',
'protocol/window_id.cc',
'protocol/window_id.h',
'script_executor.cc',
'script_executor.h',
'script_executor_params.cc',
'script_executor_params.h',
'script_executor_result.h',
'search.cc',
'search.h',
'server.cc',
'server.h',
'session_driver.cc',
'session_driver.h',
'web_driver_module.cc',
'web_driver_module.h',
'window_driver.cc',
'window_driver.h',
],
'defines': [ 'ENABLE_WEBDRIVER', ],
'all_dependent_settings': {
'defines': [ 'ENABLE_WEBDRIVER', ],
},
}],
['enable_webdriver==0', {
'sources': [
'stub_web_driver_module.cc'
]
}],
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/cobalt/dom/dom.gyp:dom',
'<(DEPTH)/cobalt/dom/dom.gyp:dom_testing',
'<(DEPTH)/cobalt/speech/speech.gyp:speech',
'<(DEPTH)/net/net.gyp:http_server',
'copy_webdriver_data',
],
},
{
'target_name': 'copy_webdriver_data',
'type': 'none',
'copies': [
{
'destination': '<(sb_static_contents_output_data_dir)/webdriver',
'conditions': [
['enable_webdriver==1', {
'files': ['content/webdriver-init.js'],
}, {
'files': [],
}],
],
},
],
},
],
}