Commit 57f1c1c7 authored by dpranke@chromium.org's avatar dpranke@chromium.org

Make *some* version of the Mac GN build work again.

R=brettw@chromium.org
TBR=haraken@chromium.org
BUG=431177

Review URL: https://codereview.chromium.org/701043002

git-svn-id: svn://svn.chromium.org/blink/trunk@185222 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3e358e84
...@@ -260,6 +260,8 @@ source_set("remaining") { ...@@ -260,6 +260,8 @@ source_set("remaining") {
if (is_mac) { if (is_mac) {
sources -= [ sources -= [
"rendering/RenderThemeChromiumDefault.cpp",
"rendering/RenderThemeChromiumDefault.h",
"rendering/RenderThemeChromiumFontProvider.cpp", "rendering/RenderThemeChromiumFontProvider.cpp",
"rendering/RenderThemeChromiumFontProvider.h", "rendering/RenderThemeChromiumFontProvider.h",
"rendering/RenderThemeChromiumSkia.cpp", "rendering/RenderThemeChromiumSkia.cpp",
......
...@@ -11,11 +11,14 @@ import("//third_party/WebKit/Source/platform/platform_generated.gni") ...@@ -11,11 +11,14 @@ import("//third_party/WebKit/Source/platform/platform_generated.gni")
# Most targets in this file are private actions so use that as the default. # Most targets in this file are private actions so use that as the default.
visibility = [ ":*" ] visibility = [ ":*" ]
heap_gypi = exec_script( if (!is_mac) {
"//build/gypi_to_gn.py", # TODO(GYP): can't link Blink binaries yet on mac.
[ rebase_path("heap/blink_heap.gypi") ], heap_gypi = exec_script(
"scope", "//build/gypi_to_gn.py",
[ "heap/blink_heap.gypi" ]) [ rebase_path("heap/blink_heap.gypi") ],
"scope",
[ "heap/blink_heap.gypi" ])
}
blink_platform_neon_files = [ blink_platform_neon_files = [
"graphics/cpu/arm/WebGLImageConversionNEON.h", "graphics/cpu/arm/WebGLImageConversionNEON.h",
...@@ -311,67 +314,70 @@ component("platform") { ...@@ -311,67 +314,70 @@ component("platform") {
} }
} }
test("heap_unittests") { if (!is_mac) {
visibility = [] # Allow re-assignment of list. # TODO(GYP): Can't link Blink binaries yet.
visibility = [ "//third_party/WebKit/*" ] test("heap_unittests") {
output_name = "blink_heap_unittests" visibility = [] # Allow re-assignment of list.
visibility = [ "//third_party/WebKit/*" ]
output_name = "blink_heap_unittests"
sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap")
sources += [ "heap/RunAllTests.cpp" ] sources += [ "heap/RunAllTests.cpp" ]
configs += [ configs += [
"//third_party/WebKit/Source/wtf:wtf_config", "//third_party/WebKit/Source/wtf:wtf_config",
"//third_party/WebKit/Source:config", "//third_party/WebKit/Source:config",
] ]
deps = [ deps = [
":platform", ":platform",
"//base", "//base",
"//base/allocator", "//base/allocator",
"//base/test:test_support", "//base/test:test_support",
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
"//third_party/WebKit/Source/wtf", "//third_party/WebKit/Source/wtf",
"//third_party/WebKit/Source/wtf:test_support", "//third_party/WebKit/Source/wtf:test_support",
"//content/test:test_support", "//content/test:test_support",
] ]
} }
test("platform_unittests") { test("platform_unittests") {
visibility = [] # Allow re-assignment of list. visibility = [] # Allow re-assignment of list.
visibility = [ "//third_party/WebKit/*" ] visibility = [ "//third_party/WebKit/*" ]
output_name = "blink_platform_unittests" output_name = "blink_platform_unittests"
sources = platform_test_files sources = platform_test_files
sources += [ "testing/RunAllTests.cpp" ] sources += [ "testing/RunAllTests.cpp" ]
configs += [ configs += [
"//third_party/WebKit/Source/wtf:wtf_config", "//third_party/WebKit/Source/wtf:wtf_config",
"//third_party/WebKit/Source:config", "//third_party/WebKit/Source:config",
] ]
deps = [ deps = [
":blink_common", ":blink_common",
":platform", ":platform",
"//base", "//base",
"//base/allocator", "//base/allocator",
"//base/test:test_support", "//base/test:test_support",
"//skia", "//skia",
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
"//third_party/WebKit/Source/wtf", "//third_party/WebKit/Source/wtf",
"//third_party/WebKit/Source/wtf:test_support", "//third_party/WebKit/Source/wtf:test_support",
"//url", "//url",
] ]
defines = [ defines = [
"INSIDE_BLINK", "INSIDE_BLINK",
] ]
include_dirs = [ include_dirs = [
"$root_gen_dir/blink", "$root_gen_dir/blink",
] ]
}
} }
......
...@@ -105,36 +105,39 @@ source_set("test_support") { ...@@ -105,36 +105,39 @@ source_set("test_support") {
} }
# GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests
test("webkit_unit_tests") { if (!is_mac) {
deps = [ # TODO(GYP): Can't link Blink binaries yet on mac.
":test_support", test("webkit_unit_tests") {
":web", deps = [
"//base", ":test_support",
"//base/test:test_support", ":web",
"//base:i18n", "//base",
"//content/test:test_support", "//base/test:test_support",
"//testing/gmock", "//base:i18n",
"//testing/gtest", "//content/test:test_support",
"//third_party/WebKit/Source/wtf:test_support", "//testing/gmock",
"//third_party/libwebp", "//testing/gtest",
"//third_party/zlib", "//third_party/WebKit/Source/wtf:test_support",
"//url", "//third_party/libwebp",
"//v8", "//third_party/zlib",
] "//url",
"//v8",
]
sources = [ "tests/RunAllTests.cpp" ] sources = [ "tests/RunAllTests.cpp" ]
configs += [ "//third_party/WebKit/Source:config" ] configs += [ "//third_party/WebKit/Source:config" ]
if (!is_component_build) { if (!is_component_build) {
deps += [ "//third_party/WebKit/Source/core" ] deps += [ "//third_party/WebKit/Source/core" ]
configs += [ "//third_party/WebKit/Source:inside_blink" ] configs += [ "//third_party/WebKit/Source:inside_blink" ]
sources += web_gypi.web_unittest_files sources += web_gypi.web_unittest_files
sources += bindings_unittest_files sources += bindings_unittest_files
sources += core_unittest_files sources += core_unittest_files
sources += modules_unittest_files sources += modules_unittest_files
sources += platform_web_unittest_files sources += platform_web_unittest_files
}
} }
} }
...@@ -46,6 +46,13 @@ group("all_blink") { ...@@ -46,6 +46,13 @@ group("all_blink") {
"//third_party/WebKit/Source/web", "//third_party/WebKit/Source/web",
"//third_party/WebKit/Source/wtf:wtf_unittests", "//third_party/WebKit/Source/wtf:wtf_unittests",
] ]
if (is_mac) {
# TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
deps -= [
"//third_party/WebKit/Source/platform:heap_unittests",
"//third_party/WebKit/Source/platform:platform_unittests",
]
}
} }
config("blink_headers_config") { config("blink_headers_config") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment