diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-24 12:15:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:30:04 +0000 |
commit | b014812705fc80bff0a5c120dfcef88f349816dc (patch) | |
tree | 25a2e2d9fa285f1add86aa333389a839f81a39ae /chromium/chrome/elevation_service | |
parent | 9f4560b1027ae06fdb497023cdcaf91b8511fa74 (diff) | |
download | qtwebengine-chromium-b014812705fc80bff0a5c120dfcef88f349816dc.tar.gz |
BASELINE: Update Chromium to 68.0.3440.125
Change-Id: I23f19369e01f688e496f5bf179abb521ad73874f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/chrome/elevation_service')
-rw-r--r-- | chromium/chrome/elevation_service/BUILD.gn | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/chromium/chrome/elevation_service/BUILD.gn b/chromium/chrome/elevation_service/BUILD.gn new file mode 100644 index 00000000000..5db0d3a255b --- /dev/null +++ b/chromium/chrome/elevation_service/BUILD.gn @@ -0,0 +1,111 @@ +# Copyright 2018 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//build/config/chrome_build.gni") +import("//build/toolchain/win/midl.gni") +import("//chrome/process_version_rc_template.gni") +import("//testing/test.gni") + +midl("elevation_service_idl") { + sources = [ + "elevation_service_idl.idl", + ] +} + +# Must be in a config because of how GN orders flags (otherwise /W4 will appear +# after this, and turn it back on). +config("no-missing-braces") { + # Macros invoked by WRL CoCreatableClass omit optional braces. + cflags = [ "-Wno-missing-braces" ] +} + +# This service needs to work with Windows 7, so explicitly setting the defines +# to reflect this. Otherwise, WRL uses APIs that are only available in later +# Windows versions. +config("winver") { + defines = [ + "NTDDI_VERSION=NTDDI_WIN7", + "_WIN32_WINNT=_WIN32_WINNT_WIN7", + "WINVER=_WIN32_WINNT_WIN7", + ] +} + +executable("elevation_service") { + sources = [ + "elevation_service.cc", + "elevation_service.rc", + ] + + configs -= [ "//build/config/win:console" ] + configs += [ "//build/config/win:windowed" ] + configs += [ ":no-missing-braces" ] + configs -= [ "//build/config/win:winver" ] + configs += [ ":winver" ] + + deps = [ + ":lib", + ":version_resources", + "//base", + "//build/win:default_exe_manifest", + "//chrome/install_static:primary_module", + ] + +} + +source_set("lib") { + visibility = [ ":*" ] + + public = [ + "elevator.h", + "service_main.h", + ] + + sources = [ + "elevator.cc", + "service_main.cc", + ] + + configs += [ ":no-missing-braces" ] + configs -= [ "//build/config/win:winver" ] + configs += [ ":winver" ] + + public_deps = [ + ":elevation_service_idl", + "//base", + ] + + deps = [ + "//chrome/install_static:install_static_util", + ] +} + +process_version_rc_template("version_resources") { + sources = [ + "elevation_service_exe.ver", + ] + output = "$target_gen_dir/elevation_service_exe.rc" +} + +test("elevation_service_unittests") { + sources = [ + "run_all_unittests.cc", + "service_main_unittest.cc", + ] + + configs -= [ "//build/config/win:winver" ] + configs += [ ":winver" ] + + deps = [ + ":lib", + "//base", + "//base/test:test_support", + "//chrome/install_static:install_static_util", + "//chrome/install_static/test:test_support", + "//testing/gtest", + ] + + data_deps = [ + ":elevation_service", + ] +} |