summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_options.gypi
diff options
context:
space:
mode:
authoranandc <anandc@chromium.org>2015-03-25 21:48:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-26 04:49:00 +0000
commitd58d70dbcee9d0537ca74861aefd82e02490b332 (patch)
tree6910767b3504fb53b5f9311d5c68fd01cb257d5f /remoting/remoting_options.gypi
parent46b2013e68f391dc8c82c12cb26f1053b63c12ec (diff)
downloadchromium_src-d58d70dbcee9d0537ca74861aefd82e02490b332.zip
chromium_src-d58d70dbcee9d0537ca74861aefd82e02490b332.tar.gz
chromium_src-d58d70dbcee9d0537ca74861aefd82e02490b332.tar.bz2
To avoid the requirement of defining unnecessary gyp variables for
app-streaming builds, cleanup definition of those variables. Move variables to common include file. Tested by building in a shell with only GYP_DEFINES': 'component=shared_library use_goma=1 BUG= Review URL: https://codereview.chromium.org/1031203004 Cr-Commit-Position: refs/heads/master@{#322321}
Diffstat (limited to 'remoting/remoting_options.gypi')
-rw-r--r--remoting/remoting_options.gypi13
1 files changed, 13 insertions, 0 deletions
diff --git a/remoting/remoting_options.gypi b/remoting/remoting_options.gypi
index 064a251..4719362 100644
--- a/remoting/remoting_options.gypi
+++ b/remoting/remoting_options.gypi
@@ -27,5 +27,18 @@
'remoting_rdp_session%': 1,
'branding_path': '../remoting/branding_<(branding)',
+
+ # The ar_service_environment variable is used to define the target
+ # environment for the app being built.
+ # The allowed values are dev, test, staging, and prod.
+ 'conditions': [
+ ['buildtype == "Dev"', {
+ 'ar_service_environment%': 'dev',
+ }, { # buildtype != 'Dev'
+ # Non-dev build must have this set to 'prod'.
+ 'ar_service_environment': 'prod',
+ }],
+ ], # conditions
+
},
}