Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: build/common.gypi

Issue 1108333002: Compile-time and run-time flags for top chrome material design. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/BUILD.gn » ('j') | build/config/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 9171eeeacce55220cb16f5f17d0d0bd3170f777b..57c323c6bae340db81766671130d7ad65cf5c133 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -82,6 +82,9 @@
# Enable HiDPI support.
'enable_hidpi%': 0,
+ # Enable top chrome material design.
+ 'enable_topchrome_md%' : 0,
+
# Override buildtype to select the desired build flavor.
# Dev - everyday build for development/testing
# Official - release build (generally implies additional processing)
@@ -147,6 +150,7 @@
'use_openssl_certs%': '<(use_openssl_certs)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
+ 'enable_topchrome_md%': '<(enable_topchrome_md)',
'buildtype%': '<(buildtype)',
'branding%': '<(branding)',
'branding_path_component%': '<(branding)',
@@ -222,6 +226,11 @@
'enable_hidpi%': 1,
}],
+ # Enable Top Chrome Material Design on Chrome OS, and Windows.
+ ['chromeos==1 or OS=="win"', {
+ 'enable_topchrome_md%': 1,
+ }],
+
# Enable the OpenSSL backend on Mac OS and Windows.
['OS=="mac" or OS=="win"', {
'use_openssl%': 1,
@@ -298,6 +307,7 @@
'use_openssl_certs%': '<(use_openssl_certs)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
+ 'enable_topchrome_md%': '<(enable_topchrome_md)',
'android_channel%': '<(android_channel)',
'use_goma%': '<(use_goma)',
'gomadir%': '<(gomadir)',
@@ -1109,6 +1119,7 @@
'chromecast%': '<(chromecast)',
'enable_viewport%': '<(enable_viewport)',
'enable_hidpi%': '<(enable_hidpi)',
+ 'enable_topchrome_md%': '<(enable_topchrome_md)',
'image_loader_extension%': '<(image_loader_extension)',
'fastbuild%': '<(fastbuild)',
'dont_embed_build_metadata%': '<(dont_embed_build_metadata)',
@@ -2730,6 +2741,9 @@
['enable_hidpi==1', {
'defines': ['ENABLE_HIDPI=1'],
}],
+ ['enable_topchrome_md==1', {
+ 'defines': ['ENABLE_TOPCHROME_MD=1'],
+ }],
['native_memory_pressure_signals==1', {
'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'],
}],
« no previous file with comments | « no previous file | build/config/BUILD.gn » ('j') | build/config/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698