Merge pull request #13 from brightray/windows-test-support
Build test_support_chromiumcontent on Windows
This commit is contained in:
Коммит
0d02a8d41a
|
@ -12,9 +12,6 @@
|
||||||
'dependencies': [
|
'dependencies': [
|
||||||
'<(DEPTH)/sandbox/sandbox.gyp:sandbox_static',
|
'<(DEPTH)/sandbox/sandbox.gyp:sandbox_static',
|
||||||
],
|
],
|
||||||
'dependencies!': [
|
|
||||||
'test_support_chromiumcontent',
|
|
||||||
],
|
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -72,6 +69,8 @@
|
||||||
'<(DEPTH)/base/base.gyp:base_prefs_test_support',
|
'<(DEPTH)/base/base.gyp:base_prefs_test_support',
|
||||||
'<(DEPTH)/content/content.gyp:test_support_content',
|
'<(DEPTH)/content/content.gyp:test_support_content',
|
||||||
],
|
],
|
||||||
|
'conditions': [
|
||||||
|
['OS=="mac"', {
|
||||||
'actions': [
|
'actions': [
|
||||||
{
|
{
|
||||||
'action_name': 'Create libtest_support_chromiumcontent.a',
|
'action_name': 'Create libtest_support_chromiumcontent.a',
|
||||||
|
@ -96,6 +95,36 @@
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
}],
|
||||||
|
['OS=="win"', {
|
||||||
|
'actions': [
|
||||||
|
{
|
||||||
|
'action_name': 'Create test_support_chromiumcontent.lib',
|
||||||
|
'inputs': [
|
||||||
|
'<(PRODUCT_DIR)\\obj\\base\\base_prefs_test_support.lib',
|
||||||
|
'<(PRODUCT_DIR)\\obj\\base\\test_support_base.lib',
|
||||||
|
'<(PRODUCT_DIR)\\obj\\content\\test_support_content.lib',
|
||||||
|
'<(PRODUCT_DIR)\\obj\\net\\net_test_support.lib',
|
||||||
|
'<(PRODUCT_DIR)\\obj\\testing\\gmock.lib',
|
||||||
|
'<(PRODUCT_DIR)\\obj\\testing\\gtest.lib',
|
||||||
|
'<(PRODUCT_DIR)\\obj\\ui\\ui_test_support.lib',
|
||||||
|
],
|
||||||
|
'outputs': [
|
||||||
|
'<(PRODUCT_DIR)\\test_support_chromiumcontent.lib',
|
||||||
|
],
|
||||||
|
'action': [
|
||||||
|
'lib.exe',
|
||||||
|
'/nologo',
|
||||||
|
# We can't use <(_outputs) here because that escapes the
|
||||||
|
# backslash in the path, which confuses lib.exe.
|
||||||
|
'/OUT:<(PRODUCT_DIR)\\test_support_chromiumcontent.lib',
|
||||||
|
'<@(_inputs)',
|
||||||
|
],
|
||||||
|
'msvs_cygwin_shell': 0,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'conditions': [
|
'conditions': [
|
||||||
|
|
|
@ -96,11 +96,13 @@
|
||||||
['exclude', 'debug/debug_on_start_win\.cc$'],
|
['exclude', 'debug/debug_on_start_win\.cc$'],
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
# sandbox_static.lib gets linked directly into client applications, so
|
# These targets get linked directly into client applications, so need
|
||||||
# needs to see symbols decorated with __declspec(dllimport).
|
# to see symbols decorated with __declspec(dllimport).
|
||||||
['_target_name=="sandbox_static"', {
|
['_target_name in ["net_test_support", "sandbox_static", "test_support_content"]', {
|
||||||
'defines!': [
|
'defines!': [
|
||||||
'BASE_IMPLEMENTATION',
|
'BASE_IMPLEMENTATION',
|
||||||
|
'CONTENT_IMPLEMENTATION',
|
||||||
|
'NET_IMPLEMENTATION',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
['_target_name in ["v8", "v8_snapshot", "v8_nosnapshot", "v8_base", "mksnapshot", "v8_shell", "preparser_lib"]', {
|
['_target_name in ["v8", "v8_snapshot", "v8_nosnapshot", "v8_base", "mksnapshot", "v8_shell", "preparser_lib"]', {
|
||||||
|
|
|
@ -39,10 +39,13 @@ BINARIES = {
|
||||||
'chromiumcontent.dll.lib',
|
'chromiumcontent.dll.lib',
|
||||||
'icudt.dll',
|
'icudt.dll',
|
||||||
'libGLESv2.dll',
|
'libGLESv2.dll',
|
||||||
|
'test_support_chromiumcontent.lib',
|
||||||
os.path.join('obj', 'base', 'base_static.lib'),
|
os.path.join('obj', 'base', 'base_static.lib'),
|
||||||
os.path.join('obj', 'base', 'base_static.pdb'),
|
os.path.join('obj', 'base', 'base_static.pdb'),
|
||||||
|
os.path.join('obj', 'net', 'net_test_support.pdb'),
|
||||||
os.path.join('obj', 'sandbox', 'sandbox_static.lib'),
|
os.path.join('obj', 'sandbox', 'sandbox_static.lib'),
|
||||||
os.path.join('obj', 'sandbox', 'sandbox_static.pdb'),
|
os.path.join('obj', 'sandbox', 'sandbox_static.pdb'),
|
||||||
|
os.path.join('obj', 'testing', 'gtest.pdb'),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче