summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/BUILD.gn42
-rw-r--r--chrome/browser/BUILD.gn4
-rw-r--r--chrome/test/BUILD.gn41
-rw-r--r--chrome/test/data/nacl/nacl_test_data.gyp1
-rw-r--r--chrome_elf/BUILD.gn10
-rw-r--r--remoting/remoting_test.gypi6
-rw-r--r--remoting/webapp/BUILD.gn63
-rw-r--r--remoting/webapp/files.gni58
-rw-r--r--third_party/mesa/BUILD.gn8
-rw-r--r--ui/login/login.gyp1
10 files changed, 163 insertions, 71 deletions
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index 7188266..1553620 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -6,6 +6,7 @@ import("//build/config/chrome_build.gni")
import("//build/config/features.gni")
import("//build/config/locales.gni")
import("//build/config/ui.gni")
+import("//build/config/win/manifest.gni")
import("//chrome/chrome_repack_locales.gni")
import("//chrome/version.gni")
@@ -14,8 +15,9 @@ if (is_android) {
}
if (!is_android) {
- # TODO(GYP) for Windows need to the the reorder-imports step which probably
- # means adding another target and renaming this to chrome_initial like in GYP.
+ # TODO(GYP) bug 512599: for Windows need to the the reorder-imports step
+ # which probably means adding another target and renaming this to
+ # chrome_initial like in GYP.
executable("chrome") {
# Because the sources list varies so significantly per-platform, generally
# each platform lists its own files rather than relying on filtering or
@@ -29,8 +31,6 @@ if (!is_android) {
# TODO(GYP) mac_bundle_resources, xcode_settings
- # TODO(GYP) order_profiling, order_text_section
-
if (is_win) {
sources += [
"//content/public/common/content_switches.cc",
@@ -65,9 +65,9 @@ if (!is_android) {
":image_pre_reader",
":main_dll",
- # 'chrome_nacl_win64" TODO(GYP)
- # '../win8/delegate_execute/delegate_execute.gyp:*', TODO(GYP)
- # '../win8/metro_driver/metro_driver.gyp:metro_driver', TODO(GYP)
+ # 'chrome_nacl_win64" TODO(GYP) bug 512869
+ # '../win8/delegate_execute/delegate_execute.gyp:*', TODO(GYP) bug 512867
+ # '../win8/metro_driver/metro_driver.gyp:metro_driver', TODO(GYP) bug 512864
"//base",
"//breakpad:breakpad_handler",
"//breakpad:breakpad_sender",
@@ -187,6 +187,7 @@ shared_library("main_dll") {
]
deps += [
+ ":chrome_dll_manifest",
":chrome_dll_version",
"//base/trace_event/etw_manifest:chrome_events_win",
"//chrome/app/theme:chrome_unscaled_resources",
@@ -201,8 +202,7 @@ shared_library("main_dll") {
deps += [ "//components/policy" ]
}
if (current_cpu == "x86") {
- # Add a dependency to custom import library for user32 delay imports only
- # in x86 builds.
+ # TODO(GYP) bug 512861: Lots of VCLinkerTool stuff on Windows.
#deps += [ 'chrome_user32_delay_imports' ] TODO(GYP)
}
@@ -210,9 +210,7 @@ shared_library("main_dll") {
configs -= [ "//build/config/win:default_incremental_linking" ]
configs += [ "//build/config/win:default_large_module_incremental_linking" ]
- # TODO(GYP) Lots of VCLinkerTool stuff on Windows.
-
- # TODO(GYP) chrome_pgo_phase on Windows.
+ # TODO(GYP) bug 512851: PGO.
}
if (use_aura) {
@@ -246,6 +244,14 @@ shared_library("main_dll") {
}
if (is_multi_dll_chrome) {
+ # This manifest matches what GYP produces. It may not even be necessary.
+ windows_manifest("chrome_child_manifest") {
+ sources = [
+ as_invoker_manifest,
+ ]
+ type = "dll"
+ }
+
shared_library("chrome_child") {
sources = [
"app/chrome_main.cc",
@@ -260,13 +266,14 @@ if (is_multi_dll_chrome) {
deps = [
":child_dependencies",
+ ":chrome_child_manifest",
":chrome_dll_version",
"//chrome/browser/policy:path_parser",
"//content/public/app:child",
]
if (is_win) {
- # TODO(GYP): PGO on Windows.
+ # TODO(GYP) bug 512851: PGO on Windows.
# ['chrome_pgo_phase==1', {
# 'msvs_settings': {
# 'VCLinkerTool': {
@@ -367,6 +374,15 @@ if (is_win) {
output = "$target_gen_dir/chrome_dll_version.rc"
}
+ # This manifest matches what GYP produces. It may not even be necessary.
+ windows_manifest("chrome_dll_manifest") {
+ sources = [
+ as_invoker_manifest,
+ common_controls_manifest,
+ ]
+ type = "dll"
+ }
+
process_version("nacl64_exe_version") {
sources = [
"app/nacl64_exe.ver",
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 383c493..7e281f4 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -342,8 +342,8 @@ source_set("browser") {
sources +=
rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
deps += [
- #"app_shim" TODO(GYP)
- #"browser_app_shim" TODO(GYP)
+ #"app_shim" TODO(GYP) bug 512600
+ #"browser_app_shim" TODO(GYP) bug 512600
]
}
if (enable_extensions) {
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
index 68ba535..01fe50a 100644
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -617,9 +617,8 @@ if (!is_android) {
# Runtime dependencies
data_deps = [
"//ppapi:ppapi_tests",
-
- #'../remoting/remoting.gyp:remoting_browser_test_resources', TODO(GYP)
- #'../remoting/remoting.gyp:remoting_webapp_unittests', TODO(GYP)
+ "//remoting/webapp:browser_test_resources",
+ "//remoting/webapp:unit_tests",
"//third_party/mesa:osmesa",
"//third_party/widevine/cdm:widevine_test_license_server",
]
@@ -662,18 +661,18 @@ if (!is_android) {
# to know all of the different toolchain options.
assert(current_cpu == "x64")
data_deps += [
- # "test/data/nacl:shared_test_files", # TODO(GYP)
+ # "test/data/nacl:shared_test_files", # TODO(GYP) bug 512902
"//ppapi/native_client:nacl_irt(//native_client/build/toolchain/nacl:irt_x64)",
- # "../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests", # TODO(GYP)
- # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_background_keepalive", # TODO(GYP)
- # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_media_galleries", # TODO(GYP)
- # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_packaged_app", # TODO(GYP)
+ # "../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests", # TODO(GYP) bug 512901
+ # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_background_keepalive", # TODO(GYP) bug 512900
+ # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_media_galleries", # TODO(GYP) bug 512900
+ # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_packaged_app", # TODO(GYP) bug 512900
]
if (is_chromeos) {
sources += [ "//third_party/liblouis/nacl_wrapper/liblouis_wrapper_browsertest.cc" ]
deps += [
- #'browser_chromeos', TODO(GYP)
- #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TODO(GYP)
+ "//chrome/browser/chromeos",
+ #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TODO(GYP) bug 512906
]
}
}
@@ -686,7 +685,7 @@ if (!is_android) {
# browser process as needed by this test. See http://crbug.com/157312.
sources -= [ "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc" ]
deps += [
- #'chrome.gyp:chrome_nacl_win64', TODO(GYP)
+ #'chrome.gyp:chrome_nacl_win64', TODO(GYP) bug 512869
]
configs -= [ "//build/config/win:default_incremental_linking" ]
configs +=
@@ -697,7 +696,7 @@ if (!is_android) {
"//native_client/src/trusted/service_runtime/linux:munge_nacl_helper_bootstrap",
"//components/nacl:nacl_helper",
- # "//components/nacl_nonsfi.gyp:nacl_helper_nonsfi", # TODO(GYP)
+ # "//components/nacl_nonsfi.gyp:nacl_helper_nonsfi", # TODO(GYP) bug 512912.
]
}
}
@@ -747,7 +746,7 @@ if (!is_android) {
"//dbus",
"//dbus:test_support",
- #"//ui/login:resources", TODO(GYP)
+ #"//ui/login:resources", TODO(GYP) bug 512913
]
} else {
sources -= [
@@ -1573,19 +1572,17 @@ if (!is_android) {
]
}
if (is_win) {
- if (!is_component_build) {
- # Unit_tests pdb files can get too big when incremental linking is
- # on, disabling for this target.
- #'LinkIncremental': '<(msvs_debug_link_nonincremental)', TODO(GYP)
- }
+ # The PDB gets too large for incremental linking.
+ configs -= [ "//build/config/win:default_incremental_linking" ]
+ configs += [ "//build/config/win:no_incremental_linking" ]
sources += rebase_path(
chrome_tests_unit_gypi_values.chrome_unit_tests_win_sources,
".",
"//chrome")
deps += [
- #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unittest.gyp:verifier_test_dll_1', TODO(GYP)
- #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unittest.gyp:verifier_test_dll_2', TODO(GYP)
+ #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unittest.gyp:verifier_test_dll_1', TODO(GYP) bug 512919
+ #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unittest.gyp:verifier_test_dll_2', TODO(GYP) bug 512919
"//chrome:other_version",
"//chrome_elf:blacklist_test_dll_1",
"//chrome/installer/util:strings",
@@ -1595,10 +1592,6 @@ if (!is_android) {
"//ui/resources",
]
- configs -= [ "//build/config/win:default_incremental_linking" ]
- configs +=
- [ "//build/config/win:default_large_module_incremental_linking" ]
-
libs = [
"comsupp.lib",
"oleacc.lib",
diff --git a/chrome/test/data/nacl/nacl_test_data.gyp b/chrome/test/data/nacl/nacl_test_data.gyp
index 7cdeee8..9f23006 100644
--- a/chrome/test/data/nacl/nacl_test_data.gyp
+++ b/chrome/test/data/nacl/nacl_test_data.gyp
@@ -8,6 +8,7 @@
],
'targets': [
{
+ # TODO bug 512902 this needs to be ported to GN.
'target_name': 'shared_test_files',
'type': 'none',
'variables': {
diff --git a/chrome_elf/BUILD.gn b/chrome_elf/BUILD.gn
index ee00fa8..c97a411 100644
--- a/chrome_elf/BUILD.gn
+++ b/chrome_elf/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/win/manifest.gni")
import("//chrome/version.gni")
import("//testing/test.gni")
@@ -12,6 +13,14 @@ process_version("chrome_elf_resources") {
output = "$target_gen_dir/chrome_elf_version.rc"
}
+# This manifest matches what GYP produces. It may not even be necessary.
+windows_manifest("chrome_elf_manifest") {
+ sources = [
+ as_invoker_manifest,
+ ]
+ type = "dll"
+}
+
shared_library("chrome_elf") {
sources = [
"chrome_elf_main.cc",
@@ -20,6 +29,7 @@ shared_library("chrome_elf") {
deps = [
":blacklist",
":breakpad",
+ ":chrome_elf_manifest",
":lib",
":chrome_elf_resources",
]
diff --git a/remoting/remoting_test.gypi b/remoting/remoting_test.gypi
index ca854fd7..4e9e286 100644
--- a/remoting/remoting_test.gypi
+++ b/remoting/remoting_test.gypi
@@ -400,6 +400,7 @@
], # end of 'conditions'
}, # end of target 'remoting_unittests'
{
+ # GN version: //remoting/webapp:browser_test_resources
'target_name': 'remoting_browser_test_resources',
'type': 'none',
'copies': [
@@ -441,6 +442,7 @@
], # end of actions
}, # end of target 'remoting_webapp_browser_test_html'
{
+ # GN version: //remoting/webapp:unit_tests
'target_name': 'remoting_webapp_unittests',
'type': 'none',
'variables': {
@@ -453,6 +455,7 @@
},
'copies': [
{
+ # GN version: //remoting/webapp:qunit
'destination': '<(output_dir)/qunit',
'files': [
'../third_party/qunit/src/browser_test_harness.js',
@@ -461,6 +464,7 @@
],
},
{
+ # GN version: //remoting/webapp:blanketjs
'destination': '<(output_dir)/blanketjs',
'files': [
'../third_party/blanketjs/src/blanket.js',
@@ -468,6 +472,7 @@
],
},
{
+ # GN version: //remoting/webapp:sinonjs
'destination': '<(output_dir)/sinonjs',
'files': [
'../third_party/sinonjs/src/sinon.js',
@@ -475,6 +480,7 @@
],
},
{
+ # GN version: //remoting/webapp:js_files
'destination': '<(output_dir)',
'files': [
'<@(webapp_js_files)',
diff --git a/remoting/webapp/BUILD.gn b/remoting/webapp/BUILD.gn
index a152052..de05018c 100644
--- a/remoting/webapp/BUILD.gn
+++ b/remoting/webapp/BUILD.gn
@@ -6,6 +6,7 @@
import("//build/config/features.gni")
import("//remoting/webapp/build_template.gni")
+import("//remoting/webapp/files.gni")
group("webapp") {
deps = [
@@ -82,3 +83,65 @@ app_remoting_shared_module("ar_shared_module") {
#app_client_id = "sample_client_id"
app_name = "shared_module"
}
+
+# GYP version: remoting/remoting_tests.gypi:remoting_browser_test_resources
+copy("browser_test_resources") {
+ sources = remoting_webapp_browsertest_main_html_extra_files
+ outputs = [
+ "$root_out_dir/remoting/browser_test_resources/{{source_file_part}}",
+ ]
+}
+
+remoting_unit_test_out_dir = "$root_out_dir/remoting/unittests"
+
+group("unit_tests") {
+ data_deps = [
+ ":blanketjs",
+ ":js_files",
+ ":qunit",
+ ":sinonjs",
+ ]
+}
+
+copy("js_files") {
+ # This list corresponds to webapp_js_files in remoting_webapp_unittests
+ # target in GYP.
+ sources = remoting_webapp_unittest_html_all_js_files +
+ remoting_webapp_wcs_sandbox_html_js_files +
+ remoting_webapp_background_html_js_files +
+ remoting_webapp_unittests_all_files
+ outputs = [
+ "$remoting_unit_test_out_dir/{{source_file_part}}",
+ ]
+}
+
+copy("blanketjs") {
+ sources = [
+ "//third_party/blanketjs/src/blanket.js",
+ "//third_party/blanketjs/src/qunit_adapter.js",
+ ]
+ outputs = [
+ "$remoting_unit_test_out_dir/blanketjs/{{source_file_part}}",
+ ]
+}
+
+copy("sinonjs") {
+ sources = [
+ "//third_party/sinonjs/src/sinon-qunit.js",
+ "//third_party/sinonjs/src/sinon.js",
+ ]
+ outputs = [
+ "$remoting_unit_test_out_dir/sinonjs/{{source_file_part}}",
+ ]
+}
+
+copy("qunit") {
+ sources = [
+ "//third_party/qunit/src/browser_test_harness.js",
+ "//third_party/qunit/src/qunit.css",
+ "//third_party/qunit/src/qunit.js",
+ ]
+ outputs = [
+ "$remoting_unit_test_out_dir/qunit/{{source_file_part}}",
+ ]
+}
diff --git a/remoting/webapp/files.gni b/remoting/webapp/files.gni
index e096d18..9900883 100644
--- a/remoting/webapp/files.gni
+++ b/remoting/webapp/files.gni
@@ -49,18 +49,20 @@ remoting_webapp_browsertest_js_mock_files = [
"crd/js/mock_host_list_api.js",
"crd/js/mock_identity.js",
"crd/js/mock_oauth2_api.js",
- "crd/js/mock_session_connector.js",
"crd/js/mock_signal_strategy.js",
]
remoting_webapp_browsertest_js_proto_files = [
- "js_proto/sinon_proto.js",
- "js_proto/test_proto.js",
- "<@(remoting_webapp_js_proto_files)",
-]
-remoting_webapp_browsertest_all_js_files = [
- "<@(remoting_webapp_browsertest_js_files)",
- "<@(remoting_webapp_browsertest_js_mock_files)",
-]
+ "js_proto/sinon_proto.js",
+ "js_proto/test_proto.js",
+ ] + remoting_webapp_js_proto_files
+
+remoting_webapp_browsertest_all_js_files =
+ remoting_webapp_browsertest_js_files +
+ remoting_webapp_browsertest_js_mock_files
+
+remoting_webapp_browsertest_main_html_extra_files =
+ remoting_webapp_browsertest_all_js_files +
+ [ "//third_party/sinonjs/src/sinon.js" ]
#
# Webapp unittest JavaScript files.
@@ -126,17 +128,13 @@ remoting_webapp_unittests_js_proto_files = [
"js_proto/remoting_proto.js",
"js_proto/sinon_proto.js",
]
-remoting_webapp_unittests_all_js_files = [
- "<@(remoting_webapp_unittests_js_files)",
- "<@(remoting_webapp_unittests_js_mock_files)",
- "unittests/qunit_callbacks.js",
-]
+remoting_webapp_unittests_all_js_files =
+ remoting_webapp_unittests_js_files +
+ remoting_webapp_unittests_js_mock_files + [ "unittests/qunit_callbacks.js" ]
# All the files needed to run the unittests.
-remoting_webapp_unittests_all_files = [
- "crd/html/menu_button.css",
- "<@(remoting_webapp_unittests_all_js_files)",
-]
+remoting_webapp_unittests_all_files =
+ [ "crd/html/menu_button.css" ] + remoting_webapp_unittests_all_js_files
remoting_webapp_unittests_template_main = "crd/html/template_unittests.html"
#
@@ -196,13 +194,11 @@ remoting_webapp_shared_js_host_files = [
remoting_webapp_shared_js_logging_files = [
"base/js/chromoting_event.js",
"base/js/format_iq.js",
- "base/js/logger.js",
"base/js/log_to_server.js",
+ "base/js/logger.js",
"base/js/server_log_entry.js",
"base/js/session_logger.js",
"base/js/stats_accumulator.js",
- "base/js/telemetry_event_writer.js",
- "base/js/xhr_event_writer.js",
]
# Remoting signaling files.
@@ -340,6 +336,9 @@ remoting_webapp_shared_main_html_js_files =
# to expedite debugging or local development.
#+ remoting_webapp_browsertest_all_js_files
+remoting_webapp_unittest_html_all_js_files =
+ remoting_webapp_shared_main_html_js_files + remoting_webapp_crd_js_ui_files
+
# The CRD-specific JavaScript files required by main.html.
remoting_webapp_crd_main_html_all_js_files =
remoting_webapp_shared_main_html_js_files +
@@ -517,15 +516,14 @@ remoting_webapp_crd_files =
remoting_webapp_resource_files
# Files that contain localizable strings.
-desktop_remoting_webapp_localizable_files = [
- "webapp/crd/manifest.json.jinja2",
- "<(remoting_webapp_template_background)",
- "<(remoting_webapp_template_main)",
- "<(remoting_webapp_template_message_window)",
- "<(remoting_webapp_template_wcs_sandbox)",
- "<@(remoting_webapp_template_files)",
- "<@(remoting_webapp_crd_js_files)",
-]
+desktop_remoting_webapp_localizable_files =
+ [
+ "webapp/crd/manifest.json.jinja2",
+ remoting_webapp_template_background,
+ remoting_webapp_template_main,
+ remoting_webapp_template_message_window,
+ remoting_webapp_template_wcs_sandbox,
+ ] + remoting_webapp_template_files + remoting_webapp_crd_js_files
#
# AppRemoting Files
diff --git a/third_party/mesa/BUILD.gn b/third_party/mesa/BUILD.gn
index de0a6a6..3ff2155 100644
--- a/third_party/mesa/BUILD.gn
+++ b/third_party/mesa/BUILD.gn
@@ -125,6 +125,7 @@ config("mesa_internal_warnings") {
cflags += [
"-Wno-tautological-constant-out-of-range-compare",
"-Wno-mismatched-tags", # Fixed upstream.
+
# mesa's STATIC_ASSERT() macro expands to an ununused typedef.
"-Wno-unused-local-typedef",
]
@@ -669,8 +670,11 @@ static_library("mesa") {
if (!is_android) { # TODO(GYP) enable for Android.
# Building this target will hide the native OpenGL shared library and
# replace it with a slow software renderer.
- # TODO(GYP) http://crbug.com/380327 need support for loadable_module.
- #loadable_module("osmesa") {
+ #
+ # Note: on x64 Windows this target gives warnings to the effect of:
+ # osmesa.osmesa.obj : warning LNK4197: export 'OSMesaGetIntegerv' specified
+ # multiple times; using first specification
+ # This also happens with the GYP build.
shared_library("osmesa") {
sources = [
"src/src/mesa/drivers/common/driverfuncs.c",
diff --git a/ui/login/login.gyp b/ui/login/login.gyp
index 28339f1..2ec5c8a 100644
--- a/ui/login/login.gyp
+++ b/ui/login/login.gyp
@@ -9,6 +9,7 @@
},
'targets': [
{
+ # TODO bug 512913 support in GN.
'target_name': 'login_resources',
'type': 'none',
'actions': [