Commit 5dd60a66 authored by gfhuang's avatar gfhuang Committed by Commit bot

[chromecast] Add CAST_PRODUCT_TYPE controlled at build time.

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

Cr-Commit-Position: refs/heads/master@{#325521}
parent e2c57b1e
......@@ -8,6 +8,8 @@
'../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
'cast_build_release': 'internal/build/cast_build_release',
'cast_is_debug_build%': 0,
# Refers to enum CastProductType in components/metrics/proto/cast_logs.proto
'cast_product_type%': 0, # CAST_PRODUCT_TYPE_UNKNOWN
'chromium_code': 1,
'chromecast_branding%': 'Chromium',
'disable_display%': 0,
......@@ -338,6 +340,7 @@
# otherwise, a dev string is used.
'-e', 'CAST_BUILD_RELEASE="<!(if test -f <(cast_build_release); then cat <(cast_build_release); else echo eng.${USER}; fi)"',
'-e', 'CAST_IS_DEBUG_BUILD=1 if "<(CONFIGURATION_NAME)" == "Debug" or <(cast_is_debug_build) == 1 else 0',
'-e', 'CAST_PRODUCT_TYPE=<(cast_product_type)',
'common/version.h.in',
'<@(_outputs)',
],
......
......@@ -11,5 +11,6 @@
#define CAST_BUILD_INCREMENTAL "@CAST_BUILD_INCREMENTAL@"
#define CAST_BUILD_REVISION "@CAST_BUILD_RELEASE@.@CAST_BUILD_INCREMENTAL@"
#define CAST_IS_DEBUG_BUILD() @CAST_IS_DEBUG_BUILD@
#define CAST_PRODUCT_TYPE @CAST_PRODUCT_TYPE@
#endif // CHROMECAST_COMMON_VERSION_INFO_H_
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