Commit 3e326e4a authored by Olivier Li's avatar Olivier Li Committed by Commit Bot

Add branding and version header generation.

Bug: 830892
Change-Id: Ib5d41a5b1a70f4f26752d97096437f489d2fe239
Reviewed-on: https://chromium-review.googlesource.com/1126168Reviewed-by: default avatarJoe Mason <joenotcharles@chromium.org>
Commit-Queue: Oliver Li <olivierli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572571}
parent c8923dd5
...@@ -3,6 +3,45 @@ ...@@ -3,6 +3,45 @@
# found in the LICENSE file. # found in the LICENSE file.
import("//build/config/chrome_build.gni") import("//build/config/chrome_build.gni")
import("//build/util/process_version.gni")
declare_args() {
reporter_branding_path = "REPORTER_BRANDING"
cleaner_branding_path = "CLEANER_BRANDING"
version_path = "VERSION"
lastchange_path = "//build/util/LASTCHANGE"
}
process_version("version_header") {
sources = [
cleaner_branding_path,
lastchange_path,
version_path,
]
template_file = "version.h.in"
output = "$target_gen_dir/version.h"
}
process_version("chrome_cleanup_tool_branding_header") {
sources = [
cleaner_branding_path,
]
template_file = "branding.h.in"
output = "$target_gen_dir/chrome_cleanup_tool_branding.h"
}
process_version("software_reporter_tool_branding_header") {
sources = [
reporter_branding_path,
]
template_file = "branding.h.in"
output = "$target_gen_dir/software_reporter_tool_branding.h"
}
source_set("common_strings") { source_set("common_strings") {
sources = [ sources = [
......
COMPANY_FULLNAME=The Chromium Authors
COMPANY_SHORTNAME=The Chromium Authors
PRODUCT_FULLNAME=Chrome Cleanup Tool
PRODUCT_SHORTNAME=Chrome Cleanup Tool
PRODUCT_INSTALLER_FULLNAME=Chrome Cleanup Tool Installer
PRODUCT_INSTALLER_SHORTNAME=Chrome Cleanup Tool Installer
COPYRIGHT=Copyright 2015 Google Inc. All Rights Reserved.
COMPANY_FULLNAME=The Chromium Authors
COMPANY_SHORTNAME=The Chromium Authors
PRODUCT_FULLNAME=Software Reporter Tool
PRODUCT_SHORTNAME=Software Reporter Tool
PRODUCT_INSTALLER_FULLNAME=Software Reporter Tool Installer
PRODUCT_INSTALLER_SHORTNAME=Software Reporter Tool Installer
COPYRIGHT=Copyright 2015 Google Inc. All Rights Reserved.
MAJOR=0
MINOR=0
BUILD=0
PATCH=0
// 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.
// chrome_cleanup_tool_branding.h and software_reporter_tool_branding.h are
// generated from branding.h.in. Edit the source!
#define PRODUCT_FULLNAME_STRING L"@PRODUCT_FULLNAME@"
#define PRODUCT_SHORTNAME_STRING L"@PRODUCT_SHORTNAME@"
// 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.
// version.h is generated from version.h.in. Edit the source!
// See also software_reporter_tool_branding.h and
// chrome_cleanup_tool_branding.h for branding that varies by executable.
// Version Information
#define CHROME_VERSION @MAJOR@,@MINOR@,@BUILD@
#define CHROME_VERSION_STRING L"@MAJOR@.@MINOR@.@BUILD@"
#define CHROME_VERSION_UTF8_STRING "@MAJOR@.@MINOR@.@BUILD@"
// Branding Information
#define COMPANY_FULLNAME_STRING L"@COMPANY_FULLNAME@"
#define COMPANY_SHORTNAME_STRING L"@COMPANY_SHORTNAME@"
#define COPYRIGHT_STRING L"@COPYRIGHT@"
#define OFFICIAL_BUILD_STRING L"@OFFICIAL_BUILD@"
// Changelist Information
#define LASTCHANGE_STRING L"@LASTCHANGE@"
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